-
Notifications
You must be signed in to change notification settings - Fork 925
Implement Quotas v3 #5012
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
Implement Quotas v3 #5012
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
917129d
Implement Quotas v3
ammario e317d53
provisioner/terraform: add cost to resource_metadata
ammario 208b9eb
provisionerd/runner: use Options struct
ammario fdac30b
Complete provisionerd implementation
ammario c0cb103
Begin working on inserting plan state
ammario d1a69aa
provisioner: begin splitting out Apply and Plan
ammario e200ffd
Merge remote-tracking branch 'origin/main' into quotas-v3
ammario 7a988ea
coderd/provisionerdserver: support quotas
ammario 7a97198
Get failure case working
ammario 3b5b422
Begin database work
ammario 940f905
Add quota_allowance to groups
ammario dbc2f48
Get Quota test passing
ammario 77c86f6
Permit builds if they are not a net quota increase
ammario 6afe3b2
Add group editing to frontend
ammario 9670f05
WIP frontend
ammario 3b0a6ea
Wire budget into the frontend
ammario 3b02ca0
Combine Quota and RBAC licenses
ammario fa1dc9a
fixup! Combine Quota and RBAC licenses
ammario 4998a8f
Write docs
ammario 4dc4eb6
Rename to Daily cost
ammario 8c9fe6d
Daily cost
ammario 2dc2dac
Condense inTx interfaces
ammario 2c61e81
Cost -> DailyCost
ammario b030d47
Fix tests
ammario 4c2338c
Merge remote-tracking branch 'origin/main' into quotas-v3
ammario cee73f7
Fix typo
ammario de64d7b
Fix FE tests
ammario 31e629f
make gen
ammario c1613c1
Fix null sum bug
ammario 4582e44
Fix null column bug again
ammario 75bd7b0
Clean up docs
ammario c6180e9
Merge remote-tracking branch 'origin/main' into quotas-v3
ammario d75c469
Fix flakey test
ammario File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE workspace_builds DROP COLUMN daily_cost; | ||
ALTER TABLE workspace_resources DROP COLUMN daily_cost; | ||
ALTER TABLE groups DROP COLUMN quota_allowance; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE workspace_builds ADD COLUMN daily_cost int NOT NULL DEFAULT 0; | ||
ALTER TABLE workspace_resources ADD COLUMN daily_cost int NOT NULL DEFAULT 0; | ||
ALTER TABLE groups ADD COLUMN quota_allowance int NOT NULL DEFAULT 0; | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 might make this
daily_quota_allowance
as well... although since it's not time based, that gets a bit odd... maybemaximum_concurrent_quota
?