Quentin de Quelen
e34021c315
cargo format
2025-06-27 21:37:00 +02:00
Quentin de Quelen
1a2a711360
feat: Add endpoint to retrieve index fields
...
This commit introduces a new API endpoint `/indexes/{indexUid}/fields` that allows users to fetch all field names in an index, including nested fields. It also includes corresponding tests to validate the functionality, ensuring that the endpoint returns the correct fields for both empty and populated indexes, as well as handling errors for non-existent indexes.
2025-06-27 21:28:51 +02:00
Martin Tzvetanov Grigorov
ca112a8b95
tests: Use Server::wait_task() instead of Index::wait_task() in index::
...
The code is mostly duplicated. Server::wait_task() has better handling for errors and more retries.
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-06-22 14:59:29 +03:00
Tamo
aeaac7270e
Merge pull request #5603 from martin-g/faster-search-multi-it-tests
...
tests: Faster search::multi IT tests
2025-06-16 09:43:24 +00:00
Martin Tzvetanov Grigorov
95e8a9bef1
Use a unique name for an index in a shared server
...
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-06-14 15:10:48 +03:00
Clément Renault
9bda9a9a64
Merge remote-tracking branch 'origin/main' into tmp-release-v1.15.1
2025-06-12 10:21:07 +02:00
Clément Renault
82313a4444
Cargo fmt
2025-06-03 15:39:26 +02:00
Martin Tzvetanov Grigorov
b4ca0a8c98
Update the tests related to updating indices
...
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-05-28 15:02:41 +03:00
Martin Tzvetanov Grigorov
b658e38acd
Fix formatting
...
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-05-28 15:02:41 +03:00
Martin Tzvetanov Grigorov
f87e46cc16
Ignore the result from #wait_task()
...
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-05-28 15:02:41 +03:00
Martin Grigorov
65354b414a
Update crates/meilisearch/tests/index/update_index.rs
...
Co-authored-by: Tamo <irevoire@protonmail.ch>
2025-05-28 15:02:40 +03:00
Martin Grigorov
025df397c0
Update crates/meilisearch/tests/index/update_index.rs
...
Co-authored-by: Tamo <irevoire@protonmail.ch>
2025-05-28 15:02:40 +03:00
Martin Grigorov
f77abc9dc8
Update crates/meilisearch/tests/index/update_index.rs
...
Co-authored-by: Tamo <irevoire@protonmail.ch>
2025-05-28 15:02:40 +03:00
Martin Tzvetanov Grigorov
7e9909ee45
perf: Faster index::update_index IT tests
...
Use a shared server where possible.
Assert succeeded/failed task waits.
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-05-28 15:02:40 +03:00
Tamo
8047cfe438
Merge pull request #5580 from martin-g/better-assertions-index-delete_index-it-tests
...
tests: Assert succeeded/failed for the index::delete_index IT tests
2025-05-20 08:49:24 +00:00
Tamo
5717e5c1af
Merge pull request #5578 from martin-g/faster-index-get_index-it-tests
...
perf: Faster index::get_index IT tests
2025-05-20 08:41:11 +00:00
Martin Tzvetanov Grigorov
bb07038c31
tests: Assert succeeded/failed for the index::delete_index IT tests
...
Related-to: https://github.com/meilisearch/meilisearch/issues/4840
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-05-19 16:57:53 +03:00
Martin Tzvetanov Grigorov
d1a088ea0b
Format the code
...
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-05-19 16:52:43 +03:00
Martin Tzvetanov Grigorov
b68e22c0e6
Revert the improvements for get_and_paginate_indexes()
...
Because they won't work in multi-threaded execution of the tests
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-05-19 16:36:45 +03:00
Martin Tzvetanov Grigorov
03a36f116e
1. Use a unique Server for no_index_return_empty_list test
...
... because a Shared one could see indices created by other tests
2. List at least 1000 indices to make sure we get the newly created ones
in list_multiple_indexes()
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-05-19 16:20:16 +03:00
Martin Tzvetanov Grigorov
e2763471e5
Faster index::get_index IT tests
...
Use shared server for all tests in get_index.rs
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-05-19 15:36:25 +03:00
Martin Tzvetanov Grigorov
b2f2c5d69f
Remove an assertion of a task uid.
...
It differs for every run of the IT test suite.
Format the imports
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-05-19 14:44:08 +03:00
Martin Tzvetanov Grigorov
3d130d31c8
Do not hard code the non-exiting index name/uid
...
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-05-16 15:49:50 +03:00
Martin Tzvetanov Grigorov
4cda584b0c
Fix the build of stats.rs
...
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2025-05-16 15:45:25 +03:00
Santhosh Reddy Vootukuri (SUNNY) (from Dev Box)
248c90bad5
removing .await
2025-05-16 15:29:24 +03:00
Santhosh Reddy Vootukuri (SUNNY) (from Dev Box)
0e9040e605
remove warnings
2025-05-16 15:29:23 +03:00
Santhosh Reddy Vootukuri (SUNNY) (from Dev Box)
3e3c00f44c
fix for test failure
2025-05-16 15:29:23 +03:00
Santhosh Reddy Vootukuri (SUNNY) (from Dev Box)
d986a3bbaf
Changes to index and expected_response as per feedback
2025-05-16 15:29:22 +03:00
Santhosh Reddy Vootukuri (SUNNY) (from Dev Box)
c2ceb8e41b
Improve Integration tests in the file stats.rs
2025-05-16 15:29:18 +03:00
Timon Jurschitsch
2f257fdc3d
fix clippy error
2025-01-21 17:11:29 +01:00
Timon Jurschitsch
0991cb0de4
change list_multiple_indexes test to single server
2025-01-21 17:01:45 +01:00
Timon Jurschitsch
79d192fb3f
implement suggestions
2025-01-16 11:42:12 +01:00
Timon Jurschitsch
a4ed36f0cc
Merge branch 'main' of github.com:meilisearch/meilisearch into chore/update-get-index-test
2025-01-16 11:17:17 +01:00
meili-bors[bot]
e568dbbabb
Merge #5182
...
5182: Remove hard coded task ids to prevent flaky tests r=irevoire a=mhmoudr
# Pull Request
## Related issue
Fixes partial #4840
## What does this PR do?
- Mainly scan the test code for any hard coded task Id and replace it by the returned task Id once the action or task is performed on an index.
- PS: _PR is not split by files as it has one theme applied to all tests which make it easy to review_
## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?
Thank you so much for contributing to Meilisearch!
Co-authored-by: Mahmoud Rawas <mhmoudr@gmail.com>
Co-authored-by: Tamo <tamo@meilisearch.com>
2025-01-13 15:18:55 +00:00
Tamo
8ff15b3dfb
fix the tests
2025-01-13 16:17:50 +01:00
Clément Renault
71e5605daa
Make clippy happy
2025-01-08 18:24:39 +01:00
Mahmoud Rawas
98e3ecb86b
Format fixes after running: cargo +nightly fmt
2025-01-07 11:16:37 +11:00
Timon Jurschitsch
4b107b17cb
test: improve performance of get_index.rs
2025-01-06 17:38:44 +01:00
Mahmoud Rawas
bf19f86e38
#4840 - Partial fix - Confirm task success after waiting for it.
2024-12-24 23:06:07 +11:00
Mahmoud Rawas
91c7ef8723
#4840 - Partial fix - Remove hard coded task ids to prevent flaky tests.
...
# Conflicts:
# crates/meilisearch/tests/documents/add_documents.rs
# crates/meilisearch/tests/search/facet_search.rs
# crates/meilisearch/tests/settings/get_settings.rs
# crates/meilisearch/tests/snapshot/mod.rs
2024-12-24 23:05:59 +11:00
airycanon
b75f1f4c17
fix tests
...
# Conflicts:
# crates/index-scheduler/src/batch.rs
# crates/index-scheduler/src/snapshots/lib.rs/fail_in_process_batch_for_document_deletion/after_removing_the_documents.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_bad_primary_key/fifth_task_succeeds.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_bad_primary_key/fourth_task_fails.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_multiple_primary_key/second_task_fails.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_multiple_primary_key/third_task_fails.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_multiple_primary_key_batch_wrong_key/second_and_third_tasks_fails.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_set_and_null_primary_key_inference_works/all_other_tasks_succeeds.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_set_and_null_primary_key_inference_works/second_task_fails.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_set_and_null_primary_key_inference_works/third_task_succeeds.snap
# Conflicts:
# crates/index-scheduler/src/batch.rs
# crates/meilisearch/src/search/mod.rs
# crates/meilisearch/tests/vector/mod.rs
# Conflicts:
# crates/index-scheduler/src/batch.rs
2024-12-06 02:03:02 +08:00
Clément Renault
9c1e54a2c8
Move crates under a sub folder to clean up the code
2024-10-21 08:18:43 +02:00