mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-04 19:56:30 +00:00
change the details of the tasks
This commit is contained in:
@ -212,7 +212,6 @@ ImmutableApiKeyKey , InvalidRequest , BAD_REQU
|
||||
ImmutableApiKeyUid , InvalidRequest , BAD_REQUEST;
|
||||
ImmutableApiKeyUpdatedAt , InvalidRequest , BAD_REQUEST;
|
||||
ImmutableIndexCreatedAt , InvalidRequest , BAD_REQUEST;
|
||||
ImmutableIndexUid , InvalidRequest , BAD_REQUEST;
|
||||
ImmutableIndexUpdatedAt , InvalidRequest , BAD_REQUEST;
|
||||
IndexAlreadyExists , InvalidRequest , CONFLICT ;
|
||||
IndexCreationFailed , Internal , INTERNAL_SERVER_ERROR;
|
||||
|
@ -341,9 +341,9 @@ impl From<Details> for DetailsView {
|
||||
settings.hide_secrets();
|
||||
DetailsView { settings: Some(settings), ..DetailsView::default() }
|
||||
}
|
||||
Details::IndexInfo { primary_key, new_uid } => DetailsView {
|
||||
Details::IndexInfo { primary_key, uid } => DetailsView {
|
||||
primary_key: Some(primary_key),
|
||||
new_index_uid: new_uid.clone(),
|
||||
new_index_uid: uid.clone(),
|
||||
..DetailsView::default()
|
||||
},
|
||||
Details::DocumentDeletion {
|
||||
|
@ -279,12 +279,12 @@ impl KindWithContent {
|
||||
Some(Details::SettingsUpdate { settings: new_settings.clone() })
|
||||
}
|
||||
KindWithContent::IndexCreation { primary_key, .. } => {
|
||||
Some(Details::IndexInfo { primary_key: primary_key.clone(), new_uid: None })
|
||||
Some(Details::IndexInfo { primary_key: primary_key.clone(), uid: None })
|
||||
}
|
||||
KindWithContent::IndexUpdate { primary_key, new_index_uid, .. } => {
|
||||
Some(Details::IndexInfo {
|
||||
primary_key: primary_key.clone(),
|
||||
new_uid: new_index_uid.clone(),
|
||||
uid: new_index_uid.clone(),
|
||||
})
|
||||
}
|
||||
KindWithContent::IndexSwap { swaps } => {
|
||||
@ -358,12 +358,12 @@ impl KindWithContent {
|
||||
}
|
||||
KindWithContent::IndexDeletion { .. } => None,
|
||||
KindWithContent::IndexCreation { primary_key, .. } => {
|
||||
Some(Details::IndexInfo { primary_key: primary_key.clone(), new_uid: None })
|
||||
Some(Details::IndexInfo { primary_key: primary_key.clone(), uid: None })
|
||||
}
|
||||
KindWithContent::IndexUpdate { primary_key, new_index_uid, .. } => {
|
||||
Some(Details::IndexInfo {
|
||||
primary_key: primary_key.clone(),
|
||||
new_uid: new_index_uid.clone(),
|
||||
uid: new_index_uid.clone(),
|
||||
})
|
||||
}
|
||||
KindWithContent::IndexSwap { .. } => {
|
||||
@ -419,12 +419,12 @@ impl From<&KindWithContent> for Option<Details> {
|
||||
}
|
||||
KindWithContent::IndexDeletion { .. } => None,
|
||||
KindWithContent::IndexCreation { primary_key, .. } => {
|
||||
Some(Details::IndexInfo { primary_key: primary_key.clone(), new_uid: None })
|
||||
Some(Details::IndexInfo { primary_key: primary_key.clone(), uid: None })
|
||||
}
|
||||
KindWithContent::IndexUpdate { primary_key, new_index_uid, .. } => {
|
||||
Some(Details::IndexInfo {
|
||||
primary_key: primary_key.clone(),
|
||||
new_uid: new_index_uid.clone(),
|
||||
uid: new_index_uid.clone(),
|
||||
})
|
||||
}
|
||||
KindWithContent::IndexSwap { .. } => None,
|
||||
@ -678,7 +678,7 @@ pub enum Details {
|
||||
},
|
||||
IndexInfo {
|
||||
primary_key: Option<String>,
|
||||
new_uid: Option<String>,
|
||||
uid: Option<String>,
|
||||
},
|
||||
DocumentDeletion {
|
||||
provided_ids: usize,
|
||||
|
Reference in New Issue
Block a user