Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

feat: Upgrade Client and Helper #1215

Merged
merged 5 commits into from
May 4, 2018
Merged

feat: Upgrade Client and Helper #1215

merged 5 commits into from
May 4, 2018

Conversation

francoischalifour
Copy link
Member

@francoischalifour francoischalifour commented May 4, 2018

This PR upgrades to algoliasearch@3.27.1 and algoliasearch-helper@2.26.0, using the promisified version of client.search(). It is necessary for adding searchClient support to React InstantSearch.

I had to update the tests with a not-so-great hack because of the way we internally handle search with promises now:

Promise.resolve()
  .then(() => {})
  .then(() => {
    // test...
  });

@algobot
Copy link
Contributor

algobot commented May 4, 2018

Deploy preview for react-instantsearch ready!

Built with commit 0f93303

https://deploy-preview-1215--react-instantsearch.netlify.com


const store1 = ism.store.getState();
return Promise.resolve()
.then(() => {})
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if “await await” is allowed? I think a comment here would be useful too

Copy link
Collaborator

@samouss samouss May 4, 2018

Choose a reason for hiding this comment

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

Agree for the comment!

Copy link
Collaborator

@samouss samouss left a comment

Choose a reason for hiding this comment

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

You can add the statement expect.assertions(number) on each async test updated to be sure that all of them are correctly passing.

@samouss samouss merged commit 14fa222 into master May 4, 2018
@samouss samouss deleted the feat/upgrade-client-helper branch May 4, 2018 17:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants