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: env variants event changelog #4712

Merged
merged 2 commits into from
Sep 14, 2023
Merged

Conversation

nunogois
Copy link
Member

@nunogois nunogois commented Sep 14, 2023

https://linear.app/unleash/issue/2-1397/fix-environment-variants-change-event-does-not-include-changelogs

By running applyPatch without cloning the oldVariants, applyPatch would patch the oldVariants by reference, effectively making them the same as the newVariants. This fix deepClones the oldVariants when sending them in as an applyPatch parameter so that the oldVariants variable is left untouched.

image

@vercel
Copy link

vercel bot commented Sep 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Sep 14, 2023 10:22am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Sep 14, 2023 10:22am

Copy link
Contributor

@chriswk chriswk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nunogois nunogois merged commit f68b0ad into main Sep 14, 2023
10 checks passed
@nunogois nunogois deleted the fix-event-env-variants-changelog branch September 14, 2023 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants