@@ -40,6 +40,12 @@ public function show(ProcessOverviewGroup $group, ProcessOverview $overview): Re
4040 'Go to next page ' => t ('Go to next page ' ),
4141 'Missing data ' => t ('Missing data ' ),
4242 'Failed processes ' => t ('Failed processes ' ),
43+ 'The process was restarted ' => t ('The process was restarted ' ),
44+ 'An error occurred when the process was restarted ' => t ('An error occurred when the process was restarted ' ),
45+ 'Rerun step ' => t ('Rerun step ' ),
46+ 'Finished at ' => t ('Finished at ' ),
47+ 'Failed at ' => t ('Failed at ' ),
48+ 'Error code ' => t ('Error code ' ),
4349 'Loading data... ' => t ('Loading data... ' ),
4450 'of ' => t ('of ' ),
4551 'An error occurred while fetching the data ' => t ('An error occurred while fetching the data ' ),
@@ -77,6 +83,14 @@ public function getRawRunFieldValue(Request $request, ProcessOverview $overview,
7783 return new JsonResponse ($ data );
7884 }
7985
86+ #[Route('/{overview}/runs/{run}/rerun ' , name: 'rerun ' , methods: [Request::METHOD_POST ])]
87+ public function rerun (Request $ request , ProcessOverview $ overview , string $ run , ProcessOverviewHelper $ helper ): Response
88+ {
89+ $ data = $ helper ->rerun ($ request , $ overview , $ run );
90+
91+ return new JsonResponse ($ data );
92+ }
93+
8094 #[Route('/{overview}/search ' , name: 'search ' )]
8195 public function search (Request $ request , ProcessOverview $ overview , ProcessOverviewHelper $ helper ): Response
8296 {
0 commit comments