-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Memory equivalent for
treatment_config
to be used in test en…
…vironment (#85) Follow up to: #83 In the previous PR, we added a SplitIo adapter method for retrieving Split flag's `treatments`. Another object retrievable from Split is the `config` object, a set of key value pairs that can be registered when establishing a feature. If you have Split enabled for your codebase, its configurations are most likely set up in your codebase's `splits.yaml` file, such as: ``` - feature_flag_1: treatment: "off" keys: ["1", "2"] config: desc: some description - feature_flag_2: treatment: "A group" keys: "3" config: plan_id: 4 account_id: 5 ``` To make using this ability in your production code, as well as in your test environment, we're adding its equivalent method in the `Memory` adapter.
- Loading branch information
1 parent
e2b663e
commit 50a950f
Showing
3 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters