-
Notifications
You must be signed in to change notification settings - Fork 119
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
Return the request object when calling index! rather than nil #378
base: master
Are you sure you want to change the base?
Conversation
Hi @such, thanks for your PR! May I ask you to add some tests along with your changes? Have a good day! |
Fix Batch index
Thanks for your PR, sorry that we have taken a long time to respond. In the mean time the branches have gotten quite out of date, so we couldn't just merge as-is. However I do understand why you'd want to retrieve the resulting tasks. To be consistent, we'd want to return that with all |
Describe your change
This gives access to the Algolia request (including the taskID) when using the Rails API (eg object.index!).
What problem is this fixing?
This is useful when we want to check the status of a task after indexing an object and when the synchronous API is not suitable to our needs.