Skip to content

Conversation

kitop
Copy link
Contributor

@kitop kitop commented Oct 1, 2020

In buildbot, we want to start passing feature flags down to netlify build. To do so, we need a method to get all enabled flags for a user. For this particular case, we only care about boolean ones.

This adds a method to the featureflag package to do so. LanuchDarkly's Go SDK provides a way to get all flags for a user, so we wrap that in another method to select just the enabled boolean ones.

For tests, it uses the file config as suggested by LaunchDarkly docs: https://docs.launchdarkly.com/sdk/concepts/flags-from-files

@kitop kitop added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Oct 1, 2020
@kitop kitop requested review from a team and vbrown608 October 1, 2020 16:36
emilyzhang
emilyzhang previously approved these changes Oct 1, 2020
@kitop kitop merged commit 809312a into master Oct 1, 2020
@kitop kitop deleted the all-enabled-flags branch October 1, 2020 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants