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

fix: rollout metadata handling #3790

Closed
wants to merge 1 commit into from

Conversation

markphelps
Copy link
Collaborator

Fixes #3789

Fix the issue where updating the rollout from the UI does not work correctly when a flag has no metadata.

  • Update the updateRollout mutation in ui/src/app/flags/rolloutsApi.ts to handle empty metadata by sending an empty object instead of an empty array.
  • Modify the updateRollout mutation to create an update object that includes the metadata check and use this object in the body of the request.

Fixes #3789

Fix the issue where updating the rollout from the UI does not work correctly when a flag has no metadata.

* Update the `updateRollout` mutation in `ui/src/app/flags/rolloutsApi.ts` to handle empty metadata by sending an empty object instead of an empty array.
* Modify the `updateRollout` mutation to create an `update` object that includes the metadata check and use this object in the `body` of the request.
@markphelps markphelps requested a review from a team as a code owner January 10, 2025 14:54
@markphelps markphelps marked this pull request as draft January 10, 2025 14:54
@markphelps markphelps closed this Jan 10, 2025
@markphelps markphelps deleted the markphelps/fix-rollout-metadata branch January 10, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot update rollout from UI if flag has no metadata
1 participant