change the details of the tasks

This commit is contained in:
Tamo
2025-08-11 18:28:00 +02:00
parent a904ce109a
commit 4068c58417
102 changed files with 300 additions and 320 deletions

View File

@ -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;

View File

@ -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 {

View File

@ -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,