-
Notifications
You must be signed in to change notification settings - Fork 34
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
feat: add flag metadata field #178
Conversation
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #178 +/- ##
==========================================
+ Coverage 71.25% 72.47% +1.21%
==========================================
Files 8 8
Lines 668 723 +55
==========================================
+ Hits 476 524 +48
- Misses 174 180 +6
- Partials 18 19 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
This all makes sense to me. I'm particularly interested in other's opinions on this:
I'll defer to those with more familiarity with go semantics. |
From pure spec point of view [1]
IMO, to be spec compliant, we should have an empty record here 🤔 [1] - https://openfeature.dev/specification/sections/flag-evaluation/#requirement-1413 |
How do we want to handle releasing a breaking change? If we're going to release this as a minor version, we need to make sure Release Please is configured properly and that the changes are clearly documented. |
I didn't notice the
That this was non-breaking? @james-milligan - can you clarify? We can officially, break the provider contract and not consider it a major change because providers are still in hardening, but I'd like to exhaust all possible options before doing this. Alternatively, releasing a v2 would be painful, I think, based on previous experiments. |
yes this is non breaking, apologies should have caught this sooner! |
Signed-off-by: James Milligan <[email protected]>
Co-authored-by: Kavindu Dodanduwa <[email protected]> Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
I've updated the title so it reads a bit better in release notes. Approved! |
This PR
Related Issues
#177
Notes
If the flag metadata is not in the provider response, then the returned evaluation details will have a nil value, this can be updated to have an empty map, but IMO its a cleaner implementation to leave this value as nil (nil slices have length 0)
Follow-up Tasks
How to test