mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
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.
|
||
|---|---|---|
| .. | ||
| Auth | ||
| Bus | ||
| Certificates | ||
| Databases | ||
| Deletes | ||
| Detector | ||
| Docker | ||
| Event | ||
| Extend | ||
| Filter | ||
| Functions | ||
| GraphQL | ||
| Hooks | ||
| Messaging | ||
| Migration | ||
| Network | ||
| OpenSSL | ||
| Platform | ||
| Promises | ||
| PubSub | ||
| SDK | ||
| Task/Validator | ||
| Template | ||
| Transformation | ||
| URL | ||
| Usage | ||
| Utopia | ||
| Vcs | ||