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: export features with variants when feature is disabled #2824

Merged
merged 3 commits into from
Jan 5, 2023

Conversation

gastonfournier
Copy link
Contributor

About the changes

When exporting features one is normally also interested in disabled features, so they are also included in the export file, while the variants are not. I do not see a good reason for that, so this PR removes the check and exports the variants then as well.
I could also add an option as well, but as long as there is no good reason for ignoring the variants I would just export them with the features.

Tests for #2719

Closes #2719

@vercel
Copy link

vercel bot commented Jan 4, 2023

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

2 Ignored Deployments
Name Status Preview Comments Updated
unleash-docs ⬜️ Ignored (Inspect) Jan 4, 2023 at 2:05PM (UTC)
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Jan 4, 2023 at 2:05PM (UTC)

@gastonfournier gastonfournier self-assigned this Jan 4, 2023
@gastonfournier gastonfournier enabled auto-merge (squash) January 4, 2023 14:21
@gastonfournier gastonfournier changed the title fix: export features with variants event when feature is disabled fix: export features with variants when feature is disabled Jan 4, 2023
@matlockx
Copy link
Contributor

matlockx commented Jan 4, 2023

👍

Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

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

LG

@gastonfournier gastonfournier merged commit 58dd09f into main Jan 5, 2023
@gastonfournier gastonfournier deleted the fix-variants-when-env-is-disabled branch January 5, 2023 10:30
gastonfournier pushed a commit that referenced this pull request Jan 12, 2023
)

## About the changes
When exporting features one is normally also interested in disabled
features, so they are also included in the export file, while the
variants are not. I do not see a good reason for that, so this PR
removes the check and exports the variants then as well.
I could also add an option as well, but as long as there is no good
reason for ignoring the variants I would just export them with the
features.

This PR adds tests on #2719

Closes #2719

Co-authored-by: Martin Joehren <martin.joehren@esailors.de>
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