File tree Expand file tree Collapse file tree 1 file changed +30
-7
lines changed
site/frontend/src/pages/status Expand file tree Collapse file tree 1 file changed +30
-7
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,43 @@ interface Step {
16
16
current_progress : number ;
17
17
}
18
18
19
- /**
20
- * The `any` types in the interface below were chosen because the types are quite complex
21
- * on the Rust side (they are modeled with enums encoded in a way that is not so simple to model in
22
- * TS).
23
- */
19
+ type Artifact =
20
+ | {
21
+ Commit : Commit ;
22
+ }
23
+ | {
24
+ Tag : string ;
25
+ } ;
26
+
27
+ type MissingReason =
28
+ | {
29
+ Master : {
30
+ pr : number ;
31
+ parent_sha : string ;
32
+ is_try_parent : boolean ;
33
+ } ;
34
+ }
35
+ | {
36
+ Try : {
37
+ parent_sha : string ;
38
+ include : string | null ;
39
+ exclude : string | null ;
40
+ runs : number | null ;
41
+ } ;
42
+ }
43
+ | {
44
+ InProgress : MissingReason ;
45
+ } ;
46
+
24
47
interface CurrentState {
25
- artifact : any ;
48
+ artifact : Artifact ;
26
49
progress : Step [ ] ;
27
50
}
28
51
29
52
export interface StatusResponse {
30
53
last_commit : Commit | null ;
31
54
benchmarks : BenchmarkStatus [ ] ;
32
- missing : Array < [ Commit , any ] > ;
55
+ missing : Array < [ Commit , MissingReason ] > ;
33
56
current : CurrentState | null ;
34
57
most_recent_end : number | null ;
35
58
}
You can’t perform that action at this time.
0 commit comments