Skip to content

Conversation

gagantrivedi
Copy link
Contributor

@gagantrivedi gagantrivedi commented Feb 28, 2023

This PR

Related Issues

N/A

Notes

N/A

Follow-up Tasks

N/A(?)

How to test

Includes unit tests

@gagantrivedi gagantrivedi force-pushed the feat/flagsmith-provider branch from aa86d11 to d1bcfe6 Compare February 28, 2023 04:31
@beeme1mr
Copy link
Member

Hey @gagantrivedi, thanks for your contribution. Please let me know when you're ready for a review.

@gagantrivedi gagantrivedi force-pushed the feat/flagsmith-provider branch 2 times, most recently from e08bce2 to b2a8fdd Compare March 1, 2023 15:46
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
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>
Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
minor style changes

Signed-off-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
@gagantrivedi gagantrivedi changed the title WIP:feat(flagsmith-provider): Add flagsmith provider feat(flagsmith-provider): Add flagsmith provider Mar 1, 2023
@gagantrivedi gagantrivedi marked this pull request as ready for review March 1, 2023 15:54
@gagantrivedi
Copy link
Contributor Author

gagantrivedi commented Mar 1, 2023

Hey @gagantrivedi, thanks for your contribution. Please let me know when you're ready for a review.

Hi @beeme1mr it's ready for review now.
PS: Please feel free to nitpick

gagantrivedi and others added 2 commits March 6, 2023 21:54
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>
@beeme1mr beeme1mr requested a review from james-milligan March 7, 2023 20:23
@Kavindu-Dodan
Copy link
Contributor

@gagantrivedi Thank you for the contribution. I think you need to add a new entry to .release-please-manifest.json [1]. This controls the release please based versioning.

[1] - https://github.com/open-feature/go-sdk-contrib/blob/main/.release-please-manifest.json

@Kavindu-Dodan
Copy link
Contributor

Other than the my comments, looks good in my view 👍

@toddbaert
Copy link
Member

@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 1.0 version. Otherwise it will be released as 1.0 (unless you want that).

Copy link
Member

@toddbaert toddbaert left a 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.

@toddbaert
Copy link
Member

@gagantrivedi Thank you for the contribution. I think you need to add a new entry to .release-please-manifest.json [1]. This controls the release please based versioning.

[1] - https://github.com/open-feature/go-sdk-contrib/blob/main/.release-please-manifest.json

It's not STRICTLY necessary, but if it's not added here it will be a 1.0.

Copy link
Member

@matthewelwell matthewelwell left a 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.

....

// With traits
trait := flagsmith.Trait{TraitKey: "of_key", TraitValue: "of_value"}
Copy link
Member

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:

https://github.com/open-feature/java-sdk-contrib/blob/main/providers/flagsmith/src/main/java/dev.openfeature.contrib.providers.flagsmith/FlagsmithProvider.java#L106

I appreciate maybe the Go client requires Trait structs but we could do that under the hood in the provider somewhere?

Copy link
Contributor Author

@gagantrivedi gagantrivedi Mar 13, 2023

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>
@gagantrivedi gagantrivedi requested review from Kavindu-Dodan and matthewelwell and removed request for skyerus, james-milligan and Kavindu-Dodan March 13, 2023 09:01
@beeme1mr beeme1mr self-requested a review March 15, 2023 13:43
@beeme1mr
Copy link
Member

@matthewelwell, do you have any more concerns? If not, I'll merge this today and cut a release. Thanks for putting this together, @gagantrivedi!

@matthewelwell
Copy link
Member

@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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants