Repository navigation
feat: SDK update for version 30.1.0 - #83
Conversation
🔵 Tier A · Mergeable after minor fixes
This release updates the Ruby SDK to target Appwrite 2.6.2, adds migration and project policy/session APIs, and extends billing and runtime models. It also updates examples and changes path encoding, redirect handling, TLS verification, and multipart upload construction. 16 of 76 changed files were too large to include in full.
Note Not approving while a bug finding is open: Add the advertised MigrationReport model
Fix with agent prompt### Issue 1
lib/appwrite.rb:251
**Add the advertised MigrationReport model**
The release notes advertise a `MigrationReport` model, but the library defines and loads no such class; this is the only migration model registration here. Consumers cannot use the advertised public type until it is added and required, or the release claim is removed.
### Issue 2
lib/appwrite/client.rb:589
**Escape backslashes in multipart parameter names**
A filename ending in `\` leaves the generated quoted `filename="..."` parameter with its closing quote escaped, producing a malformed `Content-Disposition` and potentially breaking that upload. Escape backslashes as well as quotes and line breaks before inserting the name.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.📂 Walkthrough · 5
Reviewed |
|
@hansi-codes review |
| require_relative 'appwrite/models/transaction' | ||
| require_relative 'appwrite/models/subscriber' | ||
| require_relative 'appwrite/models/target' | ||
| require_relative 'appwrite/models/migration' |
There was a problem hiding this comment.
Add the advertised MigrationReport model
The release notes advertise a MigrationReport model, but the library defines and loads no such class; this is the only migration model registration here. Consumers cannot use the advertised public type until it is added and required, or the release claim is removed.
Prompt To Fix With AI
This is a comment left during a code review.
Path: lib/appwrite.rb
Line: 251
Comment:
**Add the advertised MigrationReport model**
The release notes advertise a `MigrationReport` model, but the library defines and loads no such class; this is the only migration model registration here. Consumers cannot use the advertised public type until it is added and required, or the release claim is removed.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.🟡 Minor · bug · Reply if this doesn't apply.
| # Field and file names are quoted in the part headers; escape what would | ||
| # end the quoted string or the header line, as browsers do. | ||
| def escape_form_data_name(name) | ||
| name.to_s.gsub("\r", '%0D').gsub("\n", '%0A').gsub('"', '%22') |
There was a problem hiding this comment.
Escape backslashes in multipart parameter names
A filename ending in \ leaves the generated quoted filename="..." parameter with its closing quote escaped, producing a malformed Content-Disposition and potentially breaking that upload. Escape backslashes as well as quotes and line breaks before inserting the name.
Prompt To Fix With AI
This is a comment left during a code review.
Path: lib/appwrite/client.rb
Line: 589
Comment:
**Escape backslashes in multipart parameter names**
A filename ending in `\` leaves the generated quoted `filename="..."` parameter with its closing quote escaped, producing a malformed `Content-Disposition` and potentially breaking that upload. Escape backslashes as well as quotes and line breaks before inserting the name.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.🟡 Minor · bug · Reply if this doesn't apply.
This PR contains updates to the SDK for version 30.1.0.
What's Changed
migrationsservice to run Appwrite, Firebase, NHost, Supabase, CSV and JSON migrations, plus retries and listingMigration,MigrationListandMigrationReportmodels and theAppwriteMigrationResource,FirebaseMigrationResource,NHostMigrationResource,SupabaseMigrationResourceandOnDuplicateenumsproject.update_deny_realtime_guests_policy, thePolicyDenyRealtimeGuestsmodel andProjectPolicyId::DENY_REALTIME_GUESTSproject.delete_sessionsto sign out every user in the projectBillingPlan#deployment_retention,#deployment_retention_maxand#deployments_retention_countpython-3.15,deno-2.9,go-1.27andrust-1.99toRuntimeandBuildRuntimeX-Appwrite-Response-Format: 2.6.2; README targets Appwrite 2.6.xAppwrite::Exceptionnaming theLocation.and..raiseAppwrite::Exceptionset_self_signedkeeps TLS on and only skips certificate verification