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

[MBL-721] Remote Config Local Feature Flags #1817

Merged
merged 10 commits into from May 10, 2023
Merged

[MBL-721] Remote Config Local Feature Flags #1817

merged 10 commits into from May 10, 2023

Conversation

scottkicks
Copy link
Contributor

@scottkicks scottkicks commented May 8, 2023

πŸ“² What

Now that we have RemoteConfig configured, lets get our local feature flags in our debug menu working.

πŸ€” Why

Some background context on why the change is needed.

πŸ›  How

These toggles will first reference values stored in user defaults, if there is one, before referencing the values currently published in our firebase console.
Allowing us to test our app with different flags enbaled/disabled without impacting production.

We're using the same pattern here that we've had with Optimizely, so this is mostly renames and making sure that we're referencing the RemoteConfigClientType that is now in AppEnvironment

πŸ‘€ See

Trello, screenshots, external resources?

After πŸ¦‹
Simulator Screen Recording - iPhone 13 Pro - 2023-05-08 at 14 05 28

βœ… Acceptance criteria

Make sure you run the app using our AppCenter Alpha scheme to test.

  • Toggling flags in Debug -> Remote Config Feature Flags persists on relaunch and fully closing the app.
  • On a fresh install with Consent Management Dialog flag enabled, and the live value in the firebase console set to false, the app shows the Tracking dialog proving that the app is referencing the local flag value and not the published on

@scottkicks scottkicks self-assigned this May 8, 2023
@scottkicks scottkicks added this to the release-5.8.0 milestone May 8, 2023
@nativeksr
Copy link
Collaborator

1 Warning
⚠️ Big PR

Generated by 🚫 Danger

@scottkicks scottkicks marked this pull request as ready for review May 9, 2023 15:15
@scottkicks scottkicks requested a review from msadoon May 9, 2023 15:15
Copy link
Contributor

@msadoon msadoon left a comment

Choose a reason for hiding this comment

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

Ok, nice quick work here.

For some reason I'm not getting the flags to show in-app:

Simulator.Screen.Recording.-.iPhone.8.-.2023-05-09.at.15.04.29.mp4

Also address the questions below and I'll take another look, likely on Thursday. I want to focus heads down and get the xcode upgrade ready for review tomorrow.

@scottkicks
Copy link
Contributor Author

addressed your comments @msadoon take your time reviewing. no rush!

@scottkicks scottkicks requested a review from msadoon May 9, 2023 20:14
@scottkicks scottkicks changed the title MBL-721 [MBL-721] Remote Config Local Feature Flags May 9, 2023
Copy link
Contributor

@msadoon msadoon left a comment

Choose a reason for hiding this comment

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

Yep so good to go - I noticed that the defaults load first not the dashboard values (on fresh install). Then re-launching picks up the dashboard values. Just as a discussion this seems acceptable to me, but let me know if you think dashboard values should be shown on first install launch instead of default values.

@scottkicks scottkicks merged commit d1b0762 into main May 10, 2023
5 checks passed
@scottkicks scottkicks deleted the mbl-721 branch May 10, 2023 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants