01b09c065b
change route to service<resource>
2021-06-24 19:02:28 +02:00
3b601f615a
declare new authentication related errors
2021-06-24 16:53:20 +02:00
fbd58f2eec
clippy
2021-06-24 16:36:22 +02:00
79fc3bb84e
fmt
2021-06-24 16:36:22 +02:00
8e4928c7ea
fix tests
2021-06-24 16:36:22 +02:00
d078cbf39b
remove authentication middleware
2021-06-24 16:36:21 +02:00
561596d8bc
update stats routes
2021-06-24 16:36:18 +02:00
549b489c8a
update settings routes
2021-06-24 16:35:48 +02:00
1e9f374ff8
update running route
2021-06-24 16:35:12 +02:00
817fcfdd88
update keys route
2021-06-24 16:35:12 +02:00
fab50256bc
update index routes
2021-06-24 16:35:04 +02:00
b044608b25
update health route
2021-06-24 16:32:45 +02:00
ce4fb8ce20
update dump route
2021-06-24 16:32:43 +02:00
adf91d286b
update documents and search routes
2021-06-24 16:32:15 +02:00
0c1c7a3dd9
implement authentication policies
2021-06-24 16:31:30 +02:00
5b71751391
policies macros
2021-06-24 16:31:30 +02:00
12f6709e1c
move authencation to extractor mod
2021-06-24 16:31:28 +02:00
5229f1e220
experimental auth extractor
2021-06-24 16:30:15 +02:00
b6ca7929eb
Merge #240
...
240: Rework error messages r=irevoire a=MarinPostma
Simplify the error messages, and make them more compliant with legacy Meilisearch.
Basically, stop composing the messages, and simply forward the message of inner errors.
Co-authored-by: marin postma <postma.marin@protonmail.com >
2021-06-24 11:36:11 +00:00
43204ca67b
Merge #230
...
230: Logs r=MarinPostma a=irevoire
closes #193
Since we can't really print the body of requests in actix-web, I logged the parameters of every request and what we were returning to the client.
Co-authored-by: Tamo <tamo@meilisearch.com >
2021-06-24 09:23:24 +00:00
ad8d9a97d6
debug the body of every http request
2021-06-24 11:22:11 +02:00
36f32f58d4
add the log_level variable to the cli and reduce the log level of milli and grenad
2021-06-24 11:20:52 +02:00
b4fd4212ad
reduce the log level of some info!
2021-06-24 11:20:52 +02:00
a1d34faaad
decompose error messages
2021-06-24 10:57:28 +02:00
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
74bb748a4e
bump milli to 0.6.0
2021-06-23 18:40:19 +02:00
8638c9ab77
Merge #232
...
232: Fix payload size limit r=MarinPostma a=MarinPostma
Fix #223
This was due to the fact that Payload ignores the limit payload size limit. I fixed it by implementing my own `Payload` extractor that checks that the size of the payload is not too large.
I also refactored the `create_app` a bit.
Co-authored-by: marin postma <postma.marin@protonmail.com >
2021-06-23 16:06:08 +00:00
b676b10cfe
Merge #238
...
238: Fix settings subroutes get r=MarinPostma a=MarinPostma
Fix #225
Co-authored-by: marin postma <postma.marin@protonmail.com >
2021-06-23 15:45:50 +00:00
f68c257452
move flush in write_to_file function
2021-06-23 16:49:25 +02:00
880fc069bd
remove dbg
2021-06-23 16:49:25 +02:00
a838238a63
move payload to own module
2021-06-23 16:49:25 +02:00
834995b130
clippy + fmt
2021-06-23 16:49:23 +02:00
b000ae7614
remove file if write to update file fails
2021-06-23 16:48:33 +02:00
f62779671b
change error message for payload size limit
2021-06-23 16:48:33 +02:00
4b292c6e9b
add payload limit to app config
2021-06-23 16:48:33 +02:00
1c13100948
implement custom payload
2021-06-23 16:48:31 +02:00
71226feb74
refactor create_app macro
2021-06-23 16:47:15 +02:00
b9b4feada8
add tests
2021-06-23 16:21:32 +02:00
3175f09989
Merge #235
...
235: Fix dump not found error r=MarinPostma a=MarinPostma
fix #233
Co-authored-by: marin postma <postma.marin@protonmail.com >
2021-06-23 14:21:07 +00:00
322d6b8cfe
fix serialization bug in settings
2021-06-23 15:25:56 +02:00
da36a6b5cd
fix not found error
2021-06-23 15:06:36 +02:00
f2b2ca6d55
Merge #227
...
227: improve mini dashboard routing r=MarinPostma a=MarinPostma
The dependency we use to statically serve the mini-dashboard used globing to serve the mini-dashboard files. This caused all unfound routes to be caught by the "/" serving the dashboard assets. This fix makes it so that the assets have a dedicated route, and any unfound route is caught by the default service and return a 404.
Co-authored-by: marin postma <postma.marin@protonmail.com >
2021-06-23 13:01:40 +00:00
0ebe3900e0
Merge #229
...
229: Add exhaustiveFacetsCount r=MarinPostma a=curquiza
I completely forgot this one đ
Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com >
2021-06-23 09:29:54 +00:00
ec3140a29e
Fix clippy
2021-06-23 11:23:57 +02:00
00b0a00fc5
Add exhaustiveFacetsCount
2021-06-23 11:05:30 +02:00
adb970edcc
Merge #226
...
226: Make facetsDistribution name iso r=MarinPostma a=curquiza
Even if there is an English mistake in `facets_distribution` (because of the `s`) @gmourier asked me to keep the typo: the name of `facetsDistribution` might change completely in the future, he wants to avoid two breakings.
@gmourier can you confirm before we merge this PR?
Sorry I left this update in the code (I'm confused because no issues was open to update `facetsDistribution`), there might have been a confusion with `fieldsDistribution` that has been renamed into `fieldDistribution`. Sorry!
Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com >
2021-06-23 08:14:12 +00:00
6d24a4744f
Roll back facetsDistribution
2021-06-23 10:04:01 +02:00
b1a5ef0aab
improve mini dashboard routing
2021-06-22 21:49:05 +02:00
7ec752ed1c
Merge #224
...
224: Update version for alpha 6 r=MarinPostma a=curquiza
Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com >
2021-06-22 18:20:09 +00:00
0de696feaf
Update version for alpha 6
2021-06-22 18:40:51 +02:00