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

Update delete index to always return an array #104

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

pedroxido
Copy link
Contributor

@pedroxido pedroxido commented Sep 30, 2020

Fixes #79
As per the discussion in the related issue, the method HandlesIndex::deleteIndex returns void but should return an array given that Meilisearch delete api could return an array in the future.

Added few lines to always return the array from the Meilisearch delete response, if null, returns an empty array

@curquiza curquiza linked an issue Sep 30, 2020 that may be closed by this pull request
@pedroxido pedroxido marked this pull request as ready for review September 30, 2020 16:15
@curquiza curquiza requested a review from ppshobi October 1, 2020 15:09
@curquiza
Copy link
Member

curquiza commented Oct 1, 2020

@emulienfou are you ok with that? 🙂

@curquiza curquiza self-requested a review October 1, 2020 15:09
@emulienfou
Copy link
Contributor

@curquiza Indeed, perfect for me

Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

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

Thanks @pedroxido for your work!

And thanks @ppshobi and @emulienfou for your incredible reactivity, as usual 😁

@curquiza curquiza added the breaking-change The related changes are breaking for the users label Oct 1, 2020
@curquiza curquiza merged commit 5607e72 into meilisearch:master Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change The related changes are breaking for the users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delete index method should return array
4 participants