-
Notifications
You must be signed in to change notification settings - Fork 887
feat: enforce template-level constraints for TTL and autostart #2018
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
johnstcn
merged 20 commits into
main
from
1433-template-constraint-for-workspace-scheduling
Jun 7, 2022
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1713431
RED: add failing unit tests
johnstcn f11f942
RED: add migrations and make gen
johnstcn c5c9a7a
ORANGE: fix audit/diff tests
johnstcn 74f4dee
fixup! RED: add migrations and make gen
johnstcn 7da27a0
fixup! RED: add migrations and make gen
johnstcn 5ad048b
feat: schedule: add schedule.Min function to determine minimum interval
johnstcn 65b980e
ORANGE: coderd: fix a whole bunch of tests
johnstcn aa298a6
RED: fast-fail some slow-failing tests
johnstcn a5ec9bf
GREEN: fix even more tests
johnstcn a6255d6
GREEN: fix final unit test
johnstcn 245795e
cli: templatecreate: add CLI flags --max-ttl --min-autostart-interval
johnstcn 709db5b
fixup! cli: templatecreate: add CLI flags --max-ttl --min-autostart-i…
johnstcn c4a0927
make gen
johnstcn 244e479
update test entities
johnstcn 60ef479
Merge remote-tracking branch 'origin/main' into 1433-template-constra…
johnstcn c9aab8b
fixup! Merge remote-tracking branch 'origin/main' into 1433-template-…
johnstcn f997af2
coderd: default newly-minted workspaces to template max_ttl
johnstcn d7f697b
address PR comment
johnstcn ebe4c15
fix broken unit test
johnstcn 08ef2eb
fix some more tests
johnstcn 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
fixup! cli: templatecreate: add CLI flags --max-ttl --min-autostart-i…
…nterval
- Loading branch information
commit 709db5b22f36583c04ea2fdfab8fa3c62d323f1a
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
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.
Review: following convention of
codersdk
types usingint64
millisecond-timestamps for time.Duration