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/LIVE-3148 Added development/QA tool for feature flags #814

Merged
merged 3 commits into from
Aug 16, 2022

Conversation

juan-cortes
Copy link
Contributor

📝 Description

Due to the nature of the integration with firebase it's not easy to test features that work differently depending on the value of a feature flag from firebase. This PR introduces a tool for LLM and a tool for LLD that allows us to locally override the value of the feature flag for that particular app run. The overrides are not persisted between application launches.

It matches partially the https://ledgerhq.atlassian.net/browse/LIVE-3148 task but I leave it to hub and @thomasrogerlux to take over any remaining topics. This should merely allow us to test and dev with changing values for the flags.

❓ Context

  • Impacted projects: ledger-live-desktop, ledger-live-mobile, ledger-live-common
  • Linked resource(s): https://ledgerhq.atlassian.net/browse/LIVE-3148

✅ Checklist

  • Test coverage
  • Atomic delivery
  • No breaking changes

📸 Demo

image

image

🚀 Expectations to reach

There should be no impact on the functionality of the app. When we change the value of a feature it should act as if the value returned from firebase was the one overriden.

@vercel
Copy link

vercel bot commented Aug 2, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
live-common-tools ✅ Ready (Inspect) Visit Preview Aug 16, 2022 at 4:25PM (UTC)
3 Ignored Deployments
Name Status Preview Updated
ledger-live-github-bot ⬜️ Ignored (Inspect) Aug 16, 2022 at 4:25PM (UTC)
native-ui-storybook ⬜️ Ignored (Inspect) Aug 16, 2022 at 4:25PM (UTC)
react-ui-storybook ⬜️ Ignored (Inspect) Aug 16, 2022 at 4:25PM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Aug 2, 2022

🦋 Changeset detected

Latest commit: 77406d0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
ledger-live-desktop Minor
@ledgerhq/live-common Minor
@ledgerhq/types-live Minor
live-mobile Minor
@ledgerhq/live-cli Patch
live-common-tools Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added common Has changes in live-common desktop Has changes in LLD mobile Has changes in LLM translations Translation files have been touched labels Aug 2, 2022
Copy link
Contributor

@thomasrogerlux thomasrogerlux left a comment

Choose a reason for hiding this comment

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

I reviewed the files that touches Firebase setup for now and I'm good with it besides the few comments

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2022

@juan-cortes

Screenshots: ✅

There are no changes in the screenshots for this PR. If this is expected, you are good to go.

@codecov
Copy link

codecov bot commented Aug 2, 2022

Codecov Report

Merging #814 (77406d0) into develop (0cff80c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #814   +/-   ##
========================================
  Coverage    47.93%   47.93%           
========================================
  Files          620      620           
  Lines        27870    27870           
  Branches      7174     7174           
========================================
  Hits         13359    13359           
  Misses       14453    14453           
  Partials        58       58           
Flag Coverage Δ
test 47.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@Justkant Justkant left a comment

Choose a reason for hiding this comment

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

We need to split the changeset and I have some small questions

.changeset/chilled-pugs-brush.md Outdated Show resolved Hide resolved
@juan-cortes
Copy link
Contributor Author

@Justkant Take a look again when you have a minute :beau:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Has changes in live-common desktop Has changes in LLD mobile Has changes in LLM translations Translation files have been touched
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants