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

Add lazyMap method to Algolia engine #307

Merged
merged 3 commits into from
Jun 13, 2022
Merged

Add lazyMap method to Algolia engine #307

merged 3 commits into from
Jun 13, 2022

Conversation

bakerkretzmar
Copy link
Contributor

@bakerkretzmar bakerkretzmar commented May 27, 2022

Q A
Bug fix? yes
New feature? yes
BC breaks? no
Related Issue Fix #298
Need Doc update no

Describe your change

Adds a lazyMap method to the Algolia engine to fix #298. This PR is a band-aid solution—it doesn't actually implement any 'lazy' functionality the way Scout does, lazyMap behaves exactly the same as map and just returns a lazy collection, but at least now lazyMap will work instead of returning no results.

What problem is this fixing?

See #298. lazyMap is not currently implemented, and because Scout Extended uses different result keys than Scout does, calling lazyMap when using Scout Extended always returns no results.

cc @DevinCodes

Copy link
Contributor

@DevinCodes DevinCodes left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! I tried this out locally, and it seems to work as expected 🙂

We'll try to draft a release this week with this change

@DevinCodes DevinCodes merged commit 9efd81a into algolia:master Jun 13, 2022
@bakerkretzmar bakerkretzmar deleted the add-lazy-map-method branch June 13, 2022 13:11
@DevinCodes
Copy link
Contributor

Hi again @bakerkretzmar !

We've just released v2.0.3, which include this fix as well as the contribution you made in #308 . Thank you for contributing 💙

@bakerkretzmar
Copy link
Contributor Author

Awesome, thank you!

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.

Scout lazyMap method not implemented, returns no results
2 participants