-
Notifications
You must be signed in to change notification settings - Fork 108
feat: support yaml evaluator #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
beeme1mr
merged 16 commits into
open-feature:main
from
vadasambar:feat/180/add-yaml-evaluator
Jan 4, 2023
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
2349935
feat: support yaml evaluator
vadasambar e1dcd37
fix: go lint error
vadasambar 916746b
fix: re-word code comment around `jsoniter.Marshal`
vadasambar 4d2e83a
fix: use yaml.v3 instead of yaml.v2
vadasambar 1b0a0a2
fix: add constants for file types
vadasambar 565dd27
fix: remove filetype abstraction
vadasambar 15784c1
docs: update info about supported cli flags
vadasambar 80159bd
fix: tests failing
vadasambar a9482f4
fix: return `nil` instead of `err` when fetching file via filepathsync
vadasambar 744b608
Revert "fix: tests failing"
vadasambar 806fbca
test: add `json` as the default `FileType` to fix tests
vadasambar ef4ae28
fix: small spacing typo/bug
vadasambar 36a715a
docs: fix spacing `ifflag` -> `if flag`
vadasambar 9e0dff0
fix: refactor switch case for evaluators
vadasambar 4b079c3
docs: add extra wording around yaml evaluation
vadasambar ecd7eff
fix: `make lint` failing
vadasambar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| flags: | ||
| myBoolFlag: | ||
| state: ENABLED | ||
| variants: | ||
| 'on': true | ||
| 'off': false | ||
| defaultVariant: 'on' | ||
| myStringFlag: | ||
| state: ENABLED | ||
| variants: | ||
| key1: val1 | ||
| key2: val2 | ||
| defaultVariant: key1 | ||
| myFloatFlag: | ||
| state: ENABLED | ||
| variants: | ||
| one: 1.23 | ||
| two: 2.34 | ||
| defaultVariant: one | ||
| myIntFlag: | ||
| state: ENABLED | ||
| variants: | ||
| one: 1 | ||
| two: 2 | ||
| defaultVariant: one | ||
| myObjectFlag: | ||
| state: ENABLED | ||
| variants: | ||
| object1: | ||
| key: val | ||
| object2: | ||
| key: true | ||
| defaultVariant: object1 | ||
| isColorYellow: | ||
| state: ENABLED | ||
| variants: | ||
| 'on': true | ||
| 'off': false | ||
| defaultVariant: 'off' | ||
| targeting: | ||
| if: | ||
| - "==": | ||
| - var: | ||
| - color | ||
| - yellow | ||
| - 'on' | ||
| - 'off' | ||
| fibAlgo: | ||
| variants: | ||
| recursive: recursive | ||
| memo: memo | ||
| loop: loop | ||
| binet: binet | ||
| defaultVariant: recursive | ||
| state: ENABLED | ||
| targeting: | ||
| if: | ||
| - "$ref": emailWithFaas | ||
| - binet | ||
| - null | ||
| headerColor: | ||
| variants: | ||
| red: "#FF0000" | ||
| blue: "#0000FF" | ||
| green: "#00FF00" | ||
| yellow: "#FFFF00" | ||
| defaultVariant: red | ||
| state: ENABLED | ||
| targeting: | ||
| if: | ||
| - "$ref": emailWithFaas | ||
| - fractionalEvaluation: | ||
| - - red | ||
| - 25 | ||
| - - blue | ||
| - 25 | ||
| - - green | ||
| - 25 | ||
| - - yellow | ||
| - 25 | ||
| - null | ||
| "$evaluators": | ||
| emailWithFaas: | ||
| in: | ||
| - "@faas.com" | ||
| - var: | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.