Closed nick-funk closed 6 months ago
Adjust the rate limiting for createCommentFlag so it can execute twice as often for the same interval.
createCommentFlag
Changes the @rate(...) for createCommentFlag from @rate(seconds: 3) to @rate(max: 2, seconds: 3) which increases the max from a default of 1 to 2.
@rate(...)
@rate(seconds: 3)
@rate(max: 2, seconds: 3)
No
INDEXES.md
N/A
DISABLE_RATE_LIMITERS
id
mutation { createCommentFlag(input: { commentID: "<some-comment-id>", commentRevisionID: "<comments-latest-revision-id>", reason: COMMENT_REPORTED_OTHER, additionalDetails: "additional details", clientMutationId: "1" }) { comment { id } } }
No special considerations.
What does this PR do?
Adjust the rate limiting for
createCommentFlag
so it can execute twice as often for the same interval.These changes will impact:
What changes to the GraphQL/Database Schema does this PR introduce?
Changes the
@rate(...)
forcreateCommentFlag
from@rate(seconds: 3)
to@rate(max: 2, seconds: 3)
which increases the max from a default of 1 to 2.Does this PR introduce any new environment variables or feature flags?
No
If any indexes were added, were they added to
INDEXES.md
?N/A
How do I test this PR?
DISABLE_RATE_LIMITERS
set to true in your env varsid
and latest revision'sid
Were any tests migrated to React Testing Library?
No
How do we deploy this PR?
No special considerations.