-
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.
Adds method for get_treatment_with_config, see comment: #83 (comment)
- There are multiple use cases in Hyperion of SplitIO's method where it returns both the treatment and it's configuration. This commit adds methods to retrieve these values - Not exactly related, but I see in SplitIO's docs there is a `get_treatments_with_config` (plural) method. We're not using this in Hyperion yet, that I can see, but I wonder if it would be useful down the line. I don't typically suggest to add functionality that won't be used yet, but it;s clear that for a year or so, the ThisFeature gem was not yet capable to handle our needs, which is why the antipattern use of ThisFeature (`ThisFeature.adapter_for(:split)&.send(:client)`) has been committed many times into Hyperion. I'm unsure of why a change to ThisFeature wasn't done first.
- Loading branch information
1 parent
c50010a
commit 23a7536
Showing
4 changed files
with
37 additions
and
14 deletions.
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
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