-
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
feat(javascript): add abtesting
client, better init
usage
#784
Conversation
✅ Deploy Preview for api-clients-automation ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✗ The generated branch has been deleted.If the PR has been merged, you can check the generated code on the |
c8f2e0a
to
4838a70
Compare
22269a9
to
58edaff
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.
Looking great ! Feel free to ignore my comment
}); | ||
} | ||
|
||
function initAbtesting(initOptions: CommonInitOptions & InitRegion<AbtestingRegion> = {}): AbtestingClient { |
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 there a way to make the Required<>
or not correlated with the specs ? I guess it would be very hard
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.
We could leverage the hasFallback logic but since each init are unique it would be the same as having it hardcoded :/
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.
Makes sense, I trust both of you for the javascript side of things.
🧭 What and Why
🎟 JIRA Ticket:
Changes included:
The A/B Testing methods were previously available under the
analytics
client, but are now under their own client, so we need to provide it inalgoliasearch
.We now:
initAbtesting
methodinit
methods, already the case in v4, but we now also overriding.The size impact is quite big, which is not ideal but also not a big deal for the global
algoliasearch
package.🧪 Test
CI :D