meilisearch/meilisearch-http/tests
bors[bot] 379522ace3
Merge #3023
3023: Update error codes related to tasks cancelation + add canceledBy filter r=Kerollmops a=Kerollmops

<details>This PR changes the error codes [to follow the specification](https://github.com/meilisearch/specifications/pull/195).

 - [x] The `missing_filters` error code is renamed `missing_task_filters` to be more accurate and follow the `invalid_task_*` convention.
 - [x] The error code `invalid_task_uids_filter` is added.
 - [x] The error code `invalid_task_canceled_by_filter` is added.
 - [x] The error code `invalid_task_date_filter` is added.
      -  The error message is the same as for expires_at in the API Key  EXCEPT that it does not explicitly mention that a date must be given in the future.
</details>

Edit by `@loiclec` :
I have added a few more changes into this PR. The related issues are:

- Fixes https://github.com/meilisearch/meilisearch/issues/3029
- Implements https://github.com/meilisearch/meilisearch/issues/3026
- Fixes https://github.com/meilisearch/meilisearch/issues/2940
- Fixes https://github.com/meilisearch/meilisearch/issues/2939

Additionally:
- Fixes a bug where global tasks were returned by `GET /tasks` queries even if the user did not have the `index.*` API key action.
- Rename `originalQuery` to `originalFilters`
- Display `error: null` and `canceledBy: null` in the task views
- Allow using the star operator in the task filters in the `DELETE /tasks` and `POST /tasks/cancel` routes
- Make sure that the index scheduler keeps making progress even when a grave error occurs.


Co-authored-by: Kerollmops <clement@meilisearch.com>
Co-authored-by: Clément Renault <clement@meilisearch.com>
Co-authored-by: Loïc Lecrenier <loic.lecrenier@me.com>
2022-11-10 10:51:41 +00:00
..
assets Fix content of dump/assets for testing 2022-06-22 14:51:52 +02:00
auth Fix Index name parsing error message to fit the specification 2022-11-08 16:35:58 +01:00
common Update tests following task API changes 2022-11-08 13:18:18 +01:00
dashboard Skip dashboard test if mini-dashboard feature is disabled 2022-09-29 01:42:52 +02:00
documents Fix Index name parsing error message to fit the specification 2022-11-08 16:35:58 +01:00
dumps Update tests following task API changes 2022-11-08 13:18:18 +01:00
index Fix Index name parsing error message to fit the specification 2022-11-08 16:35:58 +01:00
search reformat 2022-10-27 11:35:23 +02:00
settings Fix Index name parsing error message to fit the specification 2022-11-08 16:35:58 +01:00
snapshot ignore the snapshot test 2022-10-27 11:35:08 +02:00
stats Introduce a rustfmt file 2022-10-27 11:35:05 +02:00
tasks Update more insta-snap tests 2022-11-08 13:39:52 +01:00
content_type.rs Introduce a rustfmt file 2022-10-27 11:35:05 +02:00
integration.rs Fix final compilation 2022-10-27 11:34:17 +02:00