feat(requests): allow admins to bypass user quota limits#4173
feat(requests): allow admins to bypass user quota limits#41730xSysR3ll wants to merge 2 commits intosct:developfrom
Conversation
OwsleyJr
left a comment
There was a problem hiding this comment.
I actually like this change but I feel like there should be an option to bypass or not.
Glad you like it ! No sure to see what you mean though. |
Could just have a toggle on the modal maybe? |
|
@OwsleyJr |
|
IMHO a warning just before the "Request" button would be enough, to say something like "be aware that as an admin you will bypass the quota limits the user already reached" |
Hmm, in my head I was thinking you might still want still want this to affect their quota. |
If they aren't at a limit yet |
Not sure to follow. This will only show if their quota is exceeded. |
I'm thinking as an admin I may or may not want to affect their quota, even if they haven't hit it yet. |
So, If I understand correctly: As an admin, I should have the option to bypass the user's quota at any time - even if they still have requests remaining - so that the request I make doesn't count against their quota unless I choose otherwise. Right ? If so, I think that will imply some API change. |
Essentially yes but the main the issue we'll have with this, toggle or not, is we use a user's current requests to track their quota and this PR currently would cause issues with that. So some sort of backend change would be required either way. |
Yep, maybe we should add a flag to the request (e.g. |
|
Yep pretty much what we would need to do! |
|
Hey @OwsleyJr 👋, |
Hey don't want to leave you hanging but on vacation atm. Will try and do a review when I get a chance or hopefully another team member will take a peek. |
No prob at all! We're all busy with real-life matters. |
This PR adds the ability for users with `MANAGE_REQUESTS` permission to bypass quota restrictions when making requests on behalf of other users.
ad22341 to
a8cb418
Compare
Hey sorry for the delay. Haven't forgotten about you. We are just holding off on any migration related PRs (announcement coming soon) atm but will keep you updated. |
|
Note to myself: migrate this PR to seer's repo |


Description
This PR adds the ability for users with
MANAGE_REQUESTSpermission to bypass quota restrictions when making requests on behalf of other users.It also introduces a
Ignore Quotatoggle option in the the requests modal.When enabled, the request will not count against the user's quota limits, allowing admins to make requests on behalf of users who may have exceeded their quota or for special circumstances.
Screenshot (if UI-related)
Quota exceeded
X requests remaining
To-Dos
yarn buildyarn i18n:extractIssues Fixed or Closed