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(api): add type to Feature #168

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

jameshartig
Copy link
Contributor

About the changes

Adds the Type field to api.Feature which is already returned by the API but was not captured in the Go struct.

Closes #162

Important files

Discussion points

This will be slightly difficult for us to get to in normal usage since IsEnabled and GetVariant do not expose the underlying api.Feature. We plan to add our own map[string]*api.Feature to our internal client so we can resolve the underlying feature after we call GetVariant.

Copy link
Contributor

@FredrikOseberg FredrikOseberg left a comment

Choose a reason for hiding this comment

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

LGTM

@FredrikOseberg FredrikOseberg merged commit e7dffa7 into Unleash:v4 Dec 13, 2023
1 check passed
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.

Add Type to api.Feature
2 participants