Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TINY] Don't throttle /api/docs/{docId}/force-reload #1107 #1197

Merged

Conversation

fflorent
Copy link
Collaborator

@fflorent fflorent commented Sep 4, 2024

Context

As a document owner, when a document has too many requests, I want to force a document to be reopened. However, the /force-reload endpoint may raise a 429 (TOO_MANY_REQUESTS) error, because it uses the throttled middleware.

Proposed solution

Don't throttle the force-reload, so pending request may be interrupted.

Related issues

Fixes #1107

Has this been tested?

  • 👍 yes, I added tests to the test suite
  • 💭 no, because this PR is a draft and still needs work
  • 🙅 no, because this is not relevant here
  • 🙋 no, because I need help

I indeed feel like it is not worth making a test for that test, if that's also fine for you.

When a document has too many requests, one may want to force a document to be reopened. However, the /force-reload endpoint may raise a 429 (TOO_MANY_REQUESTS) error, because it uses the throttled middleware.
@fflorent fflorent changed the title Don't throttle /api/docs/{docId}/force-reload #1107 [TINY] Don't throttle /api/docs/{docId}/force-reload #1107 Sep 4, 2024
Copy link
Collaborator

@hexaltation hexaltation left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@paulfitz paulfitz left a comment

Choose a reason for hiding this comment

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

fair enough!

@paulfitz paulfitz merged commit 2433695 into gristlabs:main Sep 5, 2024
11 checks passed
hexaltation pushed a commit to hexaltation/grist-core that referenced this pull request Sep 24, 2024
…bs#1197)

When a document has too many requests, one may want to force a document to be reopened. However, the /force-reload endpoint may raise a 429 (TOO_MANY_REQUESTS) error, because it uses the throttled middleware.
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.

Force-reload may raise a 429 (TOO_MANY_REQUESTS) error
3 participants