mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-10 14:46:36 +00:00
Merge pull request #5626 from martin-g/faster-batches-it-tests
tests: Faster batches:: IT tests
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -38,6 +38,15 @@ impl Value {
|
|||||||
self["uid"].as_u64().is_some() || self["taskUid"].as_u64().is_some()
|
self["uid"].as_u64().is_some() || self["taskUid"].as_u64().is_some()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[track_caller]
|
||||||
|
pub fn batch_uid(&self) -> u32 {
|
||||||
|
if let Some(batch_uid) = self["batchUid"].as_u64() {
|
||||||
|
batch_uid as u32
|
||||||
|
} else {
|
||||||
|
panic!("Didn't find `batchUid` in: {self}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Return `true` if the `status` field is set to `succeeded`.
|
/// Return `true` if the `status` field is set to `succeeded`.
|
||||||
/// Panic if the `status` field doesn't exists.
|
/// Panic if the `status` field doesn't exists.
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
|
Reference in New Issue
Block a user