-
Notifications
You must be signed in to change notification settings - Fork 123
#22 | Add getOrCreateIndex functionality #45
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
Conversation
Hi @arjunrc143 Thanks for your PR. It is important that in the This will be updated later when we implement a Custom error handler in #7 Can you please add this check? |
Also, please link the issue. You can add a comment in your pr like this
|
Co-authored-by: Samuel Jimenez <[email protected]>
…ists message in exception
Done |
closes #22 |
I think this must be done in the PR description :) I linked it anyways ! |
This PR seems good! Just need to add a few integration tests ! For example:
|
@eskombro I have added the integration tests. Please check. |
2 integration tests are failing. Will check that. |
This reverts commit 90de15b.
@arjunrc143 I checked what's going on, and the problem is that when you get an
So the check you implemented for the error catching (line 123) doesn't work. This problem is coming from what I'll fix this since I'm implementing a basic error handler, and let you know so you can rebase your branch and it should work fine! Glad you added those tests 👍 |
@eskombro Cool. Let me know once this gets fixed. Thanks! |
…MeiliSearchConnectionException (meilisearch#46) Custom Exceptions: MeiliSearchException => MeiliSearchApiException + MeiliSearchConnectionException
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.
Hey @arjunrc143!
We can already use custom Exceptions, Can you please rebase your branch on master?
I did a suggestion on your code, on how to check the MeiliSearchApiException
errorCode in this method which is already tested!
ALSO:
Can you please create a getOrCreateIndex(String uid)
method without a primaryKey, which calls getOrCreateIndex(String uid, null)
?
public Index getOrCreateIndex(String uid) throws Exception {
return getOrCreateIndex(uid, null);
}
primaryKey
should be optional!
After this PR will be ready to merge! 🎉
…ch.sdk.exception to resolve errors
* Implementation of delete list of documents from index. * Add tests for deleteDocuments , fixed existing errors in test module. * change name of package com.meilisearch.sdk.Exception -> com.meilisearch.sdk.exception to resolve errors
Co-authored-by: Samuel Jimenez <[email protected]>
Co-authored-by: Samuel Jimenez <[email protected]>
…ists message in exception
This reverts commit 90de15b.
Co-authored-by: Samuel Jimenez <[email protected]>
…va into meilisearch-22
@eskombro This is done. Can you please review it? |
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! 🎉
No description provided.