Repository navigation
fix(databases): declare every column model on getColumn and getAttribute - #13877
Merged
Merged
Conversation
The single-item routes return the model matching the stored type, but the SDKs dispatch on the models the route declares. The declaration stopped at the pre-1.8 types, so every typed SDK failed to decode a varchar, text, mediumtext, longtext, bigint or spatial column with "unable to match response to any expected response model".
Contributor
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
ArnabChatterjee20k
approved these changes
Sep 24, 2026
This was referenced Sep 24, 2026
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.
What does this PR do?
tablesDB.getColumnanddatabases.getAttributereturn whichever model matches the stored type, but they declare only the ten pre-1.8 models (boolean, integer, float, email, enum, url, ip, datetime, relationship, string). The SDKs dispatch on the declared models, so every typed SDK (Go, Dart, Kotlin, Swift, .NET, Python, Ruby, PHP) fails to decode avarchar,text,mediumtext,longtext,bigint,point,linestringorpolygoncolumn.Reproduced on Cloud with CLI 27.3.0 against a
varcharcolumn:The response itself was correct (
"type": "varchar","encrypt": true); only the decoding failed.Both routes now declare the same models as
ColumnList/AttributeList, in the same order (BigInt before Integer, String last).Test Plan
tests/unit/Platform/Modules/Databases/Http/GetResponseModelsTest.phpasserts that each route declares exactly the models its list route can return. It fails onmainand passes here.OpenAPI3::getUnion(), put it into the latest server spec and generated the Go SDK withappwrite/sdk-generator.TablesDB.GetColumnnow has all 18 branches, with the email/enum/url/ip branches checked before the plainstringbranch.composer lintandcomposer analyzepass on the changed files.Related PRs and Issues
Checklist