bors[bot]
5d48f72ade
Merge #2065
...
2065: MeiliSearch v0.25.0: `stable` -> `main` r=curquiza a=curquiza
Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
Co-authored-by: Clément Renault <clement@meilisearch.com>
Co-authored-by: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Co-authored-by: many <maxime@meilisearch.com>
Co-authored-by: Marin Postma <postma.marin@protonmail.com>
Co-authored-by: Maxime Legendre <maximelegendre@MacBook-Pro-de-Maxime.local>
Co-authored-by: Maxime Legendre <maximelegendre@mbp-de-maxime.home>
Co-authored-by: Tamo <tamo@meilisearch.com>
Co-authored-by: ManyTheFish <many@meilisearch.com>
2022-01-11 16:30:22 +00:00
Morgane Dubus
b17ad5c2be
Update with latest release of the dashboard
2022-01-10 17:10:09 +01:00
Morgane Dubus
030a90523d
Update dashboard for v0.25.0
2022-01-10 10:50:57 +01:00
Marin Postma
f558ff826a
feat(http): task view indexed and deleted documents return 0 instead of null
2022-01-06 14:55:02 +01:00
Clémentine Urquizar
595250c93e
Allow any header for CORS
2022-01-05 15:38:47 +01:00
ManyTheFish
c0d4f71a34
Bug(auth): Wrap key list in results
2022-01-04 14:10:30 +01:00
ManyTheFish
450b81ca13
Bug(CORS): Add missing allowed headers
...
fix #2040
2022-01-03 13:41:12 +01:00
Tamo
d7df4d6b84
test: Ignore the auths tests on windows
...
Since the auths tests fail sporadically on the windows CI but we can't
reproduce these failures with a real windows machine we are going to
ignore theses one.
But we still ensure they compile.
2021-12-22 12:39:48 +01:00
Clémentine Urquizar
f529c46598
Fix typo in error messages and comments
2021-12-21 16:01:38 +01:00
Maxime Legendre
37329e0784
Bug(auth): Parse YMD date
...
Use NaiveDate to parse YMD date instead of NaiveDatetime
fix #2017
2021-12-20 15:30:11 +01:00
Maxime Legendre
a845cd8880
Fix(auth): Forbid index creation on alternates routes
...
Forbid index creation on alternates routes when the action `index.create` is not given
fix #2024
2021-12-20 14:48:18 +01:00
bors[bot]
845d3114ea
Merge #2008
...
2008: bug(lib): fix get dumps bad error code r=curquiza a=MarinPostma
fix bad error code being returned whet getting a dump status, and add a test
close #1994
Co-authored-by: Marin Postma <postma.marin@protonmail.com>
2021-12-15 18:58:17 +00:00
bors[bot]
287fa7ca74
Merge #2006 #2007
...
2006: chore(http): rename task types r=curquiza a=MarinPostma
Rename
- documentsAddition into documentAddition
- documentsPartial into documentPartial
- documentsDeletion into documentDeletion
close #1999
2007: bug(lib): ignore primary if already set on document addition r=curquiza a=MarinPostma
Ignore the primary key if it is already set on documents updates. Add a test for verify behaviour.
close #2002
Co-authored-by: Marin Postma <postma.marin@protonmail.com>
2021-12-15 16:55:40 +00:00
Marin Postma
80ed9654e1
chore(http): rename task types
2021-12-15 17:01:34 +01:00
Marin Postma
7ddab7ef31
bug(lib): fix get dumps bad error code
2021-12-15 16:58:05 +01:00
Marin Postma
d534a7f7c8
bug(lib): ignore primary if already set on document addition
2021-12-15 14:58:37 +01:00
bors[bot]
5af51c852c
Merge #1989
...
1989: Extend API keys r=curquiza a=ManyTheFish
# Pull Request
## What does this PR do?
- Add API keys in snapshots
- Add API keys in dumps
- fix QA #1979
fix #1979
fix #1995
fix #2001
fix #2003
related to #1890
Co-authored-by: many <maxime@meilisearch.com>
2021-12-14 17:22:58 +00: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
Clément Renault
6ac2475aba
Fix the no-analytics flag in the tests
2021-12-08 12:02:18 +01:00
Clément Renault
47d5f659e0
Bump the structopt crate to 0.3.25
2021-12-08 11:24:40 +01:00
Clément Renault
8c9e51e94f
Make sure that we can also specify the no-analytics flags with a boolean
2021-12-08 11:23:21 +01:00
Clémentine Urquizar
ae73386723
Update version for the next release (v0.25.0)
2021-12-07 14:00:43 +01:00
many
ae2b0e7aa7
Use milli reexported tokenizer instead of importing meilisearch-tokenizer dependency
2021-12-06 17:18:28 +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
bors[bot]
8363200fd7
Merge #1910
...
1910: After v0.24.0: import `stable` in `main` r=MarinPostma a=curquiza
Co-authored-by: Tamo <tamo@meilisearch.com>
Co-authored-by: many <maxime@meilisearch.com>
Co-authored-by: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Co-authored-by: Guillaume Mourier <guillaume@meilisearch.com>
Co-authored-by: Irevoire <tamo@meilisearch.com>
Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
2021-11-17 12:48:56 +00:00
Clémentine Urquizar
9d01c5d882
Update mini-dashboard version to v0.1.5
2021-11-15 18:54:55 +01:00
Clémentine Urquizar
a1227648ba
Remove email address from the message at the launch
2021-11-11 14:36:45 +01:00
Guillaume Mourier
7c5aad4073
fix aggregated search event names
2021-11-11 01:38:10 +01:00
Irevoire
cc5e884b34
fix the 99th percentile in the analytics
2021-11-10 18:26:38 +01:00
many
6bbc1b4316
Remove error flattening in task serialization
2021-11-04 17:40:28 +01:00
many
3c696da274
Update tests
2021-11-04 17:40:28 +01:00
bors[bot]
d9d6dee550
Merge #1873
...
1873: Change lacking errors r=ManyTheFish a=ManyTheFish
Co-authored-by: many <maxime@meilisearch.com>
2021-11-04 14:21:52 +00:00
many
b59145385e
Fix PR comments
2021-11-04 14:57:27 +01:00
bors[bot]
3f4e0ec971
Merge #1875 #1876
...
1875: Fix search post event and disk size analytics r=irevoire a=gmourier
- Branch POST search on the post_search aggregator
- Use largest disk `total_space` instead of `available_space`
1876: Update SEGMENT_API_KEY r=irevoire a=gmourier
Branch it on our Segment production stack
Co-authored-by: Guillaume Mourier <guillaume@meilisearch.com>
2021-11-04 10:16:13 +00:00
Guillaume Mourier
6d6725b3b8
Update SEGMENT_API_KEY
2021-11-04 08:10:12 +01:00
Guillaume Mourier
6660be2cb7
Branch POST /search on the dedicated analytics aggregator
2021-11-04 08:03:48 +01:00
Guillaume Mourier
847fcb570b
Use total_space of the largest disk instead of available_space
2021-11-04 08:03:11 +01:00
many
30a094cbb2
Change lacking errors
2021-11-03 14:33:33 +01:00
Tamo
904bae98f8
send the analytics even when the search fail
2021-11-02 12:38:01 +01:00
marin postma
519093ea65
fix bad rebase
2021-10-29 17:32:49 +02:00
Tamo
bd49d1c4b5
fix one small bug
2021-10-29 17:25:56 +02:00
marin postma
2665c0099d
clippy + fmt
2021-10-29 17:25:56 +02:00
marin postma
d65f055030
pass anaytics into Arc instead of static ref
2021-10-29 17:25:55 +02:00
Tamo
66d87761b7
align the parameters in the launche resume
2021-10-29 17:25:55 +02:00
Tamo
ba69ad672a
fix the timing issue
2021-10-29 17:25:55 +02:00
Tamo
7934e3956b
replace all mutexes by channel
2021-10-29 17:25:55 +02:00
Guillaume Mourier
68fe93b7db
add ranking_rules marker before sort_position
2021-10-29 17:25:55 +02:00
Tamo
efd0ea9e1e
makes clippy happier
2021-10-29 17:25:55 +02:00
Tamo
6ef73eb226
fix all the single settings route and add the searchable attributes Updated event
2021-10-29 17:25:55 +02:00
Tamo
fc2f23d36c
move the start_since_days to teh root of the identify
2021-10-29 17:25:54 +02:00
Tamo
7c39fab453
move the user-agent out of the context in every request
2021-10-29 17:25:54 +02:00
Tamo
c5164c01c0
set the total of sortable attributes and filterable-attributes to 0 when not set
2021-10-29 17:25:54 +02:00
Tamo
351ad32d77
fix the index_creation boolean
2021-10-29 17:25:54 +02:00
Tamo
3ad8311bdd
split the analytics in a module
2021-10-29 17:25:54 +02:00
Tamo
ea5ae2bae5
sort the imports
2021-10-29 17:25:54 +02:00
Tamo
72e3adc55e
display an instance-id instead of a user-id
2021-10-29 17:25:54 +02:00
Tamo
b250392e8d
remove the first - in the path to the db instance in the instance-id
2021-10-29 17:25:53 +02:00
Tamo
d8b0d68840
use a regex to count the number of filters instead of split + flatten
2021-10-29 17:25:53 +02:00
Tamo
c4737749ab
bump segment to be able to display a user
2021-10-29 17:25:53 +02:00
Tamo
a1ab02f9fb
remove some commented code
2021-10-29 17:25:53 +02:00
Tamo
bba64b32ca
async_traits is not needed anymore
2021-10-29 17:25:53 +02:00
Tamo
9abd2aa9d7
make the analytics interval a const
2021-10-29 17:25:53 +02:00
Tamo
de35a9a605
use an official release of segment
2021-10-29 17:25:53 +02:00
Tamo
ed750e8792
fix start_since_day
2021-10-29 17:25:53 +02:00
Tamo
37ca50832c
fix the sort position
2021-10-29 17:25:52 +02:00
Tamo
31c7a0105b
fix a bug on the batch documents function
2021-10-29 17:25:52 +02:00
Tamo
ddab9eafa1
fix a typo
2021-10-29 17:25:52 +02:00
Tamo
76a4f86e0c
rename user-id to instance-uid
2021-10-29 17:25:52 +02:00
Tamo
6b34318274
makes clippy happy
2021-10-29 17:25:52 +02:00
Tamo
5508c6c154
a bit of styling
2021-10-29 17:25:52 +02:00
Tamo
9a62ac0c94
send the analytics only once every hours
2021-10-29 17:25:52 +02:00
Tamo
01737ef847
remove all the debug prints
2021-10-29 17:25:51 +02:00
Tamo
10de92987a
compile write_user_id only when the analytics are enabled
2021-10-29 17:25:51 +02:00
Tamo
87a8bf5e96
write and load the user-id in the dumps
2021-10-29 17:25:51 +02:00
Tamo
ba14ea1243
plug the new batchers into the documents route
2021-10-29 17:25:51 +02:00
Tamo
9be90011c6
save the user-id in the config dir of the OS
2021-10-29 17:25:51 +02:00
Tamo
f9b14ca149
simplify the search batcher
2021-10-29 17:25:50 +02:00
Tamo
6591acfdfa
rename the documents batchers
2021-10-29 17:25:50 +02:00
Tamo
e64ba122e1
factorize the code between the two documents batcher
2021-10-29 17:25:50 +02:00
Tamo
a9523146a3
simplify the into_events methods
2021-10-29 17:25:50 +02:00
Tamo
392ee86714
implement the documents batcher
2021-10-29 17:25:50 +02:00
Tamo
1d73f484f0
update the primary key when creating a new index
2021-10-29 17:25:50 +02:00
Tamo
cfcd3ae048
move the version to context.app
2021-10-29 17:25:50 +02:00
Tamo
5395041dcb
fix the stats and stop sending events when no request happened
2021-10-29 17:25:49 +02:00
Tamo
40eabd50d1
integrate the search batcher in the search route
2021-10-29 17:25:49 +02:00
Tamo
35ffd0ec3a
integrate the search batcher in the tick
2021-10-29 17:25:49 +02:00
Tamo
d3d76bf97a
wip create a search batcher
2021-10-29 17:25:49 +02:00
Tamo
595ae42e94
update the name of the Launched event
2021-10-29 17:25:49 +02:00
Tamo
0667d940f9
update the name of nb_cores in the identify
2021-10-29 17:25:49 +02:00
Irevoire
75d1272325
log the dump creation
2021-10-29 17:25:49 +02:00
Irevoire
8e2d6cf87d
add the content type to all the route
2021-10-29 17:25:48 +02:00
Irevoire
9e1bba40f7
do not print anything if no user id was found
2021-10-29 17:25:48 +02:00
Irevoire
f7bb499c28
send the first identify + launched for the first time events right away instead of batching them
2021-10-29 17:25:48 +02:00
Irevoire
b33b1ef3dd
update the way of getting and saving the user-id to the file system
2021-10-29 17:25:48 +02:00
Irevoire
30aeda7a1a
update the identify call to the latest spec version
2021-10-29 17:25:48 +02:00
Irevoire
22d9d660cc
log all the required settings route
2021-10-29 17:25:48 +02:00
Irevoire
7524bfc07f
log the all settings updated route
2021-10-29 17:25:48 +02:00
Tamo
bda7472880
log the documetns updated route
2021-10-29 17:25:48 +02:00
Tamo
1ed05c6c07
log documents added
2021-10-29 17:25:47 +02:00