Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After uploading submissions to a challenge, the submissions API is being called repeatedly #6898

Closed
jmgasper opened this issue Jul 26, 2023 · 4 comments

Comments

@jmgasper
Copy link
Collaborator

REF: https://topcoder.atlassian.net/browse/PROD-4316

Steps

Go to a Dev challenge (ex- https://www.topcoder-dev.com/challenges/ab125502-0fd4-49ff-baea-a51cbf02104b )

Register and upload a submission

Now go to My submissions page and open the network tab and monitor

After uploading submissions to a challenge, the submissions API is being loaded repeatedly, the download button does not appear to download the submission

2023-07-25.13-14-33.mp4
@suppermancool
Copy link
Collaborator

suppermancool commented Jul 26, 2023

@jmgasper there is a requirement to fetch submissions after every 2s in #6614

The reason the submission page keeps fetching submissions API is that the AV scan is not completed

For fixing this I only need to remove the loading indicator when fetching submission right?

@jmgasper
Copy link
Collaborator Author

@suppermancool - We need to only retry the fetch once, after 4 seconds. It shouldn't continually retry.

@suppermancool
Copy link
Collaborator

@jmgasper one more issue: we will hide the download button if the AV scan is not done. in that test challenge https://www.topcoder-dev.com/challenges/ab125502-0fd4-49ff-baea-a51cbf02104b the AV scan is always not done

Should I remove that check and show the download button?

@jmgasper
Copy link
Collaborator Author

@suppermancool - No, we will keep the functionality as-is. We don't want to show the download button until the AV scan is done. I'll try to figure out why it's failing in dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants