-
Notifications
You must be signed in to change notification settings - Fork 70
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!: Updated service to use connect #163
feat!: Updated service to use connect #163
Conversation
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: James-Milligan <james@omnant.co.uk>
I'll look at this first thing tomorrow. I'd like to get this in. Although the benchmark does seem to be hanging for some reason, and there's errors in it's logs. |
Nice reduction in code, happy times |
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: James-Milligan <james@omnant.co.uk>
…flagd into connect-refactor
I have resolved the error log on the benchmarks, the hanging seems to be on writing to the gh-pages branch so i will look into this |
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 work :)
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: James-Milligan <james@omnant.co.uk>
I tested this locally with the current js flagd provider, behavior looks the same as before (which is good!). Happy paths all work as expected. The only issue I'm having (which existed before this change) is that it's a bit messy to map the RPCErrors to our error codes. See the screenshot below for an example RPC error for a not-found flag: As you can see the What do you think? Is that possible? UPDATE: we think this might be a parsing issue in the clients. Either way, this isn't a blocker for this PR since it's not new behavior. |
@james-milligan You've missed updating a couple old REST examples in the readme. |
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: James-Milligan <james@omnant.co.uk>
What does the |
I'll leave that to @james-milligan . It looks good to me! |
Signed-off-by: James-Milligan <james@omnant.co.uk>
🤖 I have created a release *beep* *boop* --- ## [0.2.0](v0.1.1...v0.2.0) (2022-09-26) ### ⚠ BREAKING CHANGES * Updated service to use connect (#163) ### Features * Updated service to use connect ([#163](#163)) ([828d5c4](828d5c4)) ### Bug Fixes * checkout release tag before running container and binary releases ([#171](#171)) ([50fe46f](50fe46f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Connect is a family of libraries for building browser and gRPC-compatible HTTP APIs. It is backwards compatible with gRPC and allows for all currently listed service providers and their 'variations' (gRPC, http(s), unix / tcp) to be managed by a single service provider with a single set of handlers.
Using connect introduces the
connect protocol
, directly compatible with theconnect-go
andfconnect-web
client libraries. This provides the benefit avoiding the use of heavy libraries such asgrpc-web
in the front end applications. It is also fully compatible with gRPC meaning that any existing clients that match the interface will still work, thus, providers can still be writen for other languages using pure grpc clients, without requiring a language specifc conenct library.Breaking changes:
The http routes are changed, there is currently no support for providing 'custom' routes. A request which previously will have looked like this:
will not look like this:
This may not be an issue going forwards as these URLs are internal, and will only requre an update to the provider.
route prefixes can be added to allow for /api/ to be appended to the front of each route.
There is no longer a
--service-provider
option, this is because all variations of this flagkey are now available through the singleconnect
service. (there may be argument for keeping this flag and setting the default to'connect'
)