Repository navigation
Open
Labels
absorbHistory-preserving package absorption; merge commit requiredbacklogIssues waiting in the backlogproduct / databasesFixes and upgrades for the Appwrite Database.product / migrationsFixes and upgrades for the Appwrite Migrations.
Description
Wave 6 of #13828: move the last vendored Utopia libraries into packages/, so that composer.lock has no utopia-php/* packages left. Deferred to next week.
1. mongo + database (one PR)
The work is done on branch chore/absorb-database (head 9f26684), from #14242. That PR is closed for now, not abandoned. Reopen it, or open a new PR from the same branch, then merge main in and re-run CI. It passed all 260 checks and was approved by hansi and tenki on 2026-10-08.
What it does:
- Subtree imports of
utopia-php/mongo(1.5.4, the locked version) andutopia-php/database(mirrormain: 7.4.1 plus the unreleased Postgres-only fix fix(postgres): let distanceLessThan use the spatial index utopia-php/database#1001), with full history. - Library source:
src/is byte-identical to the imported code. Rector is skipped for both packages until phase 8. - Root
composer.json:ramsey/uuid: 4.9.*andext-mongodb: *are hoisted intorequire. The lock only dropsutopia-php/database 7.4.1andutopia-php/mongo 1.5.4. - Package tests:
- Moved from PHPUnit 9 to 12, editing tests only.
- Four cache test doubles now accept cache 5.1's
$ttl. - E2E runs inside the compose network via
tests/e2e.shonappwrite/base:2.1.0.
- Swoole: mongo requires
ext-swoole, and database suggests it. - PHPStan baselines: database 4,865 findings, mongo 420. mongo's
tests/ClientTest.phpis excluded from analysis. Both are listed for phase 8. - CI: the widened E2E matrix now fires on PRs that touch
packages/database/orpackages/mongo/, not on lock changes.
Before merging:
- Merge
mainintochore/absorb-databaseand resolvecomposer.json/composer.lock. Re-check that the lock diff drops only the two packages. - Re-run CI (all jobs). Two E2E tests were flaky on the last run: MariaDB (shared)
testUpdateAccountEmailSearchand MongoDB (shared) RealtimetestIndexesTablesAPI. - If
utopia-php/databaseorutopia-php/mongoreleased or merged anything since 2026-10-08, re-import the new head (bin/monorepo absorbfrom the mirror) instead of carrying a stale copy. - Merge with a merge commit (
absorblabel). A squash drops thegit-subtree-*annotation and orphans both packages from their mirrors.
After merging:
- Confirm
Splitpushesutopia-php/databaseandutopia-php/mongo, and that each mirror's tree matches itspackages/<name>. - Triage the open PRs and issues on both mirrors. chore: absorb utopia-php/mongo and utopia-php/database into packages/ #14242's body sorts database's 56 PRs into carry-over fixes, in-progress features and stale ones to close. mongo's 3 PRs all have live ideas.
- Cloud picks it up on its next
appwrite/server-cebump. - Bump
packages/audittoutopia-php/validators ^2.0and declare^2.0inpackages/usage(both useHostname). They stay on^1.0untildatabaserequires validators 2.x itself (see refactor(validators)!: move the base class into Utopia\Validator #14263).
2. migration
- Absorb
utopia-php/migration(2.0.8 locked) with the same playbook. Setutopia-php/dsnto^1.0. Hoisthalaxa/json-machineandappwrite/appwrite(the PHP SDK). Triage its ~20 open PRs. - Merge with a merge commit, then confirm
Split. - Cloud drops its own
utopia-php/migrationrequirement (its last directutopia-php/*one) and takes it throughserver-ce.
Exit: jq '.packages[] | select(.name|startswith("utopia-php/"))' composer.lock returns nothing.
Metadata
Metadata
Assignees
Labels
absorbHistory-preserving package absorption; merge commit requiredbacklogIssues waiting in the backlogproduct / databasesFixes and upgrades for the Appwrite Database.product / migrationsFixes and upgrades for the Appwrite Migrations.
Activity