-
Notifications
You must be signed in to change notification settings - Fork 38
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 flagd provider implementation #66
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 <toddbaert@gmail.com>
Signed-off-by: Todd Baert <toddbaert@gmail.com>
Signed-off-by: Todd Baert <toddbaert@gmail.com>
Signed-off-by: Todd Baert <toddbaert@gmail.com>
Signed-off-by: Todd Baert <toddbaert@gmail.com>
Signed-off-by: Todd Baert <toddbaert@gmail.com>
845c30e
to
254dc71
Compare
* initial commit Signed-off-by: James-Milligan <james@omnant.co.uk> * nx format:write Signed-off-by: James-Milligan <james@omnant.co.uk> * udpated nxignore to exclude generated files Signed-off-by: James-Milligan <james@omnant.co.uk> * fixed linting issues Signed-off-by: James-Milligan <james@omnant.co.uk> * typo Signed-off-by: James-Milligan <james@omnant.co.uk> * removed nested .vscode Signed-off-by: James-Milligan <james@omnant.co.uk> * added typing to axios response objects Signed-off-by: James-Milligan <james@omnant.co.uk> * removed proto files from version control Signed-off-by: James-Milligan <james@omnant.co.uk> * required commit for nx run-command Signed-off-by: James-Milligan <james@omnant.co.uk> * actions Signed-off-by: James-Milligan <james@omnant.co.uk> * dependency updates + removal of cantextTransformer method Signed-off-by: James-Milligan <james@omnant.co.uk> * removed forked submodule Signed-off-by: James-Milligan <james@omnant.co.uk> * switched to open-feature/schemas Signed-off-by: James-Milligan <james@omnant.co.uk> * dependency sync Signed-off-by: James-Milligan <james@omnant.co.uk> * merge fixes Signed-off-by: James-Milligan <james@omnant.co.uk> * workspace fixes Signed-off-by: James-Milligan <james@omnant.co.uk> * merge fixes Signed-off-by: James-Milligan <james@omnant.co.uk> * merge fixes Signed-off-by: James-Milligan <james@omnant.co.uk> * merge fixes - added go to ci Signed-off-by: James-Milligan <james@omnant.co.uk> * merge fixes Signed-off-by: James-Milligan <james@omnant.co.uk> * updated go version in github action setup Signed-off-by: James-Milligan <james@omnant.co.uk> * squashed commits Signed-off-by: James-Milligan <james@omnant.co.uk> * buf setup test => avoid using go install buf Signed-off-by: James-Milligan <james@omnant.co.uk> * removed go setup + removed submodule issue => error Signed-off-by: James-Milligan <james@omnant.co.uk> * removed go setup + removed submodule issue => error Signed-off-by: James-Milligan <james@omnant.co.uk> * happy path unit tests Signed-off-by: James-Milligan <james@omnant.co.uk> * more unit tests + fixes Signed-off-by: James-Milligan <james@omnant.co.uk> * set noImplicitOverride to false Signed-off-by: James-Milligan <james@omnant.co.uk> * errorCode consolidation Signed-off-by: James-Milligan <james@omnant.co.uk> * removed tslint ignores and .vscode files Signed-off-by: James-Milligan <james@omnant.co.uk> * package.json cleanup Signed-off-by: James-Milligan <james@omnant.co.uk> * Update project.json Signed-off-by: James Milligan <75740990+james-milligan@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com> Signed-off-by: James Milligan <75740990+james-milligan@users.noreply.github.com> * PR updates Signed-off-by: James-Milligan <james@omnant.co.uk> * removed makefile Signed-off-by: James-Milligan <james@omnant.co.uk> * replaced hardcoded errorCode and reason values with imported values from nodesdk Signed-off-by: James-Milligan <james@omnant.co.uk> * style updates, simplification of provider construction, README updates Signed-off-by: James-Milligan <james@omnant.co.uk> * removed variant value "default_value" on error/default, simplified checkResponse function Signed-off-by: James-Milligan <james@omnant.co.uk> * Update README.md Signed-off-by: James Milligan <75740990+james-milligan@users.noreply.github.com> * Update libs/providers/flagd/package.json Co-authored-by: Thomas Poignant <thomas.poignant@gmail.com> Signed-off-by: James Milligan <75740990+james-milligan@users.noreply.github.com> * added encodeURI to urls in http service Signed-off-by: James-Milligan <james@omnant.co.uk> * Update pushlish script Signed-off-by: Todd Baert <toddbaert@gmail.com> * encodeURIComponent(flagKey) in http service Signed-off-by: James-Milligan <james@omnant.co.uk> * added protocol option Signed-off-by: James-Milligan <james@omnant.co.uk> * update README Signed-off-by: James-Milligan <james@omnant.co.uk> Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com> Co-authored-by: Thomas Poignant <thomas.poignant@gmail.com> Co-authored-by: Todd Baert <toddbaert@gmail.com>
* Add release plz Signed-off-by: Todd Baert <toddbaert@gmail.com> * Update release doc Signed-off-by: Todd Baert <toddbaert@gmail.com> * Add notes about adding release content Signed-off-by: Todd Baert <toddbaert@gmail.com> Signed-off-by: Todd Baert <toddbaert@gmail.com>