Repository navigation
Fix TablesDB webhook event matching and delivery - #13597
Merged
Merged
Conversation
Contributor
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
abnegate
approved these changes
Sep 10, 2026
2 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tracks DAT-2542.
Fix database event namespaces being lost between HTTP operations, subscription matching, and webhook queue payloads. TablesDB routes use
databases.…event templates internally;Event::generateEvents()needs the database document to project them totablesdb.…while retaining legacy aliases. Realtime already supplied that context, but webhook/function matching and publishing did not.databases.…tables.…rows.…and collection/document aliases. Keep DocumentsDB and VectorsDB namespaces distinct.No new routes or subscription syntax. Existing column/index identifiers and their deletion-as-update event labels are unchanged.
End-to-end verification
Built an isolated local stack from this checkout (PHP 8.5.10, PostgreSQL, Redis, combined worker, local request catcher). Created a console account, project, API key, database, table, and enabled webhook through real HTTP APIs. Row creation returned 201, update returned 200, and GET confirmed persisted data.
For each phase, stopped the worker and inspected
utopia-queue.queue.v1-webhooks, then restarted it and polled the catcher. Only the subscription prefix changed; the webhook and destination stayed the same.tablesdb.*.tables.*.rows.*.create+.updatedatabases.*.tables.*.rows.*.create+.updateDelivered requests received HTTP 200. Both successful and missing-delivery cases showed
attempts: 0and emptylogs: those fields describe failures, not total deliveries.Focused committed regressions:
Broader local verification also passed bulk writes, transaction commits, database/table lifecycle, and column/index operations on the same production fix. Those exploratory tests were removed from the final diff to keep the regression focused (test additions reduced from 178 to 89 lines).
Passing checks
Executed in the isolated stack using
docker compose -f /tmp/plush-webhook-compose.json exec -T appwriteas the command prefix:Before the fix, the new publishing unit regression demonstrated the missing database prefixes. The original HTTP/Redis/catcher reproduction above independently confirmed the dropped webhook jobs.
Scope and limitations