-
Notifications
You must be signed in to change notification settings - Fork 123
Add delete documents by #44
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 delete documents by #44
Conversation
Seems good~ @eskombro how do you think? |
Great, Thanks for the PR @widlok and @djKooks for the review! As @widlok said in #42 there is a problem with the integration test:
Can you please check that? Let me know when it is working or if you need any help :) And remember you can run the integration tests locally with the tag |
Thanks for reply @eskombro . I run those tests before posting but for some reason all tests fail with error
This is log from just one test testDeleteIndex() but all tests fail, on method call createIndex(...), with this error. |
Is your MeiliSearch instance running? Seems to be down if every test fails because of a connection exception |
I develop on windows, i cant find server option of Meilisearch for windows 10. How can i test this project on win 10? |
@widlok you can download the windows binary from the MeiliSearch Release page! You can also use docker, or create a remote instance in MeiliSearch Sandbox! |
Thanks for advice! Docker looks most convenient , new PR up for a review :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @widlok !
I see that you refactored a little bit the test classes, its ok 👍
Is there any reason to prefer using a List
of identifiers instead of an Array
? This is out of curiosity, because as I have stated, I'm no java expert, and I'm interested in understanding those choices, since soon it will be important to check that there is a coherence between the methods and the data types we use on them, and choices will have to be consistent
Thank you very much! Tests work perfectly now 👌
Can you please rebase your branch on master and ping me when it's all good? |
…ch.sdk.exception to resolve errors
Operating on Arrays can be a bit cumbersome in Java. Lists and Streams have fancy one liners to iterate through it, filter it, map it etc. which makes code immensely more readable and reduce number of code lines . You could use Arrays over List if iterating over it becomes performance bottleneck but nowadays most bottlenecks are I/O operations more than CPU operations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌 LGTM, Thanks a lot!
Thanks for your explanation @widlok! :) A note: I just realized after merging that your commits are being registered as anonymous commits (and not listed in the contributors), maybe a missconfiguration on your git config! |
Thanks for the info @eskombro ! My git tried to force me to become unnamed hero, Its fixed now :) |
@widlok Oh that nasty Git! :) |
#42 added implementation and tests.
Regards Chris