-
Notifications
You must be signed in to change notification settings - Fork 928
feat: add provisioner daemon and jobs endpoints and commands #15940
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
650cbaf
feat: add provisioners and jobs endspoints and CLI commands
mafredri 449df5d
wip
mafredri fa261b1
key
mafredri c5a0429
golden
mafredri b138faf
name
mafredri a0af6eb
gen
mafredri 8975d41
test
mafredri 96a278e
dbmem
mafredri e9b8725
typo
mafredri c5211ef
fix migrations
mafredri c6e1cc6
cleanup
mafredri 9e64cdd
improve tests and dbmem
mafredri 8fd1a6a
Update cli/provisionerjobs.go
mafredri b57bc8c
lint
mafredri 32fde66
remove unused
ma
8000
fredri 38116d7
gen, remove unused
mafredri e7ac032
slice.ToStringEnums
mafredri f6c2a3f
lint & gen
mafredri 876bd80
dbmem/golden
mafredri 0788d56
revert
mafredri 24d49da
undo rename
mafredri 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
gen
- Loading branch information
commit a0af6ebf7bd79bcd436376036e7f22d49fbf96ae
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
<
8000
/div>
View file
Open in desktop
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,3 +1,3 @@ | ||
ID CREATED AT STATUS TAGS TYPE ORGANIZATION QUEUE | ||
[version job ID] [timestamp] succeeded map[owner: scope:organization] template_version_import Coder | ||
[workspace build job ID] [timestamp] succeeded map[owner: scope:organization] workspace_build Coder | ||
==========[version job ID]========== ====[timestamp]===== succeeded map[owner: scope:organization] template_version_import Coder | ||
======[workspace build job ID]====== ====[timestamp]===== succeeded map[owner: scope:organization] workspace_build Coder | ||
32 changes: 16 additions & 16 deletions
32
cli/testdata/coder_provisioners_jobs_list_--output_json.golden
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
CREATED AT LAST SEEN AT NAME VERSION TAGS STATUS ORGANIZATION | ||
[timestamp] [timestamp] test v0.0.0-devel map[owner: scope:organization] offline Coder | ||
CREATED AT LAST SEEN AT NAME VERSION TAGS KEY NAME STATUS ORGANIZATION | ||
====[timestamp]===== ====[timestamp]===== test v0.0.0-devel map[owner: scope:organization] built-in idle Coder |
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
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.
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.
It would be nice if tags were listed in
k1=v1,k2=v2
format.We can also probably "lie" a bit about the case
{"owner": "", "scope": "organization"}
and just pretend it's empty.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.
Good suggestions, and I agree we should hide default owner/scope. We should probably update table formatter to change how maps are output.
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 would move "Queue" column to be the first one.
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.
@mtojek I'm going to create a follow-up issue for this as ordering columns is not supported in our table formatter currently. I would like to avoid us having to craft custom structs every time we want to re-order columns.