-
Notifications
You must be signed in to change notification settings - Fork 18
feat: add support for flagd flag metadata #215
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
Merged
Changes from 28 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
0521bd0
add support for metadata in flagd
chrfwow a76bcf6
reformatting
chrfwow eab778b
fix type errors
chrfwow 390144d
fix type errors and fmt
chrfwow 7bf74e1
fix type errors and fmt
chrfwow ed1f91f
fix format
chrfwow a6d8715
fix format, add tests
chrfwow 3cc2048
fix format
chrfwow c9e5ed7
fix format
chrfwow 94967fb
switch to new version of flagd testbed
chrfwow 11666ff
switch to new version of flagd testbed v2
chrfwow 69da51c
fix zero value errors
chrfwow 7487c29
Merge branch 'main' into flag-metadata
chrfwow d9c1c4f
Merge branch 'main' into flag-metadata
chrfwow 3eff272
switch to new version of flagd testbed v3
chrfwow 850ce81
switch to new version of flagd testbed v3
chrfwow f2b37b5
switch to new version of flagd testbed v4
chrfwow 503d3e5
switch to new version of flagd testbed v5
chrfwow 257a421
switch to new version of flagd testbed v6
chrfwow 761f650
minor improvements, adjust to workaround for fladg issue
chrfwow 494fb74
update test harness v10000
chrfwow 2a991b9
fix format
chrfwow 0c4f28f
attempt to fix tests
chrfwow ed60818
fix format
chrfwow b2ad90c
fix failing tests, upgrade test harness
chrfwow 8822464
fix format
chrfwow 519c3a5
fix format
chrfwow 5c9fe24
Merge branch 'main' into flag-metadata
chrfwow e054a4f
Update providers/openfeature-provider-flagd/src/openfeature/contrib/p…
chrfwow 21e52b7
Update providers/openfeature-provider-flagd/src/openfeature/contrib/p…
chrfwow f5a376b
Update providers/openfeature-provider-flagd/src/openfeature/contrib/p…
chrfwow aaff161
fix string format
chrfwow 85b70f6
fix format
chrfwow d99ad2f
Merge branch 'main' into flag-metadata
gruebel 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
Submodule test-harness
updated
21 files
+2 −2 | .github/workflows/ci.yml | |
+2 −2 | .github/workflows/release-please.yml | |
+1 −1 | .release-please-manifest.json | |
+45 −0 | CHANGELOG.md | |
+4 −2 | flagd/Dockerfile | |
+15 −0 | flags/metadata-flags.json | |
+38 −0 | flags/selector-flag-combined-metadata.json | |
+64 −0 | flags/zero-flags.json | |
+1 −1 | gherkin/connection.feature | |
+31 −0 | gherkin/evaluation.feature | |
+55 −0 | gherkin/metadata.feature | |
+4 −0 | launchpad/.gitignore | |
+8 −0 | launchpad/configs/metadata.json | |
+ − | launchpad/flagd | |
+154 −0 | launchpad/handlers/http.go | |
+23 −325 | launchpad/main.go | |
+92 −0 | launchpad/pkg/filewatcher.go | |
+172 −0 | launchpad/pkg/flagd.go | |
+73 −0 | launchpad/pkg/json.go | |
+40 −0 | launchpad/pkg/json_test.go | |
+1 −1 | version.txt |
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
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
29 changes: 29 additions & 0 deletions
29
providers/openfeature-provider-flagd/tests/flags/basic-flag-combined-metadata.json
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,29 @@ | ||
{ | ||
"flags": { | ||
"basic-flag": { | ||
"state": "ENABLED", | ||
"variants": { | ||
"true": true, | ||
"false": false | ||
}, | ||
"defaultVariant": "false", | ||
"targeting": {}, | ||
"metadata": { | ||
"string": "a", | ||
"integer": 1, | ||
"float": 1.2, | ||
"bool": true | ||
} | ||
} | ||
}, | ||
"metadata": { | ||
"string": "b", | ||
"integer": 2, | ||
"float": 2.2, | ||
"bool": false, | ||
"flag-set-string": "c", | ||
"flag-set-integer": 3, | ||
"flag-set-float": 3.2, | ||
"flag-set-bool": false | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
providers/openfeature-provider-flagd/tests/flags/basic-flag-metadata.json
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,19 @@ | ||
{ | ||
"flags": { | ||
"basic-flag": { | ||
"state": "ENABLED", | ||
"variants": { | ||
"true": true, | ||
"false": false | ||
}, | ||
"defaultVariant": "false", | ||
"targeting": {}, | ||
"metadata": { | ||
"string": "a", | ||
"integer": 1, | ||
"float": 1.2, | ||
"bool": true | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
providers/openfeature-provider-flagd/tests/flags/basic-flag-set-metadata.json
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,19 @@ | ||
{ | ||
"flags": { | ||
"basic-flag": { | ||
"state": "ENABLED", | ||
"variants": { | ||
"true": true, | ||
"false": false | ||
}, | ||
"defaultVariant": "false", | ||
"targeting": {} | ||
} | ||
}, | ||
"metadata": { | ||
"string": "a", | ||
"integer": 1, | ||
"float": 1.2, | ||
"bool": true | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
providers/openfeature-provider-flagd/tests/flags/invalid-flag-metadata-list.json
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,14 @@ | ||
{ | ||
"flags": { | ||
"basic-flag": { | ||
"state": "ENABLED", | ||
"variants": { | ||
"true": true, | ||
"false": false | ||
}, | ||
"defaultVariant": "false", | ||
"targeting": {}, | ||
"metadata": ["a"] | ||
} | ||
} | ||
} |
Oops, something went wrong.
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.