@@ -44,6 +44,7 @@ export type TerminalCommandOutput = TypedMap<{
44
44
project_id : string ;
45
45
stdout ?: string ;
46
46
stderr ?: string ;
47
+ time_ms ?: number ;
47
48
} > ;
48
49
49
50
export type TerminalCommand = TypedMap < {
@@ -226,7 +227,7 @@ export class CourseStore extends Store<CourseState> {
226
227
// that graded the given student, or undefined if no relevant assignment.
227
228
public get_peers_that_graded_student (
228
229
assignment_id : string ,
229
- student_id : string
230
+ student_id : string ,
230
231
) : string [ ] {
231
232
const peers : string [ ] = [ ] ;
232
233
const assignment = this . get_assignment ( assignment_id ) ;
@@ -374,7 +375,7 @@ export class CourseStore extends Store<CourseState> {
374
375
const name = users . get_name ( student . get ( "account_id" ) ) ;
375
376
if ( name != null ) {
376
377
extra = ` (You call them "${ student . has ( "first_name" ) } ${ student . has (
377
- "last_name"
378
+ "last_name" ,
378
379
) } ", but they call themselves "${ name } ".)`;
379
380
}
380
381
}
@@ -392,7 +393,7 @@ export class CourseStore extends Store<CourseState> {
392
393
}
393
394
if ( student . has ( "first_name" ) || student . has ( "last_name" ) ) {
394
395
return [ student . get ( "last_name" , "" ) , student . get ( "first_name" , "" ) ] . join (
395
- " "
396
+ " " ,
396
397
) ;
397
398
}
398
399
const account_id = student . get ( "account_id" ) ;
@@ -430,7 +431,7 @@ export class CourseStore extends Store<CourseState> {
430
431
opts : {
431
432
include_deleted ?: boolean ;
432
433
deleted_only ?: boolean ;
433
- } = { }
434
+ } = { } ,
434
435
) : string [ ] {
435
436
// include_deleted = if true, also include deleted projects
436
437
// deleted_only = if true, only include deleted projects
@@ -474,8 +475,8 @@ export class CourseStore extends Store<CourseState> {
474
475
v . sort ( ( a , b ) =>
475
476
cmp (
476
477
this . get_student_sort_name ( a . get ( "student_id" ) ) ,
477
- this . get_student_sort_name ( b . get ( "student_id" ) )
478
- )
478
+ this . get_student_sort_name ( b . get ( "student_id" ) ) ,
479
+ ) ,
479
480
) ;
480
481
return v ;
481
482
}
@@ -489,14 +490,14 @@ export class CourseStore extends Store<CourseState> {
489
490
490
491
public get_nbgrader_scores (
491
492
assignment_id : string ,
492
- student_id : string
493
+ student_id : string ,
493
494
) : { [ ipynb : string ] : NotebookScores | string } | undefined {
494
495
const { assignment } = this . resolve ( { assignment_id } ) ;
495
496
return assignment ?. getIn ( [ "nbgrader_scores" , student_id ] ) ?. toJS ( ) ;
496
497
}
497
498
498
499
public get_nbgrader_score_ids (
499
- assignment_id : string
500
+ assignment_id : string ,
500
501
) : { [ ipynb : string ] : string [ ] } | undefined {
501
502
const { assignment } = this . resolve ( { assignment_id } ) ;
502
503
const ids = assignment ?. get ( "nbgrader_score_ids" ) ?. toJS ( ) ;
@@ -606,7 +607,7 @@ export class CourseStore extends Store<CourseState> {
606
607
// get info about relation between a student and a given assignment
607
608
public student_assignment_info (
608
609
student_id : string ,
609
- assignment_id : string
610
+ assignment_id : string ,
610
611
) : {
611
612
last_assignment ?: LastCopyInfo ;
612
613
last_collect ?: LastCopyInfo ;
@@ -665,7 +666,7 @@ export class CourseStore extends Store<CourseState> {
665
666
step : AssignmentCopyStep ,
666
667
assignment_id : string ,
667
668
student_id : string ,
668
- no_error ?: boolean
669
+ no_error ?: boolean ,
669
670
) : boolean {
670
671
const x = this . getIn ( [
671
672
"assignments" ,
@@ -688,7 +689,7 @@ export class CourseStore extends Store<CourseState> {
688
689
}
689
690
690
691
public get_assignment_status (
691
- assignment_id : string
692
+ assignment_id : string ,
692
693
) : AssignmentStatus | undefined {
693
694
//
694
695
// Compute and return an object that has fields (deleted students are ignored)
@@ -791,7 +792,7 @@ export class CourseStore extends Store<CourseState> {
791
792
792
793
public student_handout_info (
793
794
student_id : string ,
794
- handout_id : string
795
+ handout_id : string ,
795
796
) : { status ?: LastCopyInfo ; handout_id : string ; student_id : string } {
796
797
// status -- important to be undefined if no info -- assumed in code
797
798
const status = this . getIn ( [ "handouts" , handout_id , "status" , student_id ] ) ;
@@ -819,7 +820,7 @@ export class CourseStore extends Store<CourseState> {
819
820
}
820
821
821
822
public get_handout_status (
822
- handout_id : string
823
+ handout_id : string ,
823
824
) : undefined | { handout : number ; not_handout : number } {
824
825
//
825
826
// Compute and return an object that has fields (deleted students are ignored)
@@ -881,13 +882,13 @@ export class CourseStore extends Store<CourseState> {
881
882
student_project_ids : set (
882
883
this . get_student_project_ids ( {
883
884
include_deleted : true ,
884
- } )
885
+ } ) ,
885
886
) ,
886
887
deleted_project_ids : set (
887
888
this . get_student_project_ids ( {
888
889
include_deleted : true ,
889
890
deleted_only : true ,
890
- } )
891
+ } ) ,
891
892
) ,
892
893
upgrade_goal,
893
894
} ) ;
0 commit comments