Conversation
WalkthroughThe import() method’s catch block in src/Migration/Destinations/Appwrite.php was changed to remove the HTTP 409 special case. All exceptions now set the resource to STATUS_ERROR and log an Exception with resource details, without differentiating conflict errors from other error statuses. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant M as Migrator
participant D as AppwriteDestination
participant A as Appwrite API
participant L as Logger
rect rgba(230,245,255,0.6)
note over D: Old flow (before change)
M->>D: import(resource)
D->>A: create/update request
A-->>D: Error (HTTP 409)
alt HTTP 409 (conflict)
D->>L: log info/skip (no error)
note right of D: Resource marked as skipped (not error)
else Other error
D->>L: log Exception with details
note right of D: Resource set to STATUS_ERROR
end
end
rect rgba(235,255,235,0.6)
note over D: New flow (after change)
M->>D: import(resource)
D->>A: create/update request
A-->>D: Any error (incl. 409)
D->>L: log Exception with details
note right of D: Resource set to STATUS_ERROR (uniform)
end
Estimated code review effort๐ฏ 2 (Simple) | โฑ๏ธ ~10 minutes Poem
Pre-merge checks and finishing touchesโ Passed checks (3 passed)
โจ Finishing touches
๐งช Generate unit tests (beta)
๐ Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ๐ Files selected for processing (1)
๐งฐ Additional context used๐งฌ Code graph analysis (1)src/Migration/Destinations/Appwrite.php (3)
๐ Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Task: https://linear.app/appwrite/issue/SER-417/debug-why-functions-migration-failed-and-caused-user-to-downgrade
Summary by CodeRabbit