-
Notifications
You must be signed in to change notification settings - Fork 33
feat(flagd-core): update fractional operator to CBOR encoding (v3) #415
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| +1 −1 | .github/workflows/ci.yml | |
| +6 −6 | .github/workflows/release-please.yml | |
| +1 −1 | .release-please-manifest.json | |
| +35 −0 | CHANGELOG.md | |
| +1 −1 | docker-compose.yaml | |
| +0 −1 | flagd/Dockerfile | |
| +420 −71 | flags/custom-ops.json | |
| +110 −21 | flags/edge-case-flags.json | |
| +4 −4 | gherkin/config.feature | |
| +3 −3 | gherkin/connection.feature | |
| +3 −2 | gherkin/events.feature | |
| +260 −0 | gherkin/targeting.feature | |
| +1 −1 | version.txt |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
| JsonPrimitive, | ||
| ends_with, | ||
| fractional, | ||
| normalize_numbers, | ||
| normalize_version, | ||
| sem_ver, | ||
| starts_with, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ | |
| "~contextEnrichment", | ||
| "~deprecated", | ||
| "~fractional-v1", | ||
| "~fractional-v2", | ||
| } | ||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ | |
| "~unixsocket", | ||
| "~deprecated", | ||
| "~fractional-v1", | ||
| "~fractional-v2", | ||
| ] | ||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ | |
| "~metadata", | ||
| "~deprecated", | ||
| "~fractional-v1", | ||
| "~fractional-v3", | ||
| ] | ||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -90,3 +90,13 @@ def assert_handler_run_within(event_type, event_handles, time: int): | |||||||||
|
|
||||||||||
| for event in event_handles: | ||||||||||
| event_handles.remove(event) | ||||||||||
|
|
||||||||||
|
|
||||||||||
| @then( | ||||||||||
| parsers.cfparse( | ||||||||||
| "the {event_type} event handler should not have been executed", | ||||||||||
| ) | ||||||||||
| ) | ||||||||||
| def assert_handler_not_run(event_type: str, event_handles: list): | ||||||||||
| found = any(h["type"] == event_type for h in event_handles) | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Wait before asserting that the event did not run.
Proposed fix- found = any(h["type"] == event_type for h in event_handles)
+ handles = assert_handlers(event_handles, event_type, max_wait=2)
+ found = any(h["type"] == event_type for h in handles)
assert not found📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| assert not found | ||||||||||
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: open-feature/python-sdk-contrib
Length of output: 29078
🏁 Script executed:
Repository: open-feature/python-sdk-contrib
Length of output: 26407
🏁 Script executed:
Repository: open-feature/python-sdk-contrib
Length of output: 25921
🏁 Script executed:
Repository: open-feature/python-sdk-contrib
Length of output: 7423
🏁 Script executed:
Repository: open-feature/python-sdk-contrib
Length of output: 1046
🏁 Script executed:
Repository: open-feature/python-sdk-contrib
Length of output: 220
🏁 Script executed:
Repository: open-feature/python-sdk-contrib
Length of output: 16995
🏁 Script executed:
Repository: open-feature/python-sdk-contrib
Length of output: 17284
Preserve literal backslashes in
update_context.For
Stringvalues,update_contextreplaces every\\pair before storing the value inevaluation_context.attributes. This changes inputs that contain two literal backslashes. The pinned test data uses\u...sequences and does not define\\as an encoding. Remove this normalization or decode only an explicit test-data encoding, and add a literal-backslash case.🤖 Prompt for AI Agents