Skip to content
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

Merged
merged 3 commits into from
May 1, 2024

Conversation

tony-schndr
Copy link
Collaborator

@tony-schndr tony-schndr commented Apr 25, 2024

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?

@tony-schndr
Copy link
Collaborator Author

/azp run e2e, ci

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@tony-schndr tony-schndr added bug Something isn't working loki labels Apr 25, 2024
Copy link
Collaborator

@cadenmarchese cadenmarchese left a 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.

@tony-schndr
Copy link
Collaborator Author

/azp run e2e

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tony-schndr tony-schndr force-pushed the tony-schndr/ARO-7192-fix-readonly-fields branch from f03fd26 to 1d6eac9 Compare April 25, 2024 18:27
@tony-schndr
Copy link
Collaborator Author

/azp run e2e

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tony-schndr tony-schndr added the next-release To be included in the next RP release rollout label Apr 25, 2024
@tony-schndr
Copy link
Collaborator Author

/azp run e2e, ci

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

cadenmarchese added a commit that referenced this pull request Apr 29, 2024
@cadenmarchese
Copy link
Collaborator

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!

@cadenmarchese cadenmarchese merged commit bc30095 into master May 1, 2024
20 checks passed
@SudoBrendan SudoBrendan deleted the tony-schndr/ARO-7192-fix-readonly-fields branch July 24, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working loki next-release To be included in the next RP release rollout
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants