Project

General

Profile

Actions

Bug #21925

closed

fetchProcessProgressBarStatus triggering continuously

Added by Peter Amstutz about 1 month ago. Updated 27 days ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Workbench2
Story points:
-

Description

fetchProcessProgressBarStatus triggers hundreds of times, when it is only supposed to trigger periodically.

Example:

https://workbench.tordo.arvadosapi.com/processes/tordo-xvhdp-bd68mbek1to5upj

Open the network debugger, and you'll see hundreds of requests in a short period of time. Once loading is finished and it knows the state of the container, it does seem to stop doing it.

I believe this is affecting Cypress tests for the process panel, by slowing things down and also re-rendering continuously which causes cy.waitForDom() to time out.

Stephen says: "Ah, I added the process resource object to the dependency array of the useeffect triggering reloading the stats so it reloads it every time the resource gets modified during loading"


Subtasks 1 (0 open1 closed)

Task #21928: Review 21925-progress-bar-useeffect-fixResolvedPeter Amstutz06/24/2024Actions
Actions

Also available in: Atom PDF