Skip to content

feat: SDK update for version 30.1.0 - #83

Merged
ChiragAgg5k merged 10 commits into
mainfrom
dev
Oct 28, 2026
Merged

ChiragAgg5k merged 10 commits into
mainfrom
dev

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version 30.1.0.

What's Changed

  • Added: migrations service to run Appwrite, Firebase, NHost, Supabase, CSV and JSON migrations, plus retries and listing
  • Added: Migration, MigrationList and MigrationReport models and the AppwriteMigrationResource, FirebaseMigrationResource, NHostMigrationResource, SupabaseMigrationResource and OnDuplicate enums
  • Added: project.update_deny_realtime_guests_policy, the PolicyDenyRealtimeGuests model and ProjectPolicyId::DENY_REALTIME_GUESTS
  • Added: project.delete_sessions to sign out every user in the project
  • Added: BillingPlan#deployment_retention, #deployment_retention_max and #deployments_retention_count
  • Added: python-3.15, deno-2.9, go-1.27 and rust-1.99 to Runtime and BuildRuntime
  • Updated: requests send X-Appwrite-Response-Format: 2.6.2; README targets Appwrite 2.6.x
  • Updated: redirects are no longer followed; a 3xx raises Appwrite::Exception naming the Location
  • Fixed: path parameters are percent-encoded as one segment; . and .. raise Appwrite::Exception
  • Fixed: set_self_signed keeps TLS on and only skips certificate verification
  • Fixed: multipart uploads use a random boundary and escape field and file names

@ghost

ghost commented Oct 27, 2026 •

Copy link
Copy Markdown

🔵 Tier A · Mergeable after minor fixes

The missing advertised model and a multipart filename edge case are minor issues that should be addressed before merging.

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.

Verdict New comments Fixed Still open
💬 Commented 2 0 0

Note

Not approving while a bug finding is open: Add the advertised MigrationReport model

Finding Where
🟡 Add the advertised MigrationReport model lib/appwrite.rb:251
🟡 Escape backslashes in multipart parameter names lib/appwrite/client.rb:589
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
File Change
CHANGELOG.md, README.md, appwrite.gemspec Document the 30.1.0 SDK release, update the server target, and bump the gem version.
docs/examples/ Add migration and project API examples and refresh several existing examples.
lib/appwrite.rb, lib/appwrite/models/, lib/appwrite/enums/ Register and define new migration and policy models plus migration and environment enums, and extend billing/runtime enums.
lib/appwrite/client.rb Encode path parameters, stop following redirects, preserve TLS with self-signed verification disabled, and generate multipart boundaries and headers.
lib/appwrite/services/ Add migration/project operations and percent-encode path parameters across service requests.

Reviewed 483167d · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ChiragAgg5k ChiragAgg5k changed the title feat: Ruby SDK update for version 30.1.0 feat: SDK update for version 30.1.0 Oct 27, 2026

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Tier B · 1 blocking finding to address. Summary

Comment thread lib/appwrite/services/migrations.rb Resolved
@ChiragAgg5k ChiragAgg5k changed the title feat: SDK update for version 30.1.0 feat: Ruby SDK update for version 30.1.0 Oct 27, 2026

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@ChiragAgg5k ChiragAgg5k changed the title feat: Ruby SDK update for version 30.1.0 feat: SDK update for version 30.1.0 Oct 27, 2026
@ChiragAgg5k

Copy link
Copy Markdown
Member Author

@hansi-codes review

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Tier A · See the inline comments. Summary

Comment thread lib/appwrite.rb
require_relative 'appwrite/models/transaction'
require_relative 'appwrite/models/subscriber'
require_relative 'appwrite/models/target'
require_relative 'appwrite/models/migration'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread lib/appwrite/client.rb
# 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')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@ChiragAgg5k
ChiragAgg5k merged commit 96c9faf into main Oct 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants