fix(flagd): Default to correct Port when only Resolver is set#585
Conversation
Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
Summary of ChangesHello @kylejuliandev, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a configuration inconsistency in the flagd provider by ensuring the correct default port is applied when using the in-process resolver. It also significantly refactors the FlagdConfig class to exclusively use a builder pattern for initialization, enhancing the API's robustness and setting the stage for future improvements. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
This PR
As part of #576 I'm adding support for the config.feature tests. I noticed one failing test which was the following:
We aren't defaulting the port to 8015 if only the resolver is set. This is a change in behaviour but I think it's warranted as it's likely a source of confusion for developers.
I've also used this opportunity to remove an internal constructor on the
FlagdConfigclass and updated all the tests to use the builder pattern - which is the only way devs can configure Flagd. This lays the foundation for addressing #478.Related Issues
Notes
Follow-up Tasks
How to test