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

[feat] export features with variants event when feature is disabled #2719

Closed
wants to merge 1 commit into from

Conversation

matlockx
Copy link
Contributor

@matlockx matlockx commented Dec 20, 2022

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.

@vercel
Copy link

vercel bot commented Dec 20, 2022

@matlockx is attempting to deploy a commit to the unleash-team Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Dec 20, 2022

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

Name Status Preview Comments Updated
unleash-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 5, 2023 at 9:01AM (UTC)
1 Ignored Deployment
Name Status Preview Comments Updated
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Jan 5, 2023 at 9:01AM (UTC)

@gastonfournier
Copy link
Contributor

Hi @matlockx! Thanks for opening this PR! I'm not completely sure why, it might just be something we overlooked. But let me talk about it with the team next week to confirm. From the top of my mind, this makes sense.

@gastonfournier
Copy link
Contributor

Hi @matlockx sorry about the delay, I've opened another PR #2824 to add tests which confirm the misbehaviour: https://github.com/Unleash/unleash/actions/runs/3838645588/jobs/6535361951#step:5:392 and merged your change on top which confirms fixing the issue: https://github.com/Unleash/unleash/actions/runs/3838676975.

I'll continue with that one (cause I can't update your PR) and add you as co-author.

@matlockx
Copy link
Contributor Author

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.

LGTM

gastonfournier pushed a commit that referenced this pull request Jan 5, 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>
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