-
Notifications
You must be signed in to change notification settings - Fork 51
feat: add flagd provider implementation #66
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
Conversation
toddbaert
commented
Aug 17, 2022
•
edited
Loading
edited
- adding grpc generation for flagd communication (git submodule pull of schemas repo in maven exec plugin)
- provider implementation
- tests
d07e4e4
to
a711919
Compare
953a035
to
27c08d1
Compare
27c08d1
to
48b61f5
Compare
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.
Tbh, this didn't look fun to write. :-/
providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/FlagdProvider.java
Outdated
Show resolved
Hide resolved
providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/FlagdProvider.java
Show resolved
Hide resolved
providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/FlagdProvider.java
Show resolved
Hide resolved
It wasn't at first, but the SDK changes around the JSON values made it SO MUCH BETTER, I said as much to @beeme1mr earlier. Dealing with the generated protobuf code is a bit tedious, but overall it saves you from writing a ridiculous amount of boilderplate. If you look in |
b8512bb
to
3fb7bb3
Compare
providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/FlagdProvider.java
Outdated
Show resolved
Hide resolved
740a1fa
to
d1ba7df
Compare
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
845c30e
to
254dc71
Compare
* initial commit Signed-off-by: James-Milligan <[email protected]> * nx format:write Signed-off-by: James-Milligan <[email protected]> * udpated nxignore to exclude generated files Signed-off-by: James-Milligan <[email protected]> * fixed linting issues Signed-off-by: James-Milligan <[email protected]> * typo Signed-off-by: James-Milligan <[email protected]> * removed nested .vscode Signed-off-by: James-Milligan <[email protected]> * added typing to axios response objects Signed-off-by: James-Milligan <[email protected]> * removed proto files from version control Signed-off-by: James-Milligan <[email protected]> * required commit for nx run-command Signed-off-by: James-Milligan <[email protected]> * actions Signed-off-by: James-Milligan <[email protected]> * dependency updates + removal of cantextTransformer method Signed-off-by: James-Milligan <[email protected]> * removed forked submodule Signed-off-by: James-Milligan <[email protected]> * switched to open-feature/schemas Signed-off-by: James-Milligan <[email protected]> * dependency sync Signed-off-by: James-Milligan <[email protected]> * merge fixes Signed-off-by: James-Milligan <[email protected]> * workspace fixes Signed-off-by: James-Milligan <[email protected]> * merge fixes Signed-off-by: James-Milligan <[email protected]> * merge fixes Signed-off-by: James-Milligan <[email protected]> * merge fixes - added go to ci Signed-off-by: James-Milligan <[email protected]> * merge fixes Signed-off-by: James-Milligan <[email protected]> * updated go version in github action setup Signed-off-by: James-Milligan <[email protected]> * squashed commits Signed-off-by: James-Milligan <[email protected]> * buf setup test => avoid using go install buf Signed-off-by: James-Milligan <[email protected]> * removed go setup + removed submodule issue => error Signed-off-by: James-Milligan <[email protected]> * removed go setup + removed submodule issue => error Signed-off-by: James-Milligan <[email protected]> * happy path unit tests Signed-off-by: James-Milligan <[email protected]> * more unit tests + fixes Signed-off-by: James-Milligan <[email protected]> * set noImplicitOverride to false Signed-off-by: James-Milligan <[email protected]> * errorCode consolidation Signed-off-by: James-Milligan <[email protected]> * removed tslint ignores and .vscode files Signed-off-by: James-Milligan <[email protected]> * package.json cleanup Signed-off-by: James-Milligan <[email protected]> * Update project.json Signed-off-by: James Milligan <[email protected]> * Apply suggestions from code review Co-authored-by: Michael Beemer <[email protected]> Signed-off-by: James Milligan <[email protected]> * PR updates Signed-off-by: James-Milligan <[email protected]> * removed makefile Signed-off-by: James-Milligan <[email protected]> * replaced hardcoded errorCode and reason values with imported values from nodesdk Signed-off-by: James-Milligan <[email protected]> * style updates, simplification of provider construction, README updates Signed-off-by: James-Milligan <[email protected]> * removed variant value "default_value" on error/default, simplified checkResponse function Signed-off-by: James-Milligan <[email protected]> * Update README.md Signed-off-by: James Milligan <[email protected]> * Update libs/providers/flagd/package.json Co-authored-by: Thomas Poignant <[email protected]> Signed-off-by: James Milligan <[email protected]> * added encodeURI to urls in http service Signed-off-by: James-Milligan <[email protected]> * Update pushlish script Signed-off-by: Todd Baert <[email protected]> * encodeURIComponent(flagKey) in http service Signed-off-by: James-Milligan <[email protected]> * added protocol option Signed-off-by: James-Milligan <[email protected]> * update README Signed-off-by: James-Milligan <[email protected]> Co-authored-by: Michael Beemer <[email protected]> Co-authored-by: Thomas Poignant <[email protected]> Co-authored-by: Todd Baert <[email protected]>
* Add release plz Signed-off-by: Todd Baert <[email protected]> * Update release doc Signed-off-by: Todd Baert <[email protected]> * Add notes about adding release content Signed-off-by: Todd Baert <[email protected]> Signed-off-by: Todd Baert <[email protected]>