Polish first-run operator workflow
This commit is contained in:
parent
59c86aba6a
commit
e6879e8949
6 changed files with 208 additions and 14 deletions
|
|
@ -1391,11 +1391,15 @@ pub struct SyncPeerStatus {
|
|||
pub struct SyncStreamStatus {
|
||||
pub stream: String,
|
||||
pub cursor_ms: i64,
|
||||
pub state: String,
|
||||
pub stale: bool,
|
||||
pub stale_after_ms: i64,
|
||||
pub last_attempt_ms: Option<i64>,
|
||||
pub last_success_ms: Option<i64>,
|
||||
pub last_error: Option<String>,
|
||||
pub last_imported: usize,
|
||||
pub last_rejected: usize,
|
||||
pub next_action: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
|
|
@ -1614,11 +1618,15 @@ mod tests {
|
|||
streams: vec![SyncStreamStatus {
|
||||
stream: "keychain".to_owned(),
|
||||
cursor_ms: 42,
|
||||
state: "ok".to_owned(),
|
||||
stale: false,
|
||||
stale_after_ms: 120_000,
|
||||
last_attempt_ms: Some(43),
|
||||
last_success_ms: Some(43),
|
||||
last_error: None,
|
||||
last_imported: 2,
|
||||
last_rejected: 0,
|
||||
next_action: "none".to_owned(),
|
||||
}],
|
||||
}],
|
||||
note: "local health".to_owned(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue