-
Notifications
You must be signed in to change notification settings - Fork 359
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
chore: fix global PUT for task config policies #9941
Conversation
✅ Deploy Preview for determined-ui canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9941 +/- ##
==========================================
- Coverage 54.51% 54.50% -0.01%
==========================================
Files 1252 1252
Lines 156668 156668
Branches 3601 3599 -2
==========================================
- Hits 85411 85396 -15
- Misses 71124 71139 +15
Partials 133 133
Flags with carried forward coverage won't be shown. Click here to find out more. |
@@ -45,9 +57,14 @@ message PutGlobalConfigPoliciesResponse { | |||
// GetWorkspaceConfigPoliciesRequest lists task config policies | |||
// for a given workspace and workload type. | |||
message GetWorkspaceConfigPoliciesRequest { | |||
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_schema) = { | |||
json_schema: { required: [ "workload_type" ] } |
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.
is workspace_id
also required here?
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.
Great suggestion; I'll add it to all the workspace requests.
@@ -76,9 +97,14 @@ message GetGlobalConfigPoliciesResponse { | |||
// DeleteWorkspaceConfigPoliciesRequest is used to delete all task config | |||
// policies for the workspace and workload type. | |||
message DeleteWorkspaceConfigPoliciesRequest { | |||
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_schema) = { | |||
json_schema: { required: [ "workload_type" ] } |
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.
json_schema: { required: [ "workload_type" ] } | |
json_schema: { required: [ "workload_type", "workspace_id" ] } |
(maybe this?)
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.
Looks great! Left a few comments on required protobuf fields
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.
LGTM, great work!
Ticket
CM-534
Description
Fix global PUT API for task config policies to include a parameter for the admin input.
Test Plan
None needed.
Checklist
docs/release-notes/
See Release Note for details.