Conversation
Co-authored-by: stnguyen90 <[email protected]>
Security Scan Results for PRDocker Image Scan Results
Source Code Scan Results🎉 No vulnerabilities found! |
✨ Benchmark results
⚡ Benchmark Comparison
|
|
Co-authored-by: stnguyen90 <[email protected]>
I've addressed both requests:
The changes follow the established patterns for proper attribute handling and maintain consistency with the existing codebase. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Including attribute can cause a invalid structure error as the incoming data may be an int but the database expects a string.
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
This PR applies the same sequence integer casting fix from #10221 to the Row model and extends the attribute cleanup pattern from #10228 to ensure consistent document processing across the codebase.
Fixes appwrite/sdk-for-flutter#265
Related:
Problem
The
$sequenceattribute was not being properly cast to an integer in Row model responses, and the$tenantattribute was not being consistently removed during document processing operations, leading to potential type inconsistencies and attribute leakage.Solution
Row.php: Added sequence integer casting in the
filter()method:TablesDB/DatabasesBase.php: Added test assertions to verify proper sequence field typing:
Remove
$sequencefrom incoming create/update document requests.Changes
The fix maintains the established patterns for attribute handling and ensures all document/row response models behave consistently.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.