Commit Graph

59 Commits

Author SHA1 Message Date
Kerollmops 669a3ff85f
Improve the tasks error reporting 2022-06-20 11:08:05 +02:00
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
Kerollmops 3684c822f1
Add indexUid filtering on the /tasks route 2022-05-31 11:33:20 +02:00
ad hoc 62ce8e0bda
chore(http): rename auto batching cli option 2022-03-07 15:19:19 +01:00
Rob Ede 3b2e467ca6
update actix-web dependency to 4.0 2022-02-28 19:03:37 +01:00
mpostma c9a236b0af
feat(lib): auto-batching 2022-02-01 18:06:20 +01:00
bors[bot] c8bb54cd94
Merge #2098
2098: feat(dump): Provide the same cli options as the snapshots r=MarinPostma a=irevoire

Add two cli options for the dump:
- `--ignore-missing-dump`
- `--ignore-dump-if-db-exists`

Fix #2087

Co-authored-by: Tamo <tamo@meilisearch.com>
2022-01-26 14:32:23 +00:00
Tamo bad4bed439
feat(dump): Provide the same cli options as the snapshots
Add two cli options for the dump:
- `--ignore-missing-dump`
- `--ignore-dump-if-db-exists`

Fix #2087
2022-01-26 14:34:06 +01:00
Rob Ede 9f5fee404b
chore(all): update actix-web dependency to 4.0.0-beta.21 2022-01-21 20:44:17 +00:00
Clémentine Urquizar 595250c93e
Allow any header for CORS 2022-01-05 15:38:47 +01:00
ManyTheFish 450b81ca13 Bug(CORS): Add missing allowed headers
fix #2040
2022-01-03 13:41:12 +01:00
many ee7970f603 feat(auth): Extend API keys
- Add API keys in snapshots
- Add API keys in dumps
- Rename action indexes.add to indexes.create
- fix QA #1979

fix #1979
fix #1995
fix #2001
fix #2003
related to #1890
2021-12-14 17:33:39 +01: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
marin postma d65f055030
pass anaytics into Arc instead of static ref 2021-10-29 17:25:55 +02:00
Tamo d72c887422
makes the analytics available for all the routes 2021-10-29 17:25:47 +02:00
Tamo 664d09e86a
makes the analytics works with the option and the feature 2021-10-29 17:25:47 +02:00
many b4038597ba
Keep persisting tmp files in database directory and put non-persisting tmp files in default tmp dir 2021-10-18 14:16:35 +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
Anirudh Rowjee bffab21b10 Changes
1. Removed redundant scope registration
2021-10-04 14:47:05 +05:30
Anirudh Rowjee 151f691609 Fixes #1750
This commit is a fix to issue #1750.
As a part of the changes to solve this issue, the following changes have
been made -
1. Route registration for static assets has been modified
2. the `mut` keyword on the `scope` has been removed.
2021-10-02 15:24:04 +05:30
mpostma 8fa6502b16 review changes 2021-09-29 14:17:41 +02:00
mpostma 102c46f88b clippy + fmt 2021-09-28 22:22:59 +02:00
mpostma 56766cffc3 remove module level doc 2021-09-28 18:58:56 +02:00
mpostma 692c676625 fix tests 2021-09-28 18:57:36 +02:00
mpostma 60518449fc split meilisearch-http and meilisearch-lib 2021-09-21 13:23:22 +02:00
mpostma 09d4e37044 split data and api keys 2021-09-20 15:31:03 +02:00
mpostma 0f7625e29a bump dependencies 2021-09-13 15:17:08 +02:00
Tamo 78308365ec
fix typos 2021-07-29 14:40:41 +02:00
Tamo 1a1046a0ef
start writing some documentation for newcomers 2021-07-27 16:35:42 +02:00
mpostma 575ec2a06f refactor routes 2021-07-05 14:33:48 +02:00
marin postma 01b09c065b
change route to service<resource> 2021-06-24 19:02:28 +02:00
marin postma 79fc3bb84e
fmt 2021-06-24 16:36:22 +02:00
marin postma 1e9f374ff8
update running route 2021-06-24 16:35:12 +02:00
marin postma 0c1c7a3dd9
implement authentication policies 2021-06-24 16:31:30 +02:00
marin postma 5b71751391
policies macros 2021-06-24 16:31:30 +02:00
marin postma 880fc069bd
remove dbg 2021-06-23 16:49:25 +02:00
marin postma a838238a63
move payload to own module 2021-06-23 16:49:25 +02:00
marin postma 834995b130
clippy + fmt 2021-06-23 16:49:23 +02:00
marin postma 4b292c6e9b
add payload limit to app config 2021-06-23 16:48:33 +02:00
marin postma 1c13100948
implement custom payload 2021-06-23 16:48:31 +02:00
marin postma 71226feb74
refactor create_app macro 2021-06-23 16:47:15 +02:00
marin postma b1a5ef0aab
improve mini dashboard routing 2021-06-22 21:49:05 +02:00
marin postma 0d3fb5ee0d
factorize internal error macro 2021-06-21 12:11:08 +02:00
bors[bot] 2062b10b79
Merge #209
209: Integrate amplitude r=MarinPostma a=irevoire

And merge the sentry and amplitude usage under one “Enable analytics” flag

closes #180


Co-authored-by: Tamo <tamo@meilisearch.com>
Co-authored-by: Irevoire <tamo@meilisearch.com>
2021-06-16 15:25:31 +00:00
Tamo 4e2568fd6e
disable amplitude on debug build 2021-06-16 17:12:49 +02:00
Tamo def1596eaf
Integrate amplitude
And merge the sentry and amplitude usage under one “Enable analytics”
flag
2021-06-15 15:36:30 +02:00
Tamo 18d4d6097a
implements the synonyms in transplant 2021-06-14 14:47:51 +02:00
Marin Postma 1c4f0b2ccf
clippy, fmt & tests 2021-05-31 16:03:39 +02:00