Skip to content
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(insights): detect appId and apiKey from client directly in v5 #6492

Merged
merged 2 commits into from
Dec 26, 2024

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Dec 24, 2024

Summary

In the insights middleware / getAppIdAndApiKey function we quickly fall back to the brittle logic with transporter. I've made a PR to the client (algolia/api-clients-automation#4285) to expose appId and apiKey directly on the object, so newer v5 will mostly use this logic.

Result

in v5 we use appId and apiKey from the client, which can also be a good way to be documented for custom clients

Reading the plain parameters is easier to implement in custom clients. I'll also see if i can do a pull request to the client to add applicationId/apiKey to the object to make this the simple case.
@Haroenv Haroenv requested a review from dhayab December 24, 2024 13:28
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 4c27922:

Sandbox Source
example-instantsearch-getting-started Configuration
example-react-instantsearch-getting-started Configuration
example-react-instantsearch-next-app-dir-example Configuration
example-react-instantsearch-next-routing-example Configuration
example-vue-instantsearch-getting-started Configuration

@Haroenv Haroenv merged commit 392a65b into master Dec 26, 2024
15 checks passed
@Haroenv Haroenv deleted the fix/change-order branch December 26, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants