-
Notifications
You must be signed in to change notification settings - Fork 182
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
Bug fix - clear ReadOnly fields on PUT or PATCH for 2023-11-22 and 2024-08-12-preview APIs #3538
Bug fix - clear ReadOnly fields on PUT or PATCH for 2023-11-22 and 2024-08-12-preview APIs #3538
Conversation
/azp run e2e, ci |
Azure Pipelines successfully started running 2 pipeline(s). |
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 pulled these changes into #3529 and ran an az aro update
+ az aro update --refresh-credentials
, and it works! Let me know if you need any additional manual smoke tests for sanity's sake.
/azp run e2e |
Azure Pipelines successfully started running 1 pipeline(s). |
f03fd26
to
1d6eac9
Compare
/azp run e2e |
Azure Pipelines successfully started running 1 pipeline(s). |
1d6eac9
to
d973e6b
Compare
/azp run e2e, ci |
Azure Pipelines successfully started running 2 pipeline(s). |
I've tested this change in lower environments as part of #3529 so I'm going to go ahead and get it merged. Thanks again! |
Which issue this PR addresses:
Fixes https://issues.redhat.com/browse/ARO-7192
What this PR does / why we need it:
Clears the ReadOnly fields on PUT or PATCH requests in 2023-11-22 and 2024-08-12-preview APIs. The addition of clearing the fields on PUT requests is due to the frontend prepopulating fields it "thinks" are expected, toInternal() preserves these fields.
Test plan for issue:
Ran e2e against api 2023-11-22
Existing unit tests
created cluster and ran az aro update against 2023-11-22
Is there any documentation that needs to be updated for this PR?
How do you know this will function as expected in production?