mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
test the details of all tasks type
This commit is contained in:
committed by
Clément Renault
parent
71b50853dc
commit
a85d5b4981
@ -439,6 +439,7 @@ pub async fn update_all(
|
||||
Some(&req),
|
||||
);
|
||||
|
||||
println!("Registering a setting update");
|
||||
let allow_index_creation = index_scheduler.filters().allow_index_creation;
|
||||
let index_uid = IndexUid::try_from(index_uid.into_inner())?.into_inner();
|
||||
let task = KindWithContent::SettingsUpdate {
|
||||
|
@ -20,7 +20,7 @@ pub fn configure(cfg: &mut web::ServiceConfig) {
|
||||
#[derive(Deserialize, Debug, Clone, PartialEq, Eq)]
|
||||
#[serde(rename_all = "camelCase", deny_unknown_fields)]
|
||||
pub struct SwapIndexesPayload {
|
||||
swap: (String, String),
|
||||
indexes: (String, String),
|
||||
}
|
||||
|
||||
pub async fn swap_indexes(
|
||||
@ -33,7 +33,7 @@ pub async fn swap_indexes(
|
||||
let mut indexes_set = HashSet::<String>::default();
|
||||
let mut unknown_indexes = HashSet::new();
|
||||
let mut duplicate_indexes = HashSet::new();
|
||||
for SwapIndexesPayload { swap: (lhs, rhs) } in params.into_inner().into_iter() {
|
||||
for SwapIndexesPayload { indexes: (lhs, rhs) } in params.into_inner().into_iter() {
|
||||
if !search_rules.is_index_authorized(&lhs) {
|
||||
unknown_indexes.insert(lhs.clone());
|
||||
}
|
||||
|
Reference in New Issue
Block a user