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

fix: Make feature flag dev tools show reality #9567

Merged

Conversation

bnussman-akamai
Copy link
Member

@bnussman-akamai bnussman-akamai commented Aug 18, 2023

Description 📝

  • Makes it so the dev tools flag checkboxes actually represent which flags are on/off in real life
    • They have been very confusing and misleading in certain circumstances creating a confusing developer experience.
  • Also, thoughts on reverting Chore: Enable local storage for MSW feature flags #9400?
    • I'd prefer to have my local app match exactly what launchdarkly has by default, does anyone else feel this way?

Preview 📷

Before After
Screenshot 2023-08-18 at 1 31 10 PM Screenshot 2023-08-18 at 1 29 44 PM

How to test 🧪

  • Clear local storage and make sure the dev tools show feature flags accurately

Copy link
Contributor

@abailly-akamai abailly-akamai left a comment

Choose a reason for hiding this comment

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

:1 nice thx for fixing but really against reverting #9400, the developer experience was improved and the tradeoff is you keeping track of your flags.

However, if important to you, we could add a "Don't store flags" checkbox to trigger logic in the useEffect to keep LDs defaults and prevent setting flags in local storage so we really only store that noFlags option in storage. This way we can both be happy :)

@bnussman-akamai bnussman-akamai added Add'tl Approval Needed Waiting on another approval! and removed Ready for Review labels Aug 21, 2023
Copy link
Contributor

@dwiley-akamai dwiley-akamai left a comment

Choose a reason for hiding this comment

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

LGTM -- I'm in favor of adding a "Don't store flags" toggle as suggested by Alban to accommodate both preferences.

Copy link
Contributor

Choose a reason for hiding this comment

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

While we're here we might as well get rid of L16 to more accurately reflect what's actually feature flagged currently

@bnussman-akamai bnussman-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Aug 21, 2023
@bnussman-akamai
Copy link
Member Author

Good idea about Don't store flags. I'm going to save that for another PR and merge this as-is.

@bnussman-akamai bnussman-akamai merged commit 1a837cc into linode:develop Aug 21, 2023
bnussman-akamai added a commit to bnussman-akamai/manager that referenced this pull request Aug 22, 2023
* make dev tools match real life

* Added changeset: Make feature flag dev tools show reality

* fix import order

* clean up flags

---------

Co-authored-by: Banks Nussman <[email protected]>
corya-akamai pushed a commit to corya-akamai/manager that referenced this pull request Sep 6, 2023
* make dev tools match real life

* Added changeset: Make feature flag dev tools show reality

* fix import order

* clean up flags

---------

Co-authored-by: Banks Nussman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants