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: deprecate feature toggle variants at environment level #7058

Merged
merged 2 commits into from
May 16, 2024

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented May 15, 2024

About the changes

Variants tab will be hidden for new features and feature that don't use environment variants.
We'd like to encourage the usage of the strategy variants. Env variants are still kept for the features that already use them for backwards compatibility.

Variants in this tab will be gone for new features and existing features without env variants
Screenshot 2024-05-14 at 15 29 26

We also have a sunset flag called "enableLegacyVariants" that can be used to enable environment variants even for the new features.

This PR also updates docs with a deprecation notice.

Next PR will be created to block environment variants in the backend API.

Important files

Discussion points

Original PR #7054 was working at the instance level but we found that feature level deprecation is more versatile and simpler.

Copy link

vercel bot commented May 15, 2024

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

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2024 11:31am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview May 15, 2024 11:31am

Comment on lines +183 to +191
...(showLegacyVariants
? [
{
title: 'Variants',
path: `${basePath}/variants`,
name: 'Variants',
},
]
: []),
Copy link
Contributor

Choose a reason for hiding this comment

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

Just commenting on what we talked about: maybe for some users will be confusing to see the tab in a feature with variants and don't see the tab in another feature in the same project, which might cause them to communicate via slack or a ticket. To prevent this communication overhead, maybe we can show the tab with a deprecated icon, but hide the content (so you'd be only able to edit environment variants if you had them, but not if you don't)

@kwasniew kwasniew merged commit 88e3b1b into main May 16, 2024
12 checks passed
@kwasniew kwasniew deleted the deprecate-feature-toggle-variants-at-environment-level branch May 16, 2024 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants