Skip to content

Fix broken SDK examples in bulk operations and rate limits - #435

Merged
steven-tey merged 2 commits into
dubinc:mainfrom
kritikmodi:fix-broken-sdk-examples
Aug 20, 2026
Merged

steven-tey merged 2 commits into
dubinc:mainfrom
kritikmodi:fix-broken-sdk-examples

Conversation

@kritikmodi

Copy link
Copy Markdown
Contributor

Several examples across two pages don't compile or run as published.

bulk-operations:

  • Go: CreateMany sat outside func main(); UpdateMany took a value, not a pointer, and a map for Data; log, res, err unused in all three.
  • Python: called dub.links.* on the module, not d.links.* on the client.
  • PHP: updateMany was passed data: { ... }, not a BulkUpdateLinksRequestBody.
  • cURL: missing \ after Content-Type, so the POST sent no body.

rate-limits:

  • Python bulk-create used bare url: keys.
  • Python and Ruby analytics used // comments.
  • Go bulk-create declared res/err without using either.

Go and PHP now match the generated SDK examples.
Python and Ruby verified with py_compile and ruby -c.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@kritikmodi, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 59 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 7684374d-db59-4cbf-8310-7d16c34fc654

📥 Commits

Reviewing files that changed from the base of the PR and between d0ce005 and e3efa1d.

📒 Files selected for processing (2)
  • docs/api-reference/rate-limits.mdx
  • docs/concepts/links/bulk-operations.mdx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pepeladeira pepeladeira left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice catch, @kritikmodi! Great work, and thank you for taking the time to contribute here 💪

@steven-tey
steven-tey merged commit 9b57d97 into dubinc:main Aug 20, 2026
1 check passed
@steven-tey

Copy link
Copy Markdown
Contributor

@kritikmodi thanks a lot for your PR!!

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.

3 participants