ミラー元
https://github.com/meilisearch/MeiliSearch
同期済み 2025-07-03 11:57:07 +02:00
Introduce Index::unique_index_with_prefix(&str)
It could be used when we want to see the index name in the assertions, e.g. `movies-[uuid]` Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
このコミットが含まれているのは:
コミット
1824fbd1b5
3個のファイルの変更、26行の追加、26行の削除
|
@ -43,20 +43,10 @@ pub fn default_snapshot_settings_for_test<'a>(
|
|||
}
|
||||
}
|
||||
|
||||
fn uuid_in_index_uid_redaction(content: Content, _content_path: ContentPath) -> Content {
|
||||
match &content {
|
||||
Content::String(s) => match uuid::Uuid::parse_str(s) {
|
||||
Ok(_) => Content::String("[uuid]".to_owned()),
|
||||
Err(_) => content,
|
||||
},
|
||||
_ => content,
|
||||
}
|
||||
}
|
||||
|
||||
settings.add_dynamic_redaction(".message", uuid_in_message_redaction);
|
||||
settings.add_dynamic_redaction(".error.message", uuid_in_message_redaction);
|
||||
settings.add_dynamic_redaction(".indexUid", uuid_in_index_uid_redaction);
|
||||
settings.add_dynamic_redaction(".**.indexUid", uuid_in_index_uid_redaction);
|
||||
settings.add_dynamic_redaction(".**.message", uuid_in_message_redaction);
|
||||
settings.add_dynamic_redaction(".indexUid", uuid_in_message_redaction);
|
||||
settings.add_dynamic_redaction(".**.indexUid", uuid_in_message_redaction);
|
||||
|
||||
let test_name = test_name.strip_suffix("::{{closure}}").unwrap_or(test_name);
|
||||
let test_name = test_name.rsplit("::").next().unwrap().to_owned();
|
||||
|
|
読み込み中…
Add table
Add a link
新しいイシューから参照