Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #460 +/- ##
==========================================
+ Coverage 83.23% 86.17% +2.94%
==========================================
Files 27 21 -6
Lines 2111 1939 -172
==========================================
- Hits 1757 1671 -86
+ Misses 305 231 -74
+ Partials 49 37 -12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary of ChangesHello @erka, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request upgrades the OpenFeature Go SDK to version 2, introducing a modernized API that emphasizes context propagation, improved type safety through generics, and clearer error handling. The changes streamline the developer experience by simplifying evaluation calls and providing a structured migration path for existing users. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a major version bump to v2 of the OpenFeature Go SDK. It includes significant and well-documented breaking changes that modernize the API, improve type safety with generics, and make the provider lifecycle fully context-aware. The changes are extensive, involving refactoring of core components like the client and provider interfaces, restructuring packages, and updating documentation. The addition of a detailed migration guide is particularly helpful. Overall, this is a substantial and well-executed upgrade. I've identified a critical compile error and a couple of minor issues related to a typo and documentation consistency that should be addressed.
|
That’s a difficult question. From what I can see in the OpenFeature spec, only number is defined, and Integer and Float aren’t specified. Maybe we could change it to follow the spec with such interface. type Number interface {
~int | ~int8 | ~int16 | ~int32 | ~int64 |
~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 |
~float32 | ~float64
}But it may not be very developer-friendly to use in code and migration might be tricky. @sahidvelji |
Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
Replace default case with direct channel send to prevent potential goroutine leaks when context is cancelled. Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
|
Agreed. I think either |
Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
This PR
Notes