Skip to content

fix: Test transport rate limits parsing and enforcement #652

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

Merged
merged 3 commits into from
Mar 23, 2020

Conversation

untitaker
Copy link
Member

Also fix a bug where missing categories ("123::project") would not
enforce a rate limit for all categories, as they were parsed as category
"" instead of category None.

Also fix a bug where missing categories ("123::project") would not
enforce a rate limit for all categories, as they were parsed as category
"" instead of category None.
@untitaker untitaker requested review from mitsuhiko and jan-auer March 20, 2020 17:38
Copy link
Member

@jan-auer jan-auer left a comment

Choose a reason for hiding this comment

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

Looks good. Would you mind to also add a test for rate limits without categories (e.g. 4711::organization)?

@untitaker
Copy link
Member Author

@jan-auer
Copy link
Member

@untitaker Sorry for the ambiguity. I meant enforcement, not parsing.

Copy link
Member

@jan-auer jan-auer left a comment

Choose a reason for hiding this comment

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

LGTM but doesn't LGT the linter :)

@untitaker untitaker merged commit b7679a5 into master Mar 23, 2020
@untitaker untitaker deleted the fix/test-transport branch March 23, 2020 16:24
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