-
Notifications
You must be signed in to change notification settings - Fork 94
Update documents by function #613
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
base: main
Are you sure you want to change the base?
Conversation
@NoodleSamaChan I haven't looked closely at this so I could be off of this, but 2 suggestions. Make sure you have enabled the |
@sanders41 thanks so much for the feedback, I'll definitely give it a try! : ) |
That will work for starting an instance with the feature enabled, but since this is in a test it would be better to enable it for the test. It's been a while since I worked with the code in this repo, but I'm thinking the best thing to do would be to add edit documents by function to the features here then enable it in the test. For anyone else that has worked in this repo more recently then me feel free to correct this if it is wrong. |
OK, I had some curiosity and some free time so I figured out what is going on.
Hopefully this all makes sense 😄. If you need any help or want me to give some code examples let me know. |
@NoodleSamaChan sorry for pinging, but it's been a while since this PR had any activity. Would you still like to give it a try? I'm willing to help you with anything if you are stuck. If you are not interested, let me know and I'll solve the issue in another PR. |
Pull Request
Related issue
Fixes #610
What does this PR do?
-I've started working on the implementation of the update documents by function feature, but I'm struggling with writing the tests to check if the code I wrote is viable. @brunoocasali , I tried to have a look around the other tests to get some inspo but I don't seem able to find any that would match.
So far I've written this :
I know that, as is, the test fail at this line /// let interstellar = movies.update_documents_by_function(function).await.expect("Error during test");
Meilisearch(MeilisearchError { error_message: "Using the documents edit route requires enabling the
edit documents by function
experimental feature. See https://github.com/orgs/meilisearch/discussions/762", error_code: Unknown, error_type: InvalidRequest, error_link: "https://docs.meilisearch.com/errors#feature_not_enabled" })I am struggling a bit as I'm not confident on how to use experimental features, I don't know if you'd have any recommandations?
PR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!