Repository navigation
chore(deps): update utopia-php/migration to 2.1.0 and sdk-for-php to 30.2.2 - #14382
Conversation
…30.2.2 Migration 2.1.0 carries function intervals, site scopes, start commands and retention, function retention, variable secret flags, file folders and more auth policies. It reads sources through sdk-for-php 30.2, so appwrite/appwrite moves with it; the server's own SDK use (the migration worker's TablesDB scope probe, Query::limit, ID::unique) is unchanged in 30.2.2.
Function interval, retention and variable secret flags; site start command, retention, scopes and secret variable; file folder; password strength, MFA factors, deny-free-email and membership accessedAt policies.
|
Review complete. No issues found — approved ✅. This PR upgrades the migration library pair (
Reviewed commit: 651407c |
🟢 Tier S · Ready to mergeUpdates Latest changes: The newest commit extends the function settings migration test to create a function and site with variables in one fresh source project, then verifies both resources and their variables migrate independently.
📂 Walkthrough · 3
✅ Fixed since the last review · 1
Reviewed the commits since |
Security rulesNo new WARNING or ERROR findings from security rules. 32 existing findings tracked in
|
A fresh source project gives its first function and first site the same internal ID, which is when the function list also returns the site's variables. The function settings test now migrates both, so copying the site's variable onto the function, and the 409 that follows for the site, fails it.
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Brings utopia-php/migration 2.1.0 into Appwrite, so the next self-hosted release migrates function intervals and the other settings migration was dropping. This is the release step from
docs/releases.md(#14364).Changes
utopia-php/migration^2.0.9→^2.1.0(feat: migrate function intervals and settings added since SDK 27 utopia-php/migration#235). It now also migrates:interval,deploymentRetention, and thesecretflag on variables. If a Cloud Free or Education destination rejects an interval under 60 minutes, the function is imported without it and the migration records a warning.scopes,startCommand,deploymentRetention, and thesecretflag on variables.folder.userAccessedAt.appwrite/appwrite(sdk-for-php)^27.1→^30.2.2. Migration reads sources through the SDK. 30.2.2 fills a field an older source doesn't send from its spec default (feat(specs): emit response model defaults #14357, docs(response): require a usable default on every required response field #14366, fix(specs): leave hidden rules out of a model's required list #14368, fix(specs): emit a model default only when its type matches the property #14370), so migrating from 1.x servers still works.TablesDBscope probe andClientsetters,Query::limit, andID::unique.composer.lockchanges only these two packages andsymfony/polyfill-php85.Tests
The e2e tests in
MigrationsBase:testAppwriteMigrationFunctionSettings: a fresh source project whose first function and first site share internal ID 1. The function has an hourly interval, 7-day retention, and one secret and one plain variable. The site has a secret variable. The test migrates both and checks that interval, retention and secret flags match, and that the function doesn't take the site's variable. It needs no deployment, so it runs quickly.testAppwriteMigrationSite: the site now has a start command, 14-day retention and two scopes, and its variable is secret. All are asserted on the destination.testAppwriteMigrationStorageFiles: the file is uploaded intoalbums/2026, and the destination'sfolderandkeyare asserted.testAppwriteMigrationPolicies: also sets and asserts password strength, MFA factors, deny-free-email and membershipuserAccessedAt, and restores them afterwards.Local run on a stack built from this branch, with migration 2.1.0 and SDK 30.2.2 in
vendor. The four tests above plus the existingtestAppwriteMigrationFunctionpass: 312 assertions. The one deprecation is from thetextalk/websockettest client.With the variables fix reverted inside the worker,
testAppwriteMigrationFunctionSettingsfails with the site variable's 409, so it covers that regression.utopia-php/migration#235 also has a separate end-to-end run with Console screenshots.
Closes #14365