-
Notifications
You must be signed in to change notification settings - Fork 14
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(java): use addAlgoliaAgent #652
Conversation
✅ Deploy Preview for api-clients-automation canceled.
|
✗ 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.
Small question!
clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/ApiClient.java
Outdated
Show resolved
Hide resolved
0496511
to
98a2a4a
Compare
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 great, nice!
scripts/ci/husky/pre-commit.js
Outdated
if (e.exitCode === 128) { | ||
return; | ||
} |
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.
Maybe a small log so we know it happened somewhere, is it for the Netlify issue?
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.
is netlify providing the var env CI=true
? I think it was another unrelated issue, but I can add the log
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.
They have NETLIFY
true yes
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.
netlify should never call this pre-commit hook anyway
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!
🧭 What and Why
As discussed, we already have the option to override the
user-agent
by setting the header, so I removed the methodsetAlgoliaAgent
in favor ofaddAlgoliaAgent
andremoveAlgoliaAgent
that add and remove segments directly.Also removed the generated from
ApiClient.java
to make it fully hand written.🧪 Test
CI