Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Handle edge case when realm quota is first enabled #765

Merged
merged 2 commits into from
Oct 7, 2020

Conversation

sethvargo
Copy link
Member

@sethvargo sethvargo commented Oct 7, 2020

If realm quota is enabled and then someone "takes" from the bucket before the modeler runs, then the realm gets the default quota (which is low). Worse, it gets the default TTL (60s), which also isn't correct.

More comments inline in the code

Release Note

Handle edge case when realm quota is first enabled, enforce realm quota by default.

If realm quota is enabled and then someone "takes" from the bucket before the modeler runs, then the realm gets the default quota (which is low). Worse, it gets the default TTL (60s), which also isn't correct.
@google-cla google-cla bot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Oct 7, 2020
@googlebot googlebot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Oct 7, 2020
Copy link
Contributor

@whaught whaught left a comment

Choose a reason for hiding this comment

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

/lgtm

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sethvargo, whaught

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-robot google-oss-robot merged commit ad5a212 into main Oct 7, 2020
@google-oss-robot google-oss-robot deleted the sethvargo/quotas branch October 7, 2020 01:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants