-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hardwareView): considerate head of the tree in the results
Refactored HardwareView to consolidate __getSlowResult and __getFastResult methods into a single _getResults method. Updated the order_by field in checkouts_subquery to use "-start_time" for more accurate ordering that considerates the head of the branch Also fix the logic for calculating builds to account for the array of hardwares Closes #530
- Loading branch information
Showing
4 changed files
with
82 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,22 @@ | ||
import type { StatusCount } from './general'; | ||
|
||
export interface HardwareFastItem { | ||
hardwareName: string; | ||
} | ||
export type HardwareFastResponse = { | ||
hardware: HardwareFastItem[]; | ||
}; | ||
|
||
interface BuildCount { | ||
valid: number; | ||
invalid: number; | ||
null: number; | ||
} | ||
|
||
export interface HardwareRestItem { | ||
export interface HardwareItem { | ||
hardwareName: string; | ||
buildCount: BuildCount; | ||
testStatusCount: StatusCount; | ||
bootStatusCount: StatusCount; | ||
} | ||
|
||
export type HardwareListingItem = HardwareRestItem & HardwareFastItem; | ||
export type HardwareListingItem = HardwareItem; | ||
|
||
export interface HardwareListingResponse { | ||
hardware: HardwareListingItem[]; | ||
} | ||
|
||
export type HardwareTableItem = HardwareFastItem & Partial<HardwareRestItem>; | ||
export type HardwareTableItem = HardwareItem; |