mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-12 14:27:28 +01:00
rename the Step::name into Step::current_step
This commit is contained in:
parent
d12364c1e0
commit
0d0c18f519
@ -215,7 +215,7 @@ mod test {
|
|||||||
{
|
{
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"name": "processing tasks",
|
"currentStep": "processing tasks",
|
||||||
"finished": 0,
|
"finished": 0,
|
||||||
"total": 2
|
"total": 2
|
||||||
}
|
}
|
||||||
@ -228,7 +228,7 @@ mod test {
|
|||||||
{
|
{
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"name": "writing tasks to disk",
|
"currentStep": "writing tasks to disk",
|
||||||
"finished": 1,
|
"finished": 1,
|
||||||
"total": 2
|
"total": 2
|
||||||
}
|
}
|
||||||
@ -248,12 +248,12 @@ mod test {
|
|||||||
{
|
{
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"name": "processing tasks",
|
"currentStep": "processing tasks",
|
||||||
"finished": 0,
|
"finished": 0,
|
||||||
"total": 2
|
"total": 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "task",
|
"currentStep": "task",
|
||||||
"finished": 0,
|
"finished": 0,
|
||||||
"total": 10
|
"total": 10
|
||||||
}
|
}
|
||||||
@ -266,12 +266,12 @@ mod test {
|
|||||||
{
|
{
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"name": "processing tasks",
|
"currentStep": "processing tasks",
|
||||||
"finished": 0,
|
"finished": 0,
|
||||||
"total": 2
|
"total": 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "task",
|
"currentStep": "task",
|
||||||
"finished": 6,
|
"finished": 6,
|
||||||
"total": 10
|
"total": 10
|
||||||
}
|
}
|
||||||
@ -284,7 +284,7 @@ mod test {
|
|||||||
{
|
{
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"name": "writing tasks to disk",
|
"currentStep": "writing tasks to disk",
|
||||||
"finished": 1,
|
"finished": 1,
|
||||||
"total": 2
|
"total": 2
|
||||||
}
|
}
|
||||||
@ -299,12 +299,12 @@ mod test {
|
|||||||
{
|
{
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"name": "writing tasks to disk",
|
"currentStep": "writing tasks to disk",
|
||||||
"finished": 1,
|
"finished": 1,
|
||||||
"total": 2
|
"total": 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "task",
|
"currentStep": "task",
|
||||||
"finished": 4,
|
"finished": 4,
|
||||||
"total": 5
|
"total": 5
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ impl Progress {
|
|||||||
percentage += step.current() as f32 / prev_factors;
|
percentage += step.current() as f32 / prev_factors;
|
||||||
|
|
||||||
step_view.push(ProgressStepView {
|
step_view.push(ProgressStepView {
|
||||||
name: step.name(),
|
current_step: step.name(),
|
||||||
finished: step.current(),
|
finished: step.current(),
|
||||||
total: step.total(),
|
total: step.total(),
|
||||||
});
|
});
|
||||||
@ -146,7 +146,7 @@ pub struct ProgressView {
|
|||||||
#[derive(Debug, Serialize, Clone)]
|
#[derive(Debug, Serialize, Clone)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct ProgressStepView {
|
pub struct ProgressStepView {
|
||||||
pub name: Cow<'static, str>,
|
pub current_step: Cow<'static, str>,
|
||||||
pub finished: u32,
|
pub finished: u32,
|
||||||
pub total: u32,
|
pub total: u32,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user