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): show deprecation warnings for old insights related properties and functions #4524

Merged
merged 7 commits into from
Oct 7, 2020

Conversation

eunjae-lee
Copy link
Contributor

@eunjae-lee eunjae-lee commented Sep 25, 2020

Summary

This PR deprecates and shows warning messages for the following things:

  • getInsightsAnonymousUserToken()
  • InstantSearch({ insightsClient })insightsClient prop
  • analytics widget

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 25, 2020

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

Sandbox Source
InstantSearch.js Configuration

@@ -15,6 +17,19 @@ function getCookie(name: string): string | undefined {
return undefined;
}

export default function getInsightsAnonymousUserToken(): string | undefined {
export function getInsightsAnonymousUserTokenInternal(): string | undefined {
Copy link
Contributor Author

@eunjae-lee eunjae-lee Sep 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic is used internally by insights middleware. So we keep getInsightsAnonymousUserTokenInternal for us.

@eunjae-lee eunjae-lee changed the title chore(deprecate): show deprecation warnings for old insights related properties and functions fix(deprecate): show deprecation warnings for old insights related properties and functions Sep 25, 2020
@eunjae-lee eunjae-lee changed the title fix(deprecate): show deprecation warnings for old insights related properties and functions fix(insights): show deprecation warnings for old insights related properties and functions Sep 25, 2020
@eunjae-lee eunjae-lee requested a review from a team September 25, 2020 14:40
@ghost ghost requested review from francoischalifour and yannickcr and removed request for a team September 25, 2020 14:40
@francoischalifour
Copy link
Member

Did we make sure that the Insights middleware covers all cases that the analytics widget covers?

Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@eunjae-lee eunjae-lee merged commit c93e1cf into master Oct 7, 2020
@eunjae-lee eunjae-lee deleted the chore/deprecate-old-insights branch October 7, 2020 14:19
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.

3 participants