Code Monkey home page Code Monkey logo

Comments (4)

leandroalonso avatar leandroalonso commented on September 13, 2024

@bjtitus I think there's one additional test we should do:

  1. Add a Feature Flag to FeatureFlag.swift
  2. Add an overwritten value to Firebase Remote Config
  3. New value should replace the client-side value
  4. Delete the Firebase Remote Config one
  5. ✅ Local feature flag value should remain the same (we don't want flags to change values when we delete them)

from pocket-casts-ios.

bjtitus avatar bjtitus commented on September 13, 2024

✅ Local feature flag value should remain the same

Are you saying we should store the changed Remote Config value instead of reverting to the value in FeatureFlag.default?

Is the idea to cover future flag removal?

I fear this could make it much hard for us to debug issues without knowing which flag values a user should have. As an example, if someone accidentally added a flag and then deleted it, would we be able to determine which value a user should have on their device without needing to fetch logs/data directly from them?

If we do decide to do this, I think it should be done separately from the default values since this would be new functionality on top of just adding a default value for each flag.

from pocket-casts-ios.

leandroalonso avatar leandroalonso commented on September 13, 2024

Is the idea to cover future flag removal?

Yes!

My main reasoning is: that if an app is working with a flag set to a certain value, it should not change. Think about this scenario:

  1. The flag test has a default value of true
  2. We configured this flag to be false for versions below 7.60
  3. After some time, we delete flag test
  4. Now, for versions below 7.60 the flag will change to true

I fear this could make it much hard for us to debug issues without knowing which flag values a user should have. As an example, if someone accidentally added a flag and then deleted it, would we be able to determine which value a user should have on their device without needing to fetch logs/data directly from them?

I agree with you but overall in support requests one of the things we always recommend is to be on the latest version — but I also agree that this is an argument that goes both ways.

If we do decide to do this, I think it should be done separately from the default values since this would be new functionality on top of just adding a default value for each flag.

In terms of implementation wouldn't that be just a matter of settings flags values only from the list that is returned from the backend? So in case test flag is not there anymore, we do nothing with it.

from pocket-casts-ios.

bjtitus avatar bjtitus commented on September 13, 2024

In terms of implementation wouldn't that be just a matter of settings flags values only from the list that is returned from the backend?

Yeah, the implementation isn't too bad, I just wanted to make sure it's easily revertible if we end up with issues. I think having a separate commit is fine: 0f4659e

from pocket-casts-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.