Skip to content

feat(events): add batch operations (TT-5546) - #553

Merged
AaronDDM merged 3 commits into
mainfrom
codex/tt-5546-events-batch
Nov 4, 2026
Merged

AaronDDM merged 3 commits into
mainfrom
codex/tt-5546-events-batch

Conversation

@AaronDDM

@AaronDDM AaronDDM commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds events.batch for grant-scoped Google and Microsoft event create/update/delete operations. It follows this SDK's hash inputs and [results, request_id, headers] return tuple, with typed YARD field documentation. Ordered per-item results are returned for HTTP 200 and mixed/all-failed HTTP 207 responses; invalid whole requests raise the normal API error. The grant identifier is validated before HTTP and encoded as a single URL path segment; blank, non-string, and URL dot-segment identifiers are rejected.

Includes six actual HTTP regression examples plus a no-network invalid-identifier regression covering serialization/query parameters, path encoding, 200/207 responses, zero retry delays, provider errors, duplicate-prevention metadata, and normal 400 errors. The standalone examples/events/event_batch_example.rb example retries eligible failures once after the provider delay and never retries an item with provider_event_created: true.

Implements TT-5546, part of TT-5542. Node counterpart: nylas/nylas-nodejs#770.

Validation: all 327 RSpec examples passed; full RuboCop, YARD generation, gem build, and diff checks passed. Local verification used Ruby 4.0.7; CI covers Ruby 3.0–3.2. Example syntax and RuboCop checks also passed. Optional live staging smoke test was not run.

@radenkovic @googsvg, please review. @AaronDDM, as the Ruby task owner, please merge and release/deploy this SDK through the normal release process once approved and CI passes. GitHub does not allow requesting a review from the PR author, so the Ruby owner is assigned and the parent task owner is requested for independent review.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@qasim-nylas qasim-nylas 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.

LGTM 👍

@qasim-nylas qasim-nylas 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.

LGTM 👍

@AaronDDM
AaronDDM merged commit dd21138 into main Nov 4, 2026
8 checks passed

This branch was successfully deployed

1 active deployment
sdk-reference — 13fadba0 Deployed Nov 4, 2026 by AaronDDM via docs #342
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