Skip to content

Releases: hoverinc/this_feature

v0.10.0

13 Oct 20:33
7df8c22
Compare
Choose a tag to compare

Context

As the Split Adapter is written currently, it's only capable of reading from Split flags the value of being on, off, or in the control group. But Split features can have many options for treatments. We need to update the Adapters to be able to just retrieve the treatment value, if we want a fuller use of SplitIO's capabilities.

Changes

  • expanding the ThisFeature::Adapters::SplitIo interface by adding #treatment_value and #treatment_config methods, which uses SplitIO's get_treatment_with_config method and returns its config or treatment name as value
  • ThisFeature::Flag#treatment_value method that wraps the adapter's calling of the same method
  • #treatment_value equivalent in ThisFeature::Adapters::Memory so this can be used in all environments
    • for treatment values to be configured, there is also a #enable_treatment!() method, which is similar to #on! which adds to the local storage of flag configurations and their required contexts (for which User id, etc)
  • updates to README for Memory

v0.8.0

04 Jan 22:09
Compare
Choose a tag to compare

First named release