-
Notifications
You must be signed in to change notification settings - Fork 1
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 custom baseURL config for resolve #62
Conversation
Signed-off-by: Fabrizio Demaria <[email protected]>
Signed-off-by: Fabrizio Demaria <[email protected]>
Signed-off-by: Fabrizio Demaria <[email protected]>
Signed-off-by: Fabrizio Demaria <[email protected]>
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.
LGTM. And good that you marked it breaking.
When you merge this, please add some details in the additional commit description on what is the breaking part and how we customers are envisioned to migrate. Doesn't need to be anything long but I think it would be nice to have that part in the release notes.
Signed-off-by: Fabrizio Demaria <[email protected]>
Signed-off-by: Fabrizio Demaria <[email protected]>
if config.APIResolveBaseUrl == "" { | ||
e.confidence.Config.APIResolveBaseUrl = DefaultAPIResolveBaseUrl | ||
} |
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.
c.NewConfidenceBuilder().SetAPIConfig(c.APIConfig{APIKey: "API_KEY"}).Build()
Instantiating the APIConfig{} struct directly (instead of using our constructors NewAPIConfig*
) as the example causes the baseUrl to be an empty string. This code is a way to counteract that
Changes
How was it tested
This setup has been manually tested with the Demo App both in remote and side-car environments.
Breaking Changes
Region
is now removed, so if the integration is using this configuration it will need to be updated to fix compilation issues