-
Notifications
You must be signed in to change notification settings - Fork 63
feat(flagsmith-provider): Add flagsmith provider #128
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(flagsmith-provider): Add flagsmith provider #128
Conversation
aa86d11
to
d1bcfe6
Compare
Hey @gagantrivedi, thanks for your contribution. Please let me know when you're ready for a review. |
e08bce2
to
b2a8fdd
Compare
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com> Implement evaluation methods Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com> misc fixes Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
minor style changes Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Hi @beeme1mr it's ready for review now. |
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com> Signed-off-by: Gagan <gagandeeptrivedi47@gmail.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com> Signed-off-by: Gagan <gagandeeptrivedi47@gmail.com>
@gagantrivedi Thank you for the contribution. I think you need to add a new entry to [1] - https://github.com/open-feature/go-sdk-contrib/blob/main/.release-please-manifest.json |
Other than the my comments, looks good in my view 👍 |
@gagantrivedi you may want to add this to https://github.com/open-feature/go-sdk-contrib/blob/main/.release-please-manifest.json with an explicit sub |
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.
Looks great to me from a provider/sdk/spec perspective. I think I agree with all of @Kavindu-Dodan 's points though. Also please note this.
It's not STRICTLY necessary, but if it's not added here it will be a |
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.
Looks good. Added one comment regarding consistency with other Flagsmith providers.
providers/flagsmith/README.md
Outdated
.... | ||
|
||
// With traits | ||
trait := flagsmith.Trait{TraitKey: "of_key", TraitValue: "of_value"} |
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.
Is there a way we can prevent the user from having to use Flagsmith internal structs here? For example, in the Java provider, we just use ctx.AsObjectMap()
to provide the traits. See here:
I appreciate maybe the Go client requires Trait structs but we could do that under the hood in the provider somewhere?
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.
Yeah, good point. It's done
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
@matthewelwell, do you have any more concerns? If not, I'll merge this today and cut a release. Thanks for putting this together, @gagantrivedi! |
No more concerns from me, looks good! Thanks @beeme1mr @gagantrivedi . |
This PR
Related Issues
N/A
Notes
N/A
Follow-up Tasks
N/A(?)
How to test
Includes unit tests