Skip to content

fix: ensure root documentation page can be consulted even if API is being rate limited#364

Merged
TeKrop merged 2 commits intomainfrom
bugfix/dont-block-doc-if-rate-limited
Feb 18, 2026
Merged

fix: ensure root documentation page can be consulted even if API is being rate limited#364
TeKrop merged 2 commits intomainfrom
bugfix/dont-block-doc-if-rate-limited

Conversation

@TeKrop
Copy link
Owner

@TeKrop TeKrop commented Feb 18, 2026

Summary by Sourcery

Bug Fixes:

  • Ensure the root documentation page remains accessible even when API requests are being rate limited.

@TeKrop TeKrop self-assigned this Feb 18, 2026
@TeKrop TeKrop added the bug Something isn't working label Feb 18, 2026
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Feb 18, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

The PR updates the Nginx Valkey handler Lua template to ensure the root documentation page remains accessible even when the upstream API is rate limited, but the exact code changes are not visible in the provided diff snippet.

File-Level Changes

Change Details Files
Adjust logic in the Valkey handler Lua script so the root documentation page can still be served when API calls are rate limited.
  • Modify request handling or routing conditions to detect root documentation requests separately from API requests
  • Update rate-limiting or fallback logic to bypass or handle rate limits gracefully for the documentation root path
  • Potentially adjust error-handling behavior so documentation is served instead of returning rate-limit errors for the root page
build/nginx/valkey_handler.lua.template

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@sonarqubecloud
Copy link

@TeKrop TeKrop merged commit d2c0d65 into main Feb 18, 2026
5 checks passed
@TeKrop TeKrop deleted the bugfix/dont-block-doc-if-rate-limited branch February 18, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments