-
Notifications
You must be signed in to change notification settings - Fork 385
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
[server] Rate limit based on report count #3843
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
The pull request was demoted to draft, as work still needs to be done.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like linters didn't run on this patch yet.
web/server/vue-cli/src/components/Product/ProductConfigForm.vue
Outdated
Show resolved
Hide resolved
1885dcf
to
936a47f
Compare
a8c6774
to
bb5f368
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
I tested this and works well with old and new clients.
I have only minor help text related comments.
Please mention this limit feature in this doc too
https://github.com/Ericsson/codechecker/blob/master/docs/web/products.md#adding-new-product
After these small fixes it is good to be merged in.
web/server/vue-cli/src/components/Product/ProductConfigForm.vue
Outdated
Show resolved
Hide resolved
5ca6fed
to
6147717
Compare
Thanks, fixed the remarks, and extended the documentation. |
One question. Should the report limit set to zero mean that there is no limit? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question. Should the report limit set to zero mean that there is no limit?
No, 0 is zero, negative values with the exception of -1 should be invalid. -1 should mean no limit. Or at least, thats my spin on it :)
LGTM!
5df6b98
to
a1f1cc3
Compare
This patch implements a basic implementation of rate limiting based on the raw report count in the incoming storage request. [feat][server][gui] Report limit in prof config Added database entries in config db. Modified api for passing report limit information. Added widgets on the gui. Added config option for commandline project creation. A test is included. Resolve conflict Fix product remove parameter in web tests
Previously the store command printed the raw statistics of the report folder, but none of the other commands or result of actions (parse command or the result of the store) reflected these numbers. This patch fixes that, and now the store commands prints the same summary as the parse command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I tested this with old and new clients. All works fine.
This patch implements a basic implementation of rate limiting based on the raw report count in the incoming storage request.