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

Add feature flag support using launchdarkly #336

Merged

Conversation

newmskywalker
Copy link
Contributor

No description provided.

e
)
} finally {
launchHomeActivity()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice, so we will always attempt to fetch the FF, but if it fails we will use default values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, if we're unable to target this specific user, they will be targeted by the other rules we've defined in launchdarkly


object FeatureFlags {
object MarketPlace : FeatureFlag {
override val key = "streams-marketplace"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we set a default for this FF? Curious how we will handle the situation where feature flags were not fetched? I assume we use default values, and if so should those be declared here along with the key?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The default value is passed when evaluating the flag. Boolean flags (the only ones we currently support) default to false but this can be changed by the caller to FeatureFlagManager

Copy link
Collaborator

@cristhianescobar cristhianescobar left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@cristhianescobar
Copy link
Collaborator

@newmskywalker can you add me to LD when you get a chance please.

@newmskywalker newmskywalker merged commit 805eed8 into development Oct 22, 2024
1 of 2 checks passed
@newmskywalker newmskywalker deleted the sky/add_feature_flag_manager_using_launch_darkly branch October 22, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants