-
Notifications
You must be signed in to change notification settings - Fork 894
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
fix: coderd: add test for nonexistent workspace
- Loading branch information
commit ff80571eed293b2c414e351459b0808d0aa7ccbd
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
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.
nit: We could assert to
codersdk.Error
here to check the status code!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.
ack
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.
FYI I ended up needing to squelch a linter error when trying to use
errors.As
oncodersdk.Error
.This is the sort of thing I ended up with: https://go.dev/play/p/NHTmnYWan6g