appwrite/src/Appwrite
Damodar Lohani 4e4860e7f8 refactor: move afterQuery hook into base listDocuments action
Moves the DB-duration measurement and afterQuery() hook from the
tablesDB-specific Rows/XList into the shared
Databases/Collections/Documents/XList base. Because TablesDB Rows and
DocumentsDB Documents both extend the legacy listDocuments base, a
single override now covers all three endpoints: legacy
listDocuments, listDocumentsDBDocuments, and tablesDB listRows.

TablesDB Rows drops the ~200-line action() duplicate and keeps only
the path/params/SDK overrides it needs, plus the extra
->inject('utopia') so its injection chain matches the new base action
signature. DocumentsDB Documents gets the same one-line inject
addition. Net -165 lines of duplication removed.

Behaviour is unchanged for CE (afterQuery() is a no-op); downstream
distributions overriding afterQuery() now observe every list-documents
/ list-rows call site for free.
2026-04-21 08:28:12 +00:00
..
Auth Use Exception for X OAuth2 PKCE encryption errors 2026-04-08 18:41:42 +05:30
Bus Non-URL locale to allow optional 2026-04-17 11:24:59 +02:00
Certificates Upgrade utopia-php dependencies and fix namespace changes 2026-02-10 10:34:24 +05:30
Databases Revert "Revert "Documentsdb + vectordb (latest)"" 2026-03-19 20:30:42 +05:30
Deletes message 2026-01-11 08:30:52 +02:00
Detector Fix PHPStan core type and PHPDoc issues (part 1) 2026-03-31 21:44:20 +05:30
Docker Fix more PHPStan docblock issues 2026-03-31 21:48:14 +05:30
Event updated string replacement 2026-04-15 17:38:21 +05:30
Extend Merge branch '1.9.x' into feat-public-platform-api 2026-04-07 10:43:11 +02:00
Filter Sync 1.8.x 2026-02-26 18:50:29 +13:00
Functions Fix PHPStan core type and PHPDoc issues (part 1) 2026-03-31 21:44:20 +05:30
GraphQL collapse 2026-04-15 13:52:20 +05:30
Hooks
Messaging updated 2026-04-20 18:19:12 +05:30
Migration Bump version to 1.9.1 2026-04-09 15:19:58 +02:00
Network fix: map deprecated platform types in read endpoints for backwards compatibility 2026-04-09 07:47:42 +00:00
OpenSSL chore: remove phpstan baseline 2026-04-01 23:01:11 +05:30
Platform refactor: move afterQuery hook into base listDocuments action 2026-04-21 08:28:12 +00:00
Promises fix: finalize graphql coroutine response isolation 2026-04-13 19:01:20 +05:30
PubSub Sync 1.8.x 2026-02-26 18:50:29 +13:00
SDK Merge branch '1.9.x' into feat-fallback-email-template 2026-04-17 11:53:40 +02:00
Task/Validator
Template Fix more PHPStan docblock issues 2026-03-31 21:48:14 +05:30
Transformation Merge branch '1.8.x' into fix-zindex 2025-09-24 17:57:36 +05:30
URL
Usage Refactor usage metrics to stateless publisher pattern 2026-03-12 15:36:16 +00:00
Utopia fix: ksort after project injection to keep cache key order stable 2026-04-17 18:45:00 +01:00
Vcs Apply suggestion from @greptile-apps[bot] 2026-04-13 10:48:20 +01:00