Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improved logic, by simplifying.
- by instead of passing an object, we pass it as a string, we simplify the code by a lot. - bootstrap reading classes are much simpler now (borderline we should ask ourselves if we still want to bundle them at all, since the responsibility would then just live outside of the SDK) - allow setting bootstrap configuration, and also disabling the toggle fetcher at the same time. Useful when testing. - use as simple test resources as possible. If we don't need it for testing, then we shouldn't bundle it. (as it makes it confusing for whoever comes afterwards) - added tests from the Client class perspective too, so we know that all steps in between work as expected.
- Loading branch information
Showing
12 changed files
with
122 additions
and
122 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,14 @@ | ||
|
||
{ | ||
"version": 1, | ||
"features": [ | ||
"version": 1, | ||
"features": [ | ||
{ | ||
"name": "featureX", | ||
"enabled": true, | ||
"strategies": [ | ||
{ | ||
"name": "default" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "featureY", | ||
"enabled": false, | ||
"strategies": [ | ||
{ | ||
"name": "baz", | ||
"parameters": { | ||
"foo": "bar" | ||
} | ||
} | ||
] | ||
|
||
}, | ||
{ | ||
"name": "featureZ", | ||
"enabled": true, | ||
"strategies": [ | ||
{ | ||
"name": "default" | ||
}, | ||
{ | ||
"name": "hola", | ||
"parameters": { | ||
"name": "val" | ||
} | ||
} | ||
] | ||
|
||
"name": "featureX", | ||
"enabled": true, | ||
"strategies": [ | ||
{ | ||
"name": "default" | ||
} | ||
] | ||
} | ||
]} | ||
] | ||
} |
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
Oops, something went wrong.