-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update the schema to support metadata property and clean tests
Signed-off-by: Roman Dmytrenko <[email protected]>
- Loading branch information
Showing
13 changed files
with
317 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
version: "1.3" | ||
namespace: default | ||
flags: | ||
- key: flipt | ||
name: flipt | ||
description: flipt | ||
enabled: false | ||
variants: | ||
- key: flipt | ||
name: flipt | ||
- key: flipt | ||
name: flipt | ||
default: true | ||
rules: | ||
- segment: internal-users | ||
distributions: | ||
- variant: fromFlipt | ||
rollout: 100 | ||
- segment: all-users | ||
distributions: | ||
- variant: fromFlipt2 | ||
rollout: 100 | ||
metadata: | ||
label: ui | ||
area: 32 | ||
hidden: true | ||
radar: 3.2 | ||
segments: | ||
- key: all-users | ||
name: All Users | ||
description: All Users | ||
match_type: ALL_MATCH_TYPE | ||
- key: internal-users | ||
name: Internal Users | ||
description: All internal users at flipt. | ||
constraints: | ||
- type: STRING_COMPARISON_TYPE | ||
property: organization | ||
operator: eq | ||
value: flipt | ||
match_type: ALL_MATCH_TYPE |
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"version": "1.3", | ||
"flags": [ | ||
{ | ||
"key": "flag1", | ||
"name": "flag1", | ||
"type": "VARIANT_FLAG_TYPE", | ||
"description": "description", | ||
"enabled": true, | ||
"variants": [ | ||
{ | ||
"key": "variant1", | ||
"name": "variant1", | ||
"description": "variant description", | ||
"attachment": { | ||
"pi": 3.141, | ||
"happy": true, | ||
"name": "Niels", | ||
"answer": { "everything": 42 }, | ||
"list": [1, 0, 2], | ||
"object": { "currency": "USD", "value": 42.99 } | ||
} | ||
} | ||
], | ||
"rules": [ | ||
{ | ||
"segment": "segment1", | ||
"rank": 1, | ||
"distributions": [{ "variant": "variant1", "rollout": 100 }] | ||
} | ||
], | ||
"metadata": { | ||
"label": "variant", | ||
"area": true | ||
} | ||
}, | ||
{ | ||
"key": "flag2", | ||
"name": "flag2", | ||
"type": "BOOLEAN_FLAG_TYPE", | ||
"description": "a boolean flag", | ||
"enabled": false, | ||
"rollouts": [ | ||
{ | ||
"description": "enabled for internal users", | ||
"segment": { "key": "internal_users", "value": true } | ||
}, | ||
{ | ||
"description": "enabled for 50%", | ||
"threshold": { "percentage": 50, "value": true } | ||
} | ||
], | ||
"metadata": { | ||
"label": "bool", | ||
"area": 12 | ||
} | ||
} | ||
], | ||
"segments": [ | ||
{ | ||
"key": "segment1", | ||
"name": "segment1", | ||
"match_type": "ANY_MATCH_TYPE", | ||
"description": "description", | ||
"constraints": [ | ||
{ | ||
"type": "STRING_COMPARISON_TYPE", | ||
"property": "fizz", | ||
"operator": "neq", | ||
"value": "buzz" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.