Add Email Templates migration#190
Conversation
…to add-email-templates-migration
…-> TYPE_PROJECT_EMAIL_TEMPLATE; drop GROUP_TEMPLATES)
Greptile SummaryThis PR adds email template migration support (
Confidence Score: 5/5Safe to merge — the new code follows established patterns throughout the codebase and no correctness issues were found. The destination write uses the same read-modify-write + cache-purge pattern as createServices and createSMTP, proven correct for sequential per-resource processing. The total: true named argument on listEmailTemplates is confirmed valid by the Appwrite PHP SDK docs. Null-coalescence guards in fromArray are consistent with the model's guaranteed-empty-string wire format. No files require special attention. Important Files Changed
Reviews (4): Last reviewed commit: "Register TYPE_PROJECT_EMAIL_TEMPLATE in ..." | Re-trigger Greptile |
Summary
TYPE_PROJECT_EMAIL_TEMPLATEtoGROUP_PROJECTS_RESOURCESfor migrating the project's per-locale email template overrides.Sources/Appwrite) reads templates viaProject::listEmailTemplates(offset-paginated; not cursor) and emits oneEmailTemplateresource per (type, locale).Destinations/Appwrite) replays them viaProject::updateEmailTemplatefor each entry.GROUP_PROJECTSalongsidePROJECT_VARIABLE/PROJECT_PROTOCOLS/PROJECT_LABELS/PROJECT_SERVICES.Test plan
testAppwriteMigrationEmailTemplates(in appwrite/appwrite) passes