Skip to content
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

fix: convert example flag file to v1 #2450

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions examples/demo/demo-flags.goff.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
color-box:
percentage: 10
# rule: key ew "9" # All the user with an ID starting with 9
# rule: key eq "123e4567-e89b-12d3-a456-426614174000" # Target a specific id
true: green
false: red
default: grey
variations:
green_var: green
red_var: red
default_var: grey
targeting:
# All the user with an ID starting with 9
# - query: key ew "9"
# variation: green_var

# Target a specific id
# - query: key eq "123e4567-e89b-12d3-a456-426614174000"
# variation: green_var
defaultRule:
# variation: grey_var
percentage:
green_var: 10
red_var: 90
Loading