fix(databases): redirect legacy collection links to tables - #3196
Open
HarshMN2345 wants to merge 3 commits into
Open
fix(databases): redirect legacy collection links to tables#3196HarshMN2345 wants to merge 3 commits into
HarshMN2345 wants to merge 3 commits into
Conversation
Console (appwrite/console)Project ID: Sites (1)
Tip Appwrite has crossed the 50K GitHub stars milestone with hundreds of active contributors |
Contributor
|
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.

Fixes CONSOLE-RE0.
Old
collection-<id>links for legacy databases successfully load a table through the shared SDK dispatcher, then fail when the collection page requests a DocumentsDB/VectorsDB-only client. Redirect legacy and TablesDB collection links to the corresponding table route before loading the entity. Preserve nested pages and query parameters, and keep DocumentsDB/VectorsDB on the collection route.For the reported
collection-<id>/document-<id>deep link, populate the existing table row sheet before redirecting, preserving the requested record. Genuine DocumentsDB/VectorsDB document links continue using the collection sheet.The redirect uses the existing route resolver and 308 convention. Regression coverage exercises the actual catchall and layout load functions with real sheet stores, including indexes/settings/export, encoded filters, native row links, and both supported collection database types.
Validation:
bun run format,bun run check,bun run lint,bun run build, andbun audit --audit-level highpass. Existing repository warnings remain; changed TypeScript files have no warnings.bun run tests -- --listruns the unit suite and lists the three Playwright journeys. The existing journeys create accounts/projects against staging and were not executed locally.971bed4a91ca048d5bd286198f07e21777852765.