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

feat(insights): prevent potential errors #5487

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Feb 20, 2023

To better prepare for the insights middleware being automatically added, we are making the following changes:

  • useCookie by default true so userToken does not need to be provided
  • still call insightsClient if no userToken is found (userToken can be applied using useCookie, thus not known)
  • error on unknown algolia credentials converted to warning

prep for FX-2248

@Haroenv Haroenv requested review from a team, FabienMotte and aymeric-giraudet and removed request for a team February 20, 2023 13:55
@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 20, 2023

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 de9bf32:

Sandbox Source
InstantSearch.js Configuration
react-instantsearch-app Configuration
example-react-instantsearch-hooks-default-theme Configuration
example-vue-instantsearch-default-theme Configuration

@Haroenv Haroenv requested a review from dhayab February 20, 2023 16:18
@Haroenv Haroenv requested a review from dhayab February 21, 2023 12:55
Base automatically changed from feat/automatic-insights-client to feat/automatic-insights February 21, 2023 13:23
To better prepare for the insights middleware being automatically added, we are making the following changes:

- useCookie by default true so userToken does not need to be provided
- still call `insightsClient` if no userToken is found (userToken can be applied using useCookie, thus not known)
- error on unknown algolia credentials converted to warning
@Haroenv Haroenv force-pushed the feat/automatic-insights-allow-auto branch from 4685922 to de9bf32 Compare February 21, 2023 13:29
@Haroenv Haroenv merged commit 2c04f89 into feat/automatic-insights Feb 21, 2023
@Haroenv Haroenv deleted the feat/automatic-insights-allow-auto branch February 21, 2023 14:17
Haroenv added a commit that referenced this pull request Mar 2, 2023
To better prepare for the insights middleware being automatically added, we are making the following changes:

- useCookie by default true so userToken does not need to be provided
- still call `insightsClient` if no userToken is found (userToken can be applied using useCookie, thus not known)
- error on unknown algolia credentials converted to warning
Haroenv added a commit that referenced this pull request Mar 8, 2023
To better prepare for the insights middleware being automatically added, we are making the following changes:

- useCookie by default true so userToken does not need to be provided
- still call `insightsClient` if no userToken is found (userToken can be applied using useCookie, thus not known)
- error on unknown algolia credentials converted to warning
Haroenv added a commit that referenced this pull request Apr 18, 2023
To better prepare for the insights middleware being automatically added, we are making the following changes:

- useCookie by default true so userToken does not need to be provided
- still call `insightsClient` if no userToken is found (userToken can be applied using useCookie, thus not known)
- error on unknown algolia credentials converted to warning
Haroenv added a commit that referenced this pull request Apr 24, 2023
To better prepare for the insights middleware being automatically added, we are making the following changes:

- useCookie by default true so userToken does not need to be provided
- still call `insightsClient` if no userToken is found (userToken can be applied using useCookie, thus not known)
- error on unknown algolia credentials converted to warning
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.

4 participants