Skip to content

Admin download refresh sometimes causes duplicate rows after a download is restarted #1793

@louise-davies

Description

@louise-davies

Sabah reported that when he manually restarts an expired download, if he has the admin download table open and does a refresh via the refresh button, the download appears twice in the table. I believe this occurs somehow due to at the time Sabah had filtered the table so only e.g. 6 rows appeared, so when the refresh happened it sends 2 requests, one for 0 to 50 rows as normal, and another is sent automatically due to react-virtualized "seeing" the final row and attempting to request to load more rows. This may not be the issue as I couldn't reproduce it exactly on my machine as I didn't have the filters applied myself when Sabah restarted the download, but it's an avenue worth exploring

Metadata

Metadata

Assignees

No one assigned

    Labels

    adminFunctionality for administrators of the systembugSomething isn't workingdatagateway-downloadIssues relating to the download plugin

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions