-
Notifications
You must be signed in to change notification settings - Fork 64
Next v0.4.0 release #288
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
Next v0.4.0 release #288
Conversation
Fix: include lib directory while packing fix records count for composite index handle "update" button for composite index updating both develooper and end-user documentation Fix typo in documentation Start improving README for new features Fix admin front errors
Fix linting Fix method naming Change naming to explicit collection or indexUid
Update README.md Co-authored-by: Amélie <[email protected]> Update README.md Co-authored-by: Amélie <[email protected]> Update services/collection.js Co-authored-by: Amélie <[email protected]> Update services/collection.js Co-authored-by: Amélie <[email protected]> Update services/collection.js Co-authored-by: Amélie <[email protected]> Remove unecessary file in package json
handle "update" button for composite index
Add possibility to chose the name of the index
|
When are you planning on releasing this PR? |
Co-authored-by: Nicolas Viénot <[email protected]>
Co-authored-by: Nicolas Viénot <[email protected]>
|
@haye-webbio Today or tomorrow. I think today but just in case it might be tomorrow |
Looking forward to it! Thanks :) |
* Raise document addition errors
* Remove action on row click instead of checkbox click
322: Raise document errors r=bidoubiwa a=bidoubiwa related to #126 Co-authored-by: Charlotte Vermandel <[email protected]> Co-authored-by: cvermand <[email protected]>
|
bors merge |
|
bors -r |
|
Did you mean "r-"? |
|
bors r- |
|
Canceled. |
alallema
left a comment
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! 🌮
|
bors merge |
Important
Important
Features
Small changes
Custom Configuration
Inside the
api/[collection]/modelfolder of all existing collections, there is an associated[collection_name].jsfile. In this condiguration file it is now possible to add information about how your collection should act with MeiliSearch.All possible configurations are explained in the next sections.
Example
Custom Index Name
Previously, when adding a collection to MeiliSearch you had no choice on the index naming, it was the same as the collection name.
For example, when adding the
restaurantcollection to MeiliSearch, theindexUidinside MeiliSearch would also be calledrestaurant.With this new version, it is now possible to define a custom index name in your collections model options.
Multiple collections in the same index
You can point multiple collections to the same index.
For example if you want both entries from
shoesandshirtsto go to the same index, they need to share the sameindexName, for exampleclothes.Transform sent data
Before, the whole entry of a collection was sent to MeiliSearch. Including all the sensitive fields about the authors for example. There was no way to decide which field to send to MeiliSearch.
It is now possible by setting a
transformEntryfunction in the configuration file of the collection's model (lots of examples here)Example to sanitize your field, and thus removing all sensitive data:
For example, you can now:
idfields as it is possible your collections may be duplicated in an index.Error notification on failed entries indexation
When indexing a collection by clicking on the un-checked you receive a notification when the index has been created successfully in MeiliSearch.
Nonetheless, if the entries addition fails, you receive no explanation as to why. The only information you see is that the counter stays at
0.This release tracks the entries addition process and raises error notifications as to why documents were not able to be added.
Better permission system
Since
strapi-plugin-users-permissionsis not a mandatory plugin, the new permission system is very basic. Now, You need to be anadminin the admin panel to access or use any of the API routes of the MeiliSearch plugin.Use the checkbox to add collection instead of row
Previously, when clicking on the row of a collection, indexation or removal was triggered. This was non-intuitive and has been removed. Now to add or remove a collection from MeiliSearch you need to click on the checkbox
Clarity on different API keys
It was not clear that the plugin required either the master key or the private key to be able to use the plugin. This leads to users using the same key in their front end to make search requests.
You need to use the
publickey in your front-end app and theprivateormaster-keyin Strapi. See keys documentationfixes: #42
fixes: #112
fixes: #193
fixes: #218
fixes: #249
fixes: #284
fixes: #279
fixes: #191
fixes: #117
fixes: #126
TODO