Skip to content
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(flipt): able to provide additional gRPC Dial Options #593

Merged
merged 4 commits into from
Nov 4, 2024

Conversation

gunturaf
Copy link
Contributor

@gunturaf gunturaf commented Nov 4, 2024

This PR

  • Flipt provider: added ability to provide additional gRPC Dial Options, one usecase for this is to set a gRPC Service Config via grpc.WithDefaultServiceConfig(...), a Service Config allows devs to set quality-of-life things such as retry strategy.
  • Upgrade dependencies to the latest
  • Lint code by replacing and removing deprecated code:
    1. grpc.Dial() -> grpc.NewClient()
    2. removed grpc.WithBlock() as it's deprecated, users can migrate to gRPC Service Config's waitForReady.
    3. Change fmt.Errorf with errors.New as the error has no additional params so it won't benefit by using fmt.Errorf.

Related Issues

Notes

I don't know who to tag and sorry for tagging you, would you kindly help review my PR? @markphelps & Flipt core team.

Follow-up Tasks

How to test

@gunturaf gunturaf requested a review from a team as a code owner November 4, 2024 06:20
@github-actions github-actions bot requested a review from markphelps November 4, 2024 06:20
@gunturaf gunturaf changed the title provider: flipt: able to provide additional gRPC Dial Options feat(flipt): able to provide additional gRPC Dial Options Nov 4, 2024
Signed-off-by: Guntur Akhmad Fauzi <guntur@stockbit.com>
Signed-off-by: Guntur Akhmad Fauzi <guntur@stockbit.com>
Signed-off-by: Guntur Akhmad Fauzi <guntur@stockbit.com>
Signed-off-by: Guntur Akhmad Fauzi <guntur@stockbit.com>
Copy link
Contributor

@markphelps markphelps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@beeme1mr beeme1mr merged commit f447ea2 into open-feature:main Nov 4, 2024
5 checks passed
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.

3 participants