-
Notifications
You must be signed in to change notification settings - Fork 568
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
Check for upload permission based on google group #4562
Conversation
1f5e626
to
51d928a
Compare
@@ -31,6 +32,15 @@ | |||
ISSUETRACKER_WONTFIX_STATE = 'NOT_REPRODUCIBLE' | |||
|
|||
|
|||
def has_vrp_upload_permission(reporter): |
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.
How often is this going to be called? Maybe we should cache this in redis?
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.
I was thinking of running the cron job every 5 min or so, but it should only need to be called when we have submissions, which would depend on the usage of it
but 1. good call - i was being stupid and calling it for each check, but i should update this to be at least just one call for each cron job run lol
and 2. redis sounds like also a good plan! ill do that in a separate CL -ive added a todo for me!!
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.
Redis probably not needed then. Thanks for fixing.
51d928a
to
aa801c3
Compare
aa801c3
to
741353e
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.
lgtm
Merging #4562 to branch 'chrome' Co-authored-by: Vitor Guidi <[email protected]>
Although the IssueTracker component create controls are locked down to this group, its possible for folks to accidentally migrate bugs into this component. To prevent that from happening, check for the reporter's membership before proceeding with the upload. It is a bit hacky i admit.