FFL-1675: [Flags] Add support for global flags via EvaluationContext.EMPTY#3104
Conversation
c5e45ae to
e398b27
Compare
|
🎯 Code Coverage 🔗 Commit SHA: 95c4410 | Docs | Datadog PR Page | Was this helpful? Give us feedback! |
33caa77 to
707ac12
Compare
typotter
left a comment
There was a problem hiding this comment.
Thanks! ptal for the fixes applied
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
devflow unqueued this merge request: It did not become mergeable within the expected time |
typotter
left a comment
There was a problem hiding this comment.
Thanks Nikita. Just needs a stamp for the last tweaks please and thank you
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
[email protected] unqueued this merge request |
|
/remove |
|
View all feedbacks in Devflow UI.
|
|
/remove |
|
View all feedbacks in Devflow UI.
|
Co-authored-by: Nikita Ogorodnikov <[email protected]>
52ec66f to
95c4410
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3104 +/- ##
===========================================
+ Coverage 71.42% 71.48% +0.07%
===========================================
Files 881 881
Lines 32523 32524 +1
Branches 5479 5479
===========================================
+ Hits 23227 23249 +22
+ Misses 7747 7738 -9
+ Partials 1549 1537 -12
🚀 New features to boost your workflow:
|
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
What does this PR do?
Adds
EvaluationContext.EMPTYconstant to support global flag evaluations without user-specific targeting context.This PR also includes a couple of minor fixes in the flags module.
Motivation
The Open Feature spec does not require a
tarketingKeyfor flag evaluation. Our flags module requires a non-null key so that it may compute bucketing. An empty string is a valid targeting key, so this EMPTY context is a handy shortcut for when a non-null-but-empty context is required.The NoopFlagsClient is expected to start in a NotReady state, rather than an error. This missing expectation surfaced in openfeature module testing.
Additional Notes
Use Cases
Related
Review checklist (to be filled by reviewers)