-
Notifications
You must be signed in to change notification settings - Fork 14
Description
This issue gathers the changes related to the v0.28.0 of Meilisearch that will impact the integrations team.
Release date: July 11, 2022
The whole milestone of v0.28.0 is here!
Changes related to the keys management
Related to:
- issue: Pagination of the
/keysressources meilisearch#2442 - issue: Change of the API key resource meilisearch#2369
All the changes:
GET /keyshas pagination metadata, addedlimit(default: 20),offset(default: 0),total.GET /keys/:uid_or_keycan receive either a:uidor:keyto find the key, not just the:keyhow it used to be.DELETE /keys/:uid_or_keycan receive either a:uidor:keyto find the key, not just the:keyhow it used to be.PATCH /keys/:uid_or_keycan receive either a:uidor:keyto find the key, not just the:keyhow it used to be.- Add the possibility to specify
:uidto generate deterministic API keys ifnullMeilisearch generates one. It must be a UUID v4 value. - Add a
:nameattribute to the resource (can be null). - Add new values to the actions attribute:
keys.get,keys.create,keys.updateandkeys.delete. PATCH /keys/:uid_or_keycan update onlynameanddescriptionfields.apiKeyPrefixclaim is now namedapiKeyUidand expects the uid of the signing API key as a value.ReplacemasterKeyfromREADME.mdGetting started section (and others maybe?) with onlyapiKey.
Changes related to the HTTP verbs
Related to:
To be more compliant with the RESTful good practices we must change the following verbs:
PATCH/indexes/{indexUid}instead ofPUTPATCH/indexes/{indexUid}/settingsinstead ofPOSTPATCH/indexes/{indexUid}/settings/typo-toleranceinstead ofPOSTPUT/indexes/{indexUid}/settings/displayed-attributesinstead ofPOSTPUT/indexes/{indexUid}/settings/distinct-attributeinstead ofPOSTPUT/indexes/{indexUid}/settings/filterable-attributesinstead ofPOSTPUT/indexes/{indexUid}/settings/ranking-rulesinstead ofPOSTPUT/indexes/{indexUid}/settings/searchable-attributesinstead ofPOSTPUT/indexes/{indexUid}/settings/sortable-attributesinstead ofPOSTPUT/indexes/{indexUid}/settings/stop-wordsinstead ofPOSTPUT/indexes/{indexUid}/settings/synonymsinstead ofPOST
Changes related to the tasks resources
Related to:
All the changes:
- Remove
GET /indexes/:indexUid/tasks. UseGET /tasks?indexUid=:indexUidinstead. - Remove
GET /indexes/:indexUid/tasks/:taskUid. UseGET /tasks/:taskUidinstead. - Rename
uidtotaskUidin the202 - Accepted taskresponse return by every asynchronous tasks (ex: index creation, document addition...) - The field
indexUidcan benull. - Add pagination to
GET /tasksbased in this specification usinglimit,from,nextmetadata in the response. - Rename these task types:
documentPartial->documentAdditionOrUpdatedocumentAddition->documentAdditionOrUpdateclearAll->documentDeletion
- Possibility to filter the results:
- In the endpoint
GET /taskswe can filter by:type,statusandindexUid. - We need to join the array values when filter by
statuslike this:enqueued,processing.
- In the endpoint
Changes related to the search
Related to:
All the changes:
- Rename
nbHitsresponse parameter toestimatedTotalHits. - Delete
exhaustiveNbHitsresponse parameter. - Delete
exhaustiveFacetsCountresponse parameter. matchesrequest parameter is renamedshowMatchesPosition._matchesInforesponse parameter is renamed_matchesPosition.facetsDistributionrequest parameter is renamedfacets.facetsDistributionresponse parameter is renamedfacetDistribution.
Changes related to the indexes resources
Related to:
All the changes:
- Remove the
namefield in the index. - Wrap the indexes objects in a
resultskey. GET /indexeshas pagination metadata, addedlimit(default: 20),offset(default: 0),total.
Changes related to the documents resources
Related to:
All the changes:
GET /documents/:uid,GET /documentsAdd the possibility to reduce the body payload by using a query parameter calledfields(previously calledattributesToRetrieve), check the issue and the spec for the entire behavior.- Wrap the objects in a
resultskey. GET /documentshas pagination metadata, addedlimit(default: 20),offset(default: 0),total.⚠️ ThedisplayedAttributessettings do not impact anymore the displayed fields returned in the/documentsendpoints. These settings only affect the/searchendpoint.
Changes related to the dumps resources
Related to:
All the changes:
- Remove code sample
get_dump_status_1 - Remove method get dump status.
- A dump creation now responds with a
taskobject from typedumpCreation. - The error
dump_already_processingdon't need to be handled.
Changes regarding the smart crop behavior
Related to:
Fix tests regarding two new settings, pagination and faceting
Related to:
- issue: Add limit of facet value and a setting to let the users customize it meilisearch#2368
- issue: Add settings to customize the maximum number of reachable documents during the search meilisearch#2495
According to the issues above, we must ensure our tests pass after adding the two new settings.
Since we have some tests that rely on the result of the GET /settings API result, we should make them pass.