Skip to content

Refresh after delete not always working #6616

Closed
@jmgasper

Description

@jmgasper

Description

We've been struggling with the delete button on submissions and the list not refreshing properly because there is a delay between when the DELETE succeeds and the GET for the list of submissions are in sync. That means that for a second or two after a DELETE, the deleted submission still gets returned in the GET, so the user may not know that the delete worked.

Solution

Let's change how the UI works after the delete confirmation is done. Instead of refreshing the list from the server, now on the client side, just delete the submission record from the UI, when the DELETE call succeeds. We'll need to ensure that we handle the case where the sole submission is deleted and show the "You have no submission uploaded so far" text as it is now.

This way the list is updated immediately, for the best user experience.

Old code

To keep the codebase clean, please remove the delay setting and the code added recently to refresh from the server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions