-
Notifications
You must be signed in to change notification settings - Fork 978
feat: add user quiet hours schedule and restart requirement feature flag #8115
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
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
22b9be8
feat: add user maintenance schedule for max_ttl autostop
deansheather 92c05b3
fixup! feat: add user maintenance schedule for max_ttl autostop
deansheather 54d939a
fixup! feat: add user maintenance schedule for max_ttl autostop
deansheather b274c67
rename maintenance schedule to quiet hours schedule
deansheather 5bf53eb
Merge branch 'main' into dean/user-maintenance-window
deansheather ede278e
stuff
deansheather 06272e2
progress
deansheather a1ebbdb
progress
deansheather 780812c
working
deansheather 00e4a0f
tests mostly fixed
deansheather 6cfd270
working!
deansheather 53f5d62
move autostop algorithm to schedule package
deansheather eb1c1f6
more tests
deansheather 3dbd077
Merge branch 'main' into dean/user-maintenance-window
deansheather 0e9437e
Merge branch 'main' into dean/user-maintenance-window
deansheather fd26e69
add back max_ttl and put restart_requirement behind feature flag
deansheather cb9428e
fixup! add back max_ttl and put restart_requirement behind feature flag
deansheather 024233a
fixup! add back max_ttl and put restart_requirement behind feature flag
deansheather c7ef9cb
fixup! add back max_ttl and put restart_requirement behind feature flag
deansheather 4c70ade
fixup! add back max_ttl and put restart_requirement behind feature flag
deansheather 2fb3053
Merge branch 'main' into dean/user-maintenance-window
deansheather 554e837
Disable quiet hours endpoint if not entitled
deansheather eb46ae2
add DST and week calculation tests
deansheather 6af3e33
fixup! add DST and week calculation tests
deansheather 159d107
Merge branch 'main' into dean/user-maintenance-window
deansheather 96f5e2e
rename interface methods, merge migrations
deansheather cd77138
steven comments and test fix
deansheather 87b065b
fixup! steven comments and test fix
deansheather 8658112
remove duration
deansheather fe26e3f
Merge branch 'main' into dean/user-maintenance-window
deansheather 8cebc67
Merge branch 'main' into dean/user-maintenance-window
deansheather 85142a6
fixup! Merge branch 'main' into dean/user-maintenance-window
deansheather 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
add back max_ttl and put restart_requirement behind feature flag
- Loading branch information
commit fd26e69bc1833d4dfc5624b1ed437d13167c015a
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
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.
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.
3 changes: 1 addition & 2 deletions
3
coderd/database/migrations/000139_template_restart_requirement.down.sql
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
ALTER TABLE templates | ||
DROP COLUMN restart_requirement_days_of_week, | ||
DROP COLUMN restart_requirement_weeks, | ||
ADD COLUMN max_ttl bigint NOT NULL DEFAULT 0; | ||
DROP COLUMN restart_requirement_weeks; |
4 changes: 3 additions & 1 deletion
4
coderd/database/migrations/000139_template_restart_requirement.up.sql
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
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.
Uh oh!
There was an error while loading. Please reload this page.