@@ -45,10 +45,10 @@ class RunView extends ScreenView {
45
45
private processContainer : WeyaElement
46
46
private customMetrics : CustomMetricList
47
47
48
- constructor ( uuid : string , rank ?: string ) {
48
+ constructor ( uuid : string ) {
49
49
super ( )
50
- this . uuid = uuid + ( rank ? '_' + rank : '' )
51
- this . rank = rank
50
+ this . uuid = uuid
51
+ this . rank = uuid . split ( '_' ) [ 1 ]
52
52
this . runCache = CACHE . getRun ( this . uuid )
53
53
this . statusCache = CACHE . getRunStatus ( this . uuid )
54
54
this . userCache = CACHE . getUser ( )
@@ -325,7 +325,7 @@ class RunView extends ScreenView {
325
325
this . rankElems = $ ( 'div' , '.hidden.list.runs-list.list-group' , $ => {
326
326
for ( const [ rank , run_uuid ] of Object . entries ( this . run . other_rank_run_uuids ) ) {
327
327
$ ( 'a' , '.list-item.list-group-item.list-group-item-action' ,
328
- { href : `/run/${ this . uuid } / ${ rank } ` , target : "_blank" } ,
328
+ { href : `/run/${ this . uuid } _ ${ rank } ` , target : "_blank" } ,
329
329
$ => {
330
330
$ ( 'div' , $ => {
331
331
$ ( 'h6' , `Rank ${ + rank + 1 } ` )
@@ -340,11 +340,6 @@ class RunView extends ScreenView {
340
340
export class RunHandler {
341
341
constructor ( ) {
342
342
ROUTER . route ( 'run/:uuid' , [ this . handleRun ] )
343
- ROUTER . route ( 'run/:uuid/:rank' , [ this . handleDistributedRun ] )
344
- }
345
-
346
- handleDistributedRun = ( uuid : string , rank : string ) => {
347
- SCREEN . setView ( new RunView ( uuid , rank ) )
348
343
}
349
344
350
345
handleRun = ( uuid : string ) => {
0 commit comments