-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: updated filepaths for schema store regex (#344)
Signed-off-by: James Milligan <james@omnant.co.uk> <!-- Please use this template for your pull request. --> <!-- Please use the sections that you need and delete other sections --> ## This PR <!-- add the description of the PR here --> - updates file paths to conform to schema store regex ### Related Issues <!-- add here the GitHub issue that this PR resolves if applicable --> ### Notes <!-- any additional notes for this PR --> ### Follow-up Tasks <!-- anything that is related to this PR but not done here should be noted under this section --> <!-- if there is a need for a new issue, please link it here --> ### How to test <!-- if applicable, add testing instructions under this section --> --------- Signed-off-by: James Milligan <james@omnant.co.uk> Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
- Loading branch information
1 parent
feb7f04
commit 2d0e9d9
Showing
5 changed files
with
263 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
{ | ||
"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": [ | ||
"email", | ||
[ | ||
"red", | ||
25 | ||
], | ||
[ | ||
"blue", | ||
25 | ||
], | ||
[ | ||
"green", | ||
25 | ||
], | ||
[ | ||
"yellow", | ||
25 | ||
] | ||
] | ||
}, null | ||
] | ||
} | ||
} | ||
}, | ||
"$evaluators": { | ||
"emailWithFaas": { | ||
"in": ["@faas.com", { | ||
"var": ["email"] | ||
}] | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -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 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,36 @@ | ||
{ | ||
"flags": { | ||
"myBoolFlag": { | ||
"state": "ENABLED", | ||
"variants": { | ||
"on": true, | ||
"off": false | ||
}, | ||
"defaultVariant": "off" | ||
}, | ||
"isColorGreen": { | ||
"state": "ENABLED", | ||
"variants": { | ||
"on": true, | ||
"off": false | ||
}, | ||
"defaultVariant": "off", | ||
"targeting": { | ||
"if": [ | ||
{ | ||
"==": [ | ||
{ | ||
"var": [ | ||
"color" | ||
] | ||
}, | ||
"yellow" | ||
] | ||
}, | ||
"on", | ||
"off" | ||
] | ||
} | ||
} | ||
} | ||
} |
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
2d0e9d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'Go Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.30
.BenchmarkResolveObjectValue/test_targetingObjectFlag
21504
ns/op 6106 B/op 104 allocs/op15556
ns/op 6106 B/op 104 allocs/op1.38
This comment was automatically generated by workflow using github-action-benchmark.