Commit Graph

38 Commits

Author SHA1 Message Date
pierre-l 36cb09eb25 Add a new `meilisearch_types` crate
Move `meilisearch_error` to `meilisearch_types::error`
Move `meilisearch_lib::index_resolver::IndexUid` to `meilisearch_types::index_uid`
Add a new `InvalidIndexUid` error in `meilisearch_types::index_uid`
2022-06-09 16:14:13 +02:00
many ffefd0caf2
feat(auth): API keys
implements:
https://github.com/meilisearch/specifications/blob/develop/text/0085-api-keys.md

- Add tests on API keys management route (meilisearch-http/tests/auth/api_keys.rs)
- Add tests checking authorizations on each meilisearch routes (meilisearch-http/tests/auth/authorization.rs)
- Implement API keys management routes (meilisearch-http/src/routes/api_key.rs)
- Create module to manage API keys and authorizations (meilisearch-auth)
- Reimplement GuardedData to extend authorizations (meilisearch-http/src/extractors/authentication/mod.rs)
- Change X-MEILI-API-KEY by Authorization Bearer (meilisearch-http/src/extractors/authentication/mod.rs)
- Change meilisearch routes to fit to the new authorization feature (meilisearch-http/src/routes/)

- close #1867
2021-12-06 09:52:41 +01:00
Marin Postma a30e02c18c feat(all): Task store
implements:
https://github.com/meilisearch/specifications/blob/develop/text/0060-refashion-updates-apis.md

linked PR:

- #1889
- #1891
- #1892
- #1902
- #1906
- #1911
- #1914
- #1915
- #1916
- #1918
- #1924
- #1925
- #1926
- #1930
- #1936
- #1937
- #1942
- #1944
- #1945
- #1946
- #1947
- #1950
- #1951
- #1957
- #1959
- #1960
- #1961
- #1962
- #1964

- https://github.com/meilisearch/milli/pull/414
- https://github.com/meilisearch/milli/pull/409
- https://github.com/meilisearch/milli/pull/406
- https://github.com/meilisearch/milli/pull/418

- close #1687
- close #1786
- close #1940
- close #1948
- close #1949
- close #1932
- close #1956
2021-12-02 20:14:42 +01:00
many 7464720426
Fix some errors 2021-10-28 10:47:59 +02:00
many 61c15b69fb
Change malformed_payload error 2021-10-27 11:13:12 +02:00
Tamo 9a1e44dc78
Apply suggestion
- remove the payload_error_handler in favor of a PayloadError::from

- merge the two match branch into one

- makes the accepted content type a const instead of recalculating it for every error
2021-10-06 17:15:47 +02:00
Tamo c6d107a05f
makes the content-type mandatory for every routes 2021-10-06 17:15:47 +02:00
mpostma 4eb3817b03
missing payload error 2021-09-30 16:58:13 +02:00
mpostma 18cb514073
invalid content type error 2021-09-30 16:58:13 +02:00
mpostma 137272b8de
empty content type error 2021-09-30 16:58:13 +02:00
mpostma 8fa6502b16 review changes 2021-09-29 14:17:41 +02:00
mpostma 3503fbf7fe re-export milli from meilisearch_lib 2021-09-28 22:08:03 +02:00
Tamo 539a57026d
fix the sort error messages 2021-09-28 14:50:26 +02:00
Tamo c1376a9f2a
add the geosearch to Meilisearch 2021-09-28 14:50:26 +02:00
mpostma 60518449fc split meilisearch-http and meilisearch-lib 2021-09-21 13:23:22 +02:00
mpostma e14640e530 refactor meilisearch 2021-09-20 14:54:20 +02:00
mpostma 0f7625e29a bump dependencies 2021-09-13 15:17:08 +02:00
Tamo 49c918defa
bump milli 2021-09-08 17:41:47 +02:00
Kerollmops 51387b2c80
Introduce the new invalid sortable error codes 2021-08-25 17:29:30 +02:00
marin postma 3b601f615a
declare new authentication related errors 2021-06-24 16:53:20 +02:00
marin postma a1d34faaad
decompose error messages 2021-06-24 10:57:28 +02:00
bors[bot] a2368db154
Merge #239
239: Bump milli to 0.6.0 r=MarinPostma a=MarinPostma

fix #231


Co-authored-by: marin postma <postma.marin@protonmail.com>
2021-06-24 08:08:41 +00:00
marin postma 74bb748a4e
bump milli to 0.6.0 2021-06-23 18:40:19 +02:00
marin postma 834995b130
clippy + fmt 2021-06-23 16:49:23 +02:00
marin postma d0ef1ef174
change errors codes 2021-06-22 11:58:01 +02:00
marin postma 9092d35a3c
fix payload error handler 2021-06-21 21:51:38 +02:00
marin postma f91a3bc6ab
set error content type to json 2021-06-21 18:48:05 +02:00
marin postma 1e4592dd7e
enable errors in updates 2021-06-21 18:42:47 +02:00
marin postma 56686dee40
review changes 2021-06-21 13:57:32 +02:00
marin postma fa573dabf0
fmt 2021-06-21 12:11:09 +02:00
marin postma abdf642d68
integrate milli errors 2021-06-21 12:11:08 +02:00
marin postma 0d3fb5ee0d
factorize internal error macro 2021-06-21 12:11:08 +02:00
marin postma 02277ec2cf
reintroduce anyhow 2021-06-21 12:11:06 +02:00
marin postma 58f9974be4
remove anyhow refs & implement missing errors 2021-06-21 10:59:38 +02:00
Marin Postma 1c4f0b2ccf
clippy, fmt & tests 2021-05-31 16:03:39 +02:00
Marin Postma 6bcf20c70e
serve static site 2021-04-22 10:26:54 +02:00
mpostma dd324807f9
last review edits + fmt 2021-03-15 18:11:10 +01:00
mpostma 5ecf514d28
restructure project 2021-03-10 13:46:49 +01:00