File tree 1 file changed +6
-2
lines changed
site/src/modules/workspaces/WorkspaceTiming
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -58,15 +58,18 @@ export const WorkspaceTimings: FC<WorkspaceTimingsProps> = ({
58
58
] . sort ( ( a , b ) => {
59
59
return new Date ( a . started_at ) . getTime ( ) - new Date ( b . started_at ) . getTime ( ) ;
60
60
} ) ;
61
+
61
62
const [ isOpen , setIsOpen ] = useState ( defaultIsOpen ) ;
62
63
const isLoading = timings . length === 0 ;
63
64
64
- // All stages
65
+ // Each agent connection timing is a stage in the timeline to make it easier
66
+ // to users to see the timing for connection and the other scripts.
65
67
const agentStageLabels = Array . from (
66
68
new Set (
67
69
agentConnectionTimings . map ( ( t ) => `agent (${ t . workspace_agent_name } )` ) ,
68
70
) ,
69
71
) ;
72
+
70
73
const stages = [
71
74
...provisioningStages ,
72
75
...agentStageLabels . flatMap ( ( a ) => agentStages ( a ) ) ,
@@ -120,7 +123,8 @@ export const WorkspaceTimings: FC<WorkspaceTimingsProps> = ({
120
123
: mergeTimeRanges ( stageTimings . map ( toTimeRange ) ) ;
121
124
122
125
// Prevent users from inspecting internal coder resources in
123
- // provisioner timings.
126
+ // provisioner timings because they were not useful to the
127
+ // user and would add noise.
124
128
const visibleResources = stageTimings . filter ( ( t ) => {
125
129
const isProvisionerTiming = "resource" in t ;
126
130
return isProvisionerTiming
You can’t perform that action at this time.
0 commit comments