Repository navigation
fix(validator): drop the stray quote from the index length message - #1035
Conversation
An index length larger than its attribute's size was refused with "Index length 65 is larger than the size for title: 64"", the trailing quote a leftover of a removed opening one. Appwrite shows the message to API callers as is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
What
IndexDefinitionrejected an index length larger than its attribute's size with a trailing":Appwrite passes this message to API callers unchanged. Staging QA reported it from
POST /v1/tablesdb/{db}/tables/{t}/indexeswithlengths: [65]on a 64-character column.Fix
Remove the trailing
.'"'. The two adapter E2E assertions inIndexTeststhat encoded the stray quote now expect the clean message.Tests
mainValidator/IndexTest::testIndexLengthLargerThanTheAttributeNamesBothSizes…title: 64"…title: 64Adapter/Scopes/IndexTests(two assertions ontitle1: 700)testIndexLengthPastTheFieldSizeNamesBothSizes(TablesDB and Legacy, run with this fix copied into vendor)…title: 64"tests/unit/Validatorpasses in full (1042 tests). The Appwrite E2E is on branchqfix-index-length-e2ein appwrite/appwrite and lands with the release that includes this fix.🤖 Generated with Claude Code
Summary by CodeRabbit