mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
implement list all indexes
This commit is contained in:
parent
60371b9dcf
commit
6c63ee6798
6 changed files with 52 additions and 31 deletions
|
@ -57,19 +57,7 @@ impl Data {
|
|||
self.index_controller.update_status(index, uid)
|
||||
}
|
||||
|
||||
//pub fn get_updates_status(&self, _index: &str) -> anyhow::Result<Vec<UpdateStatus<UpdateMeta, UpdateResult, String>>> {
|
||||
//let result = self.update_queue.iter_metas(|processing, processed, pending, aborted, failed| {
|
||||
//let mut metas = processing
|
||||
//.map(UpdateStatus::from)
|
||||
//.into_iter()
|
||||
//.chain(processed.filter_map(|i| Some(i.ok()?.1)).map(UpdateStatus::from))
|
||||
//.chain(pending.filter_map(|i| Some(i.ok()?.1)).map(UpdateStatus::from))
|
||||
//.chain(aborted.filter_map(|i| Some(i.ok()?.1)).map(UpdateStatus::from))
|
||||
//.chain(failed.filter_map(|i| Some(i.ok()?.1)).map(UpdateStatus::from))
|
||||
//.collect::<Vec<_>>();
|
||||
//metas.sort_by(|a, b| a.id().cmp(&b.id()));
|
||||
//Ok(metas)
|
||||
//})?;
|
||||
//Ok(result)
|
||||
//}
|
||||
pub fn get_updates_status(&self, index: &str) -> anyhow::Result<Vec<UpdateStatus<UpdateMeta, UpdateResult, String>>> {
|
||||
self.index_controller.all_update_status(index)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue