-
Notifications
You must be signed in to change notification settings - Fork 364
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
refactor: [M3-7770] - isFeatureEnabledV2 to check for feature flag AND account capability #10371
refactor: [M3-7770] - isFeatureEnabledV2 to check for feature flag AND account capability #10371
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a "v2 function" sounds good to me 👍
While we probably don't need it, we might want to add some unit tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving pending Banks' suggested changes are made, and I had a couple optional suggestions for clarity, too.
packages/manager/.changeset/pr-10371-tech-stories-1713200214722.md
Outdated
Show resolved
Hide resolved
Coverage Report: ✅ |
…D account capability (linode#10371) ## Description 📝 Deprecate `isFeatureEnabled` function and add new function `isFeatureEnabledV2` which uses AND logic instead of OR ## Preview 📷 | | Capabilities On | Capabilities Off | | ------- | ------- | ------- | | LD Feature Flag On | Show feature: YES | Show feature: NO | | LD Feature Flag Off | Show feature: NO | Show feature: NO |
Description 📝
Deprecate
isFeatureEnabled
function and add new functionisFeatureEnabledV2
which uses AND logic instead of ORPreview 📷
As an Author I have considered 🤔
Check all that apply