-
Notifications
You must be signed in to change notification settings - Fork 974
feat(cli): add dashboard load test command #8723
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
Changes from all commits
663dee0
8d95283
3eac7cd
c382f4c
7319170
e310af7
c6b5322
298a4f1
fb183e9
7eeda39
8cbd90a
765db11
08e6d41
4edeacf
f5b134a
0c03f93
70550aa
c1291ad
5d17397
2027bb1
e5f0bbb
a3b75ca
60b5a76
2674b29
471f021
98b6396
61c3a06
925a446
8f4c1fc
f7fa1c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -27,6 +27,47 @@ const ( | |||
ResourceSystem RBACResource = "system" | ||||
) | ||||
|
||||
const ( | ||||
ActionCreate = "create" | ||||
ActionRead = "read" | ||||
ActionUpdate = "update" | ||||
ActionDelete = "delete" | ||||
) | ||||
|
||||
var ( | ||||
AllRBACResources = []RBACResource{ | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: It looks like something devs may forget to update in the future. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have rbac gen: coder/coderd/rbac/object_gen.go Line 1 in 4463012
I wonder if we can repurpose it for this too? In a more general note though, we manually copy over all enums we have in the database package to the sdk package. So this problem already exists for all enum types. |
||||
ResourceWorkspace, | ||||
ResourceWorkspaceProxy, | ||||
ResourceWorkspaceExecution, | ||||
ResourceWorkspaceApplicationConnect, | ||||
ResourceAuditLog, | ||||
ResourceTemplate, | ||||
ResourceGroup, | ||||
ResourceFile, | ||||
ResourceProvisionerDaemon, | ||||
ResourceOrganization, | ||||
ResourceRoleAssignment, | ||||
ResourceOrgRoleAssignment, | ||||
ResourceAPIKey, | ||||
ResourceUser, | ||||
ResourceUserData, | ||||
ResourceOrganizationMember, | ||||
ResourceLicense, | ||||
ResourceDeploymentValues, | ||||
ResourceDeploymentStats, | ||||
ResourceReplicas, | ||||
ResourceDebugInfo, | ||||
ResourceSystem, | ||||
} | ||||
|
||||
AllRBACActions = []string{ | ||||
ActionCreate, | ||||
ActionRead, | ||||
ActionUpdate, | ||||
ActionDelete, | ||||
} | ||||
) | ||||
|
||||
func (r RBACResource) String() string { | ||||
return string(r) | ||||
} |
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: you don't need to perform any actions/waiters/or output string-checks?
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.
This is me being lazy 😅