Skip to content

Importer not auto refreshing for file uploads with task server #4043

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

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

athithyaaselvam
Copy link
Collaborator

What changes were proposed in this pull request?

  • Added a refresh mechanism (using pooling) similar to the file browser page. Problem was, The uploader modal would refresh automatically once the file is chunked by the browser but wont wait for the actual upload to complete on the FS. This fix will keep pooling the upload task and refresh once the upload is complete.

How was this patch tested?

  • Manual tests

Copy link

⚠️ No unit test files modified. Please ensure that changes are properly tested. ⚠️

Copy link

github-actions bot commented Mar 11, 2025

Backend Codecov

Backend Code Coverage Report •
FileStmtsMissCoverMissing
TOTAL533132612451% 
report-only-changed-files is enabled. No files were changed during this commit :)

Pytest Report

Tests Skipped Failures Errors Time
1090 107 💤 0 ❌ 0 🔥 5m 49s ⏱️

const doPoll = function () {
if (taskStatus === 'pending') {
$.get('/desktop/api2/taskserver/check_upload_status/' + taskId, data => {
if (data.isFinalized || data.isFailure || data.is_revoked) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you have some camelCase and some snake_case here. Is that something easy to clean up?

Copy link

⚠️ No unit test files modified. Please ensure that changes are properly tested. ⚠️

@athithyaaselvam athithyaaselvam merged commit b3c641e into master Mar 20, 2025
7 of 9 checks passed
@athithyaaselvam athithyaaselvam deleted the as_dev branch March 20, 2025 21:00
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

Successfully merging this pull request may close these issues.

3 participants