-
Notifications
You must be signed in to change notification settings - Fork 39
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 Flagsmith Provider #836
feat: Add Flagsmith Provider #836
Conversation
Signed-off-by: kyle-ssg <kyle@solidstategroup.com>
Didn't expect any lint issues, AFAIK I've resolved this here |
Signed-off-by: kyle-ssg <kyle@solidstategroup.com>
Signed-off-by: kyle-ssg <kyle@solidstategroup.com>
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.
This looks really good! Added some comments about the provider name and type nits.
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 really good. Left some suggestions.
Co-authored-by: Lukas Reining <lukas.reining@codecentric.de> Signed-off-by: Kyle Johnson <kyle@solidstategroup.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com> Signed-off-by: Kyle Johnson <kyle@solidstategroup.com>
Co-authored-by: Lukas Reining <lukas.reining@codecentric.de> Signed-off-by: Kyle Johnson <kyle@solidstategroup.com>
Signed-off-by: kyle-ssg <kyle@solidstategroup.com>
# Conflicts: # .release-please-manifest.json # package-lock.json # release-please-config.json # tsconfig.base.json
Signed-off-by: kyle-ssg <kyle@solidstategroup.com>
Thanks @kyle-ssg, I'll rereview today. Would you like me to publish to npm if everything looks good? |
Signed-off-by: kyle-ssg <kyle@solidstategroup.com>
Signed-off-by: kyle-ssg <kyle@solidstategroup.com>
Signed-off-by: kyle-ssg <kyle@solidstategroup.com>
I'm going to be doing a release of the flagsmith SDK to support a couple improvements here. I think I just need clarity on this. I'll keep in draft until I get the SDK release out. |
I've implemented all of the suggested changes and we have a couple improvements upstream ready to help out but I'm finding a bit of an issue with the provider. I don't think it's a blocking issue as I've worked around it in the examples I've made, but this still caught me out. In attempting the following in an angular application
It works for the most part except It looks like Im aware that I could do the following, but is there anything else?
ConfigurationChanged.mov |
Signed-off-by: kyle-ssg <kyle@solidstategroup.com>
Signed-off-by: kyle-ssg <kyle@solidstategroup.com>
Ok, I think this is ready to go! |
Signed-off-by: kyle-ssg <kyle@solidstategroup.com>
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.
Nice job, looks great!
Your assumptions here are all correct, and the solutions are valid. I'll think about this a bit... there may be something that can be done in the SDK but it seems like a bit of an edge case (is it expected or important that you get a change event immediately after becoming ready?) I guess that in a real-world scenario, if this change event was indeed the result of a change in the remote system, it's just as likely that the change would have occurred before the provider is connected, in which case it would of course not be received. Is this just part of a test scenario? |
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.
I think this looks great.
@kyle-ssg I am merging this. Nice work and thanks, as always. A release PR will be opened which I will not merge until you (or Flagsmith other folks) approve it. |
Yes and no, it was part of an example app where I rely on changes to push to an array of logs to demonstrate OpenFeature. With how things work currently I think all apps will have to just treat the first ready as a change rather than relying on a single event. I think what I was trying to do relied to heavily on the meta that gets returned in the events, really if people are doing that they may as well just query the provider directly if they need info from it. |
Awesome, I'm excited to use it! |
Signed-off-by: kyle-ssg <kyle@solidstategroup.com> Signed-off-by: Kyle Johnson <kyle@solidstategroup.com> Co-authored-by: Lukas Reining <lukas.reining@codecentric.de> Co-authored-by: Todd Baert <todd.baert@dynatrace.com> Signed-off-by: Michael Samper <msamper@growthbook.io>
This PR
Adds a Flagsmith Provider
Notes
How to test