diff options
Diffstat (limited to 'src/http/render.rs')
| -rw-r--r-- | src/http/render.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/http/render.rs b/src/http/render.rs index 9e3d801..d715a71 100644 --- a/src/http/render.rs +++ b/src/http/render.rs @@ -192,12 +192,25 @@ pub struct Attention { pub page: Page, pub empty: bool, pub notices: Vec<NoticeRow>, + pub unbuilt: Vec<UnbuiltRow>, pub outdated: Vec<StaleRow>, pub missing: Vec<StaleRow>, pub downgrades: Vec<StaleRow>, pub blocked: Vec<BlockedRow>, } +/// §8.4: an approval whose build failed. The index is still serving the older +/// version and nothing about the package looks wrong from the outside, so this +/// row exists to be impossible to miss. +#[derive(Debug, Clone)] +pub struct UnbuiltRow { + pub pkgbase: String, + pub approved: String, + pub serving: String, + pub error: String, + pub build_id: String, +} + #[derive(Debug, Clone)] pub struct NoticeRow { pub id: i64, @@ -251,6 +264,8 @@ pub struct PackageDetail { pub summary: String, pub can_withdraw: bool, pub stale: Vec<String>, + /// "v2 approved, build failed, index still serving v1" (§8.4). + pub unbuilt: Vec<UnbuiltRow>, pub deps_in: Vec<String>, pub deps_out: Vec<String>, pub timeline: Vec<TimelineRow>, |
