3d8ca62c35
InvalidFacetDistribution returns invalid_search_facet
2023-01-19 13:41:26 +01:00
6f7e0c431a
Merge #3341
...
3341: add functionnal + error tests on the swap_indexes route and fix a confusing error message r=loiclec a=irevoire
Fix https://github.com/meilisearch/meilisearch/issues/3340
Fix part of https://github.com/meilisearch/meilisearch/issues/3325
Fix https://github.com/meilisearch/meilisearch/issues/3381
Test both the functionality and the error codes
Co-authored-by: Tamo <tamo@meilisearch.com >
Co-authored-by: Loïc Lecrenier <loic.lecrenier@me.com >
v1.0.0-rc.1
2023-01-18 16:32:22 +00:00
00f6af6475
fix a wrong error message
2023-01-18 17:26:48 +01:00
3e5b3df487
Merge #3370 #3373 #3375
...
3370: make the swap indexes not found errors return an IndexNotFound error-code r=irevoire a=irevoire
Fix https://github.com/meilisearch/meilisearch/issues/3368
3373: fix a wrong error code and add tests on the document resource r=irevoire a=irevoire
Fix https://github.com/meilisearch/meilisearch/issues/3371
3375: Avoid deleting all task invalid canceled by r=irevoire a=Kerollmops
Fixes #3369 by making sure that at least one `canceledBy` task filter parameter matches something.
Co-authored-by: Tamo <tamo@meilisearch.com >
Co-authored-by: Kerollmops <clement@meilisearch.com >
2023-01-18 15:21:11 +00:00
e89973f1bf
Do not delete all tasks when no canceled-by matches
2023-01-18 15:50:46 +01:00
d3c796af38
Add a new test to check that invalid canceledBy works correctly
2023-01-18 15:50:46 +01:00
182eea1f17
Introduce a canceledBy filter for the tests
2023-01-18 15:50:42 +01:00
a4476c20f8
fix a wrong error code and add tests on the document resource
2023-01-18 15:28:02 +01:00
57da80900d
make the swap indexes not found errors return an IndexNotFound error code
2023-01-18 14:16:00 +01:00
7322f4e78e
Merge #3355
...
3355: fix the wrong error code on minWordSizeForTypos r=irevoire a=irevoire
Fix #3354
Co-authored-by: Tamo <tamo@meilisearch.com >
2023-01-18 12:25:03 +00:00
0f727d079b
fix the wrong error code on minWordSizeForTypos
2023-01-18 12:28:46 +01:00
82bdb54537
Update the index swap tests after git rebase
2023-01-18 09:40:41 +01:00
b6ec1f1c6d
add functionnal + error tests on the swap_indexes route
2023-01-18 09:36:04 +01:00
41a970247e
Merge #3339
...
3339: Continued deserr integration r=irevoire a=loiclec
Fix https://github.com/meilisearch/meilisearch/issues/3337
Fix https://github.com/meilisearch/meilisearch/issues/3338
1. Add new error codes that should have been implemented earlier:
- `MissingApiKeyActions`
- `MissingApiKeyExpiresAt`
- `MissingApiKeyIndexes`
- `MissingSwapIndexes`
2. Fix a bug where it was possible to create an API key without specifying the value of `expiresAt`
3. Improve the error messages generated by deserr. Have specific error messages for JSON and QueryParam deserialisation errors.
4. Improve error tests by passing query params as arguments to `GET` routes directly instead of using an intermediary JSON object
5. [Use invalid_index_uid error code in more places](e225608337
)
Co-authored-by: Loïc Lecrenier <loic.lecrenier@me.com >
2023-01-17 14:41:22 +00:00
e225608337
Use invalid_index_uid error code in more places
2023-01-17 15:28:06 +01:00
56e79fa850
Update task snapshot test and clean up details
2023-01-17 13:19:04 +01:00
c71a8ea183
Update to latest milli and deserr
2023-01-17 13:10:38 +01:00
b781f9a0f9
cargo fmt
2023-01-17 11:07:07 +01:00
07b90dec08
Remove unused proptest dependency
2023-01-17 11:07:07 +01:00
9194508a0f
Refactor query parameter deserialisation logic
2023-01-17 11:07:07 +01:00
49ddaaef49
Fix missing_swap_indexes error code and handling of expires_at param...
...
of create api key route
2023-01-17 09:43:07 +01:00
766dd830ae
Update deserr to latest version + add new error codes for missing fields
...
- missing_api_key_indexes
- missing_api_key_actions
- missing_api_key_expires_at
- missing_swap_indexes_indexes
2023-01-17 09:43:07 +01:00
436ae4e466
Improve error messages generated by deserr
...
Split Json and Query Parameter error types
2023-01-17 09:43:07 +01:00
a5c4fbbcea
Merge #3334
...
3334: Add specific error codes `immutable_...` r=irevoire a=loiclec
Add the following error codes:
When an immutable field of API key is sent to the `PATCH /keys` route:
- `ImmutableApiKeyUid`
- `ImmutableApiKeyKey`
- `ImmutableApiKeyActions`
- `ImmutableApiKeyIndexes`
- `ImmutableApiKeyExpiresAt`
- `ImmutableApiKeyCreatedAt`
- `ImmutableApiKeyUpdatedAt`
When an immutable field of Index is sent to the `PATCH /indexes/{uid}` route:
- `ImmutableIndexUid`
- `ImmutableIndexCreatedAt`
- `ImmutableIndexUpdatedAt`
Co-authored-by: Loïc Lecrenier <loic.lecrenier@me.com >
Co-authored-by: Tamo <tamo@meilisearch.com >
2023-01-12 15:31:38 +00:00
21b8cd53b7
reformat
2023-01-12 16:20:24 +01:00
7f80b116bc
Add specific immutable_field error codes
2023-01-12 16:20:14 +01:00
341f8478b4
Merge #3330
...
3330: test the error codes on the task routes + fix the missing error codes on the limit and from r=dureuill a=irevoire
Co-authored-by: Tamo <tamo@meilisearch.com >
Co-authored-by: Loïc Lecrenier <loic.lecrenier@me.com >
2023-01-12 15:02:44 +00:00
79c7f65c30
make a test more reliable
2023-01-12 15:39:28 +01:00
2bc60c29fc
Merge #3336
...
3336: Add missing `needs:` to the git latest tag workflow r=curquiza a=curquiza
Fixes this problem: the workflow to update the latest git tag was triggered despite the first check failed
<img width="580" alt="Capture d’écran 2023-01-12 à 15 07 00" src="https://user-images.githubusercontent.com/20380692/212087926-975eb387-c8c9-4789-8a62-a56143b9bbd4.png ">
These leads to update our latest git tag: our latest git tag corresponds to the `v1.0.0-rc.0` tag instead of `v0.30.5`. (I'm fixing this right now)
<img width="586" alt="Capture d’écran 2023-01-12 à 15 08 15" src="https://user-images.githubusercontent.com/20380692/212088136-f4bc2e9c-d824-4c23-8213-52598c742ebd.png ">
Co-authored-by: curquiza <clementine@meilisearch.com >
2023-01-12 14:24:31 +00:00
680ea39bba
Add missingneeds: to the git latest tag workflow
2023-01-12 15:04:11 +01:00
a524dfb713
fix the analytics
2023-01-12 14:49:50 +01:00
705fcaa3b8
reformat the imports
2023-01-12 14:09:15 +01:00
a09b6a341d
Move tasks route to deserr
2023-01-12 13:57:29 +01:00
387874ea26
test the error codes on the task routes
2023-01-12 13:46:19 +01:00
5c1a7c3b9a
Merge #3329
...
3329: Refactor error handling from deserr r=irevoire a=loiclec
Close https://github.com/meilisearch/meilisearch/issues/3318
Close https://github.com/meilisearch/meilisearch/issues/3289
[TODO]
Co-authored-by: Loïc Lecrenier <loic.lecrenier@me.com >
Co-authored-by: Tamo <tamo@meilisearch.com >
2023-01-11 18:15:32 +00:00
6d658f4c52
fix a wrong error code + update some error messages
2023-01-11 19:14:11 +01:00
bf573885ea
integrate the latest version of milli
2023-01-11 19:08:39 +01:00
a68ac3a1dc
reformat the headers
2023-01-11 19:08:39 +01:00
b252c87197
add tests on the sub settings routes
2023-01-11 19:08:39 +01:00
b0b7ad7caf
Apply review suggestions
2023-01-11 19:08:39 +01:00
c91ffec72e
Update Cargo.toml
2023-01-11 19:08:39 +01:00
1fc11264e8
Refactor deserr integration
2023-01-11 19:08:39 +01:00
2bc2e99ff3
Simplify declaration of the error codes
2023-01-11 19:08:39 +01:00
808e184069
Merge #3324
...
3324: Add a test on the search route for each possible error codes r=irevoire a=irevoire
Co-authored-by: Tamo <tamo@meilisearch.com >
2023-01-11 16:08:19 +00:00
7a30d98264
fix a flaky test
2023-01-11 14:54:29 +01:00
d0a85057a3
fix the bad filter test
2023-01-11 11:37:12 +01:00
b3574de809
Merge #3321
...
3321: Update the system http error code to return an internal server error r=irevoire a=irevoire
Fix parts of https://github.com/meilisearch/meilisearch/issues/3318
Co-authored-by: Tamo <tamo@meilisearch.com >
2023-01-11 10:27:13 +00:00
59704c000c
Merge #3326
...
3326: Test error codes on settings r=irevoire a=irevoire
Co-authored-by: Tamo <tamo@meilisearch.com >
2023-01-11 10:07:52 +00:00
b117c688f5
Merge #3328
...
3328: Replace published by released r=Kerollmops a=curquiza
Fix a bug introduced here: https://github.com/meilisearch/meilisearch/pull/3229
Regarding this line:
> * In multiple CIs: replace the `released` type by `published`, see [here](https://stackoverflow.com/questions/59319281/github-action-different-between-release-created-and-published ) why. Will not impact anything, but will prevent to fail our future automation
I made mistakes by replacing some un-relevant lines in the
- latest git workflow
- APT and brew workflow
-> the consequence was the workflow ran when releasing `rc0` but they shouldn't have. Luckily the check inside the workflow prevent any release.
<img width="1366" alt="Capture d’écran 2023-01-11 à 10 36 52" src="https://user-images.githubusercontent.com/20380692/211771382-d716ff16-0d53-41a9-90de-0d93e01e45fa.png ">
This fix is not mandatory thanks to the check inside the workflow, but I would rather roll back to avoid any issues when releasing the official v1 release.
Co-authored-by: curquiza <clementine@meilisearch.com >
2023-01-11 09:43:42 +00:00
5ec85b7dfb
Replace published by released
2023-01-11 10:30:18 +01:00