Line

ui/client/features/review/domain/AnalysisStart

Pure (DOMAIN-001): when does the screen ask for an analysis, and when does it keep waiting for one.

Cockpit client (features), v0.9. Source: ui/client/features/review/domain/AnalysisStart.ts.

Functions#

headsToStart()#

headsToStart(branches, forced): string[]

Defined in: ui/client/features/review/domain/AnalysisStart.ts:12

The branches whose analysis the list should request: the new ones, and the cancelled ones when re-analysing.

Parameters#

branches

BranchRow[]

forced

boolean

Returns#

string[]


isLive()#

isLive(state): boolean

Defined in: ui/client/features/review/domain/AnalysisStart.ts:9

Is an analysis still on its way (so the screen should keep reading)?

Parameters#

state

string

Returns#

boolean


shouldStart()#

shouldStart(state, forced): boolean

Defined in: ui/client/features/review/domain/AnalysisStart.ts:6

Ask for the analysis of one change? A new one (none), a failed one (error), or a cancelled one only when re-asked.

Parameters#

state

string

forced

boolean

Returns#

boolean