Skip to content

Removing document issue, send documentId instead of array #21

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

Merged
merged 11 commits into from
Oct 6, 2020
Merged

Removing document issue, send documentId instead of array #21

merged 11 commits into from
Oct 6, 2020

Conversation

emulienfou
Copy link
Contributor

When trying to remove a document from MeiliSearch indices, code sent to deleteDocument() method was:

[0 => "003cedf8fec53ae9a0edb79a303e17a1"]

Since the \MeiliSearch\Endpoints\Delegates\HandlesDocuments::deleteDocument need a $documentId of type int/string this was returning an error.

This PR fix this behavior

@emulienfou emulienfou self-assigned this Sep 2, 2020
@emulienfou emulienfou requested a review from curquiza September 2, 2020 20:15
@emulienfou emulienfou added bug Something isn't working dependencies good first issue Good for newcomers Symfony integration labels Sep 2, 2020
@bidoubiwa
Copy link
Contributor

Hey @emulienfou
@curquiza is comming back next week, meanwhile do you think it's could be possible to add some tests that tries out this method?

@curquiza
Copy link
Member

Hello @emulienfou, I agree with @bidoubiwa, adding some tests would be awesome 🙂

curquiza and others added 11 commits October 5, 2020 14:20
…etup (#16)

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md
* Fix clear command, checking return status code

* Fixing import related to meilisearch-php ^0.12

Co-authored-by: david <[email protected]>
Update meilisearch/meilisearch-php requirement from ^0.12 to ^0.13
* Update Engine.php

* Fix linter

* Update src/Engine.php

Co-authored-by: Arkadius Stefanski <[email protected]>

Co-authored-by: Arkadius Stefanski <[email protected]>
This reverts commit 337724b
@curquiza curquiza merged commit 1945371 into meilisearch:master Oct 6, 2020
@emulienfou emulienfou deleted the fix-deleting-document branch October 6, 2020 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies good first issue Good for newcomers Symfony integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants