-
Notifications
You must be signed in to change notification settings - Fork 17
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
fix(generators): add uniqueHost property #2561
Conversation
✅ Deploy Preview for api-clients-automation ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✗ The generated branch has been deleted.If the PR has been merged, you can check the generated code on the |
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.
Thank you for this fix!
I knew something was wrong with my Monitoring client 😄
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.
looks good ! maybe it could be simplified with more variables, like isSingleHost
, isRegionalHosts
, isAppIDHosts
... I'm not sure
that's nice good catch! do we contribute to your pr directly? |
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.
I would say we should each do our PRs separately
The CTS should be aware of that change too, the client test for monitoring is not correct right now |
I don't think we assert hosts yet but we can add one of course |
yes we do ! in all clients ! except monitoring |
:ah: let's fix that once all clients have implemented the uniqueHost so we don't have to block everyone until they fix their CTS |
🧭 What and Why
Monitoring API configuration is not correctly generated. We use the
{appId}-dsn.algolia.net
format but this host does not exist for the Monitoring API.the spec is correct and only define the unique available host.
We need to introduce a new property
uniqueHost
to avoid fallback to{appId}-dsn.algolia.net
format in our configuration files.C# example is provided.
🎟 JIRA Ticket: