mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-03-16 23:03:39 +00:00
feat: dynamic package hold (#160)
* add dynamic hold implementation to backend * update frontend to support new status * force reporter loader * handle missing packages explicitly * handle missing packages explicitly
This commit is contained in:
@@ -32,6 +32,7 @@ export class PackageRow {
|
||||
timestamp: string;
|
||||
timestampValue: number;
|
||||
status: BuildStatus;
|
||||
isHeld: boolean;
|
||||
|
||||
constructor(descriptor: PackageStatus) {
|
||||
this.id = descriptor.package.base;
|
||||
@@ -45,6 +46,7 @@ export class PackageRow {
|
||||
this.timestamp = new Date(descriptor.status.timestamp * 1000).toISOStringShort();
|
||||
this.timestampValue = descriptor.status.timestamp;
|
||||
this.status = descriptor.status.status;
|
||||
this.isHeld = descriptor.status.is_held ?? false;
|
||||
}
|
||||
|
||||
private static extractListProperties(pkg: PackageStatus["package"], property: "groups" | "licenses"): string[] {
|
||||
|
||||
@@ -22,4 +22,5 @@ import type { BuildStatus } from "models/BuildStatus";
|
||||
export interface Status {
|
||||
status: BuildStatus;
|
||||
timestamp: number;
|
||||
is_held?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user