-
Notifications
You must be signed in to change notification settings - Fork 357
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: ntsc config not supported #10056
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10056 +/- ##
==========================================
- Coverage 54.43% 54.43% -0.01%
==========================================
Files 1262 1262
Lines 158894 158901 +7
Branches 3631 3632 +1
==========================================
- Hits 86498 86491 -7
- Misses 72262 72276 +14
Partials 134 134
Flags with carried forward coverage won't be shown. Click here to find out more.
|
✅ Deploy Preview for determined-ui canceled.
|
@@ -211,7 +220,7 @@ func configPolicyConflict(config1, config2 interface{}) { | |||
if field1.IsValid() && field2.IsValid() && !field1.IsZero() && !field2.IsZero() { | |||
// For non-pointer fields, compare directly if both are non-zero | |||
if !reflect.DeepEqual(field1.Interface(), field2.Interface()) { | |||
ConfigPolicyWarning(fmt.Sprintf("%s: %v, %v", GlobalConfigConflictErr, field1.Interface(), field2.Interface())) | |||
ConfigPolicyWarning(fmt.Sprintf("%s: field=%s", GlobalConfigConflictErr, v1.Type().Field(i).Name)) |
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 was confusing: it just printed out the memory address of both fields. We could determine if the field is a pointer or not and print each case differently ... but it seemed simpler and more clear to simply tell the admin which field conflicts.
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, thank you for catching this
Ticket
CM-559
Description
Returns an error if admins set invariant config for NTSC. Also fixes some nil pointer issues and refines error message when there's a conflict between global and workspace config policies.
Test Plan
Checklist
docs/release-notes/
See Release Note for details.