-
Notifications
You must be signed in to change notification settings - Fork 943
coderd: autostart: codersdk, http api, database plumbing #879
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
16 commits
Select commit
Hold shift + click to select a range
1438444
feat: add columns autostart_schedule, autostop_schedule to database s…
johnstcn 400a787
feat: database: add UpdateWorkspaceAutostart and UpdateWorkspaceAutos…
johnstcn c581615
fix: sqlc generate
johnstcn 9a3b186
fix: databasefake: implement now-missing AutoStop/AutoStart methods
johnstcn 6fa386d
feat: add AutostartSchedule/AutostopSchedule to api workspace struct
johnstcn f6895b7
feat: implement update workspace autostart
johnstcn 1884766
refactor: make test table-driven
johnstcn 9854f9b
fix: autostart: add more test cases
johnstcn 270af35
fix: autostart: ensure we handle DST changes properly
johnstcn ff80571
fix: coderd: add test for nonexistent workspace
johnstcn 3b4664c
fix: codersdk: add documentation for UpdateWorkspaceAutostartRequest …
johnstcn ccd67cc
fix: appease the linter gods
johnstcn 316501d
fix: address PR comments
johnstcn 3037d98
fix: workspaces_test.go: missed project -> template after rebase
johnstcn 4a7e6eb
fix: bump migration
johnstcn be0e6f3
feat: implement autostop database/http/api plumbing
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
Next
Next commit
feat: add columns autostart_schedule, autostop_schedule to database s…
…chema
- Loading branch information
commit 14384448baf4340b40e59746902163df50d42ae8
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
coderd/database/migrations/000005_workspace_autostartstop.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE ONLY workspaces | ||
DROP COLUMN autostart_schedule, | ||
DROP COLUMN autostop_schedule; | ||
3 changes: 3 additions & 0 deletions
3
coderd/database/migrations/000005_workspace_autostartstop.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE ONLY workspaces | ||
ADD COLUMN autostart_schedule text DEFAULT NULL, | ||
ADD COLUMN autostop_schedule text DEFAULT NULL; | ||
johnstcn marked this conversation as resolved.
Show resolved
Hide resolved
|
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.
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.