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

Return the request object when calling index! rather than nil #378

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

such
Copy link

@such such commented Feb 11, 2020

Q A
Bug fix? no
New feature? no
BC breaks? no
Need Doc update no

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.

@chloelbn
Copy link
Contributor

chloelbn commented Feb 11, 2020

Hi @such, thanks for your PR! May I ask you to add some tests along with your changes?

Have a good day!

@Haroenv
Copy link

Haroenv commented Sep 6, 2021

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 ! methods though, do you think you could make the change?

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.

8 participants