fix(src/pages.rs): use broker run id, always there
Co-worker reported that the unwrap of the optional adapter run id triggered a panic for them.
Each run has a unique broker run id, and an optional, non-unique adapter run id. Use the broker run id instead.
Actually, the whole PageBuilder type is now useless, but I’ll tackle that separately.
Signed-off-by: Lars Wirzenius liw@liw.fi
refactor: drop the PageBuilder type
After various previous changes, the PageBuilder::build now only calls StatusPage::new, so there’s no point in the type. Drop it.
Also replace StatusPage::new with StatusPage::default, for better style.
Signed-off-by: Lars Wirzenius liw@liw.fi
4 files changed
+8
-69
84029fe1
→
e5873fd0
modified src/bin/cib.rs
@@ -19,7 +19,7 @@ use radicle_ci_broker::{
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -164,12 +164,7 @@ impl QueuedCmd {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -204,12 +199,7 @@ impl ProcessEventsCmd {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -269,9 +259,6 @@ enum CibError {
|
|
|
|
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -309,10 +296,6 @@ impl CibError {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
modified src/bin/cibtool.rs
@@ -33,7 +33,7 @@ use radicle_ci_broker::{
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/bin/cibtoolcmd/report.rs
@@ -1,3 +1,5 @@
| + | |
| + | |
|
|
|
|
|
@@ -15,11 +17,7 @@ impl Leaf for ReportCmd {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified src/pages.rs
@@ -66,42 +66,6 @@ pub enum PageError {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -501,19 +465,13 @@ impl PageData {
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|