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: add feature_enabled property to variants #70

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

Tymek
Copy link
Member

@Tymek Tymek commented Nov 8, 2023

About the changes

Added feature_enabled property in Variant to indicate feature toggle status independent of variant presence.

Related to Unleash/unleash-client-python#284

Internal ticket: issue/SR-151/update-client-spec-to-include-feature-enabled-property-in-variant

Use case:

Before this change, clients had to check if variants existed for a specific feature or use a combination of get_variant() and is_enabled() calls, which could lead to inaccurate metrics. This change allows for a single method call that provides complete information about the feature's enablement and associated variant.

@Tymek Tymek marked this pull request as ready for review November 8, 2023 11:01
Copy link
Member

@nunogois nunogois left a comment

Choose a reason for hiding this comment

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

LGTM, let's try it out 👍

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

2 participants