Disable uploading files while an upload is in progress - #2237
Conversation
|
Thanks for the pull request, @viadanna! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2237 +/- ##
=======================================
Coverage 95.29% 95.29%
=======================================
Files 195 195
Lines 21664 21664
Branches 1509 1509
=======================================
Hits 20644 20644
Misses 771 771
Partials 249 249
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
kaustavb12
left a comment
There was a problem hiding this comment.
👍
- I tested this: Tested in local devstack
- I read through the code
|
@viadanna Since this is a user-facing change it will need to go through product review. You can get that process started by creating a product proposal and pinging CC @kaustavb12 |
|
@viadanna @kaustavb12 Once Product is done with their review, feel free to ping me for a CC review & merge. |
|
Hey @viadanna, checking in to see if you've had a chance yet to ping |
|
@itsjeyd Yes, I did, but got no answer yet. |
Setting ora2 dependency to our fork while awaiting upstream PR being merged[1]. Once it's merged, upstream will bump up the dependency version which will include this change, so will be able to drop this commit. 1: openedx/edx-ora2#2237 (cherry picked from commit 506201e)
Setting ora2 dependency to our fork while awaiting upstream PR being merged[1]. Once it's merged, upstream will bump up the dependency version which will include this change, so will be able to drop this commit. 1: openedx/edx-ora2#2237 (cherry picked from commit 506201e)
3fc6d0e to
d64de50
Compare
|
@pomegranited this is good for CC review. |
pomegranited
left a comment
There was a problem hiding this comment.
Hi @viadanna, this is working great, thank you for this fix!
One nit on styles, but I can approve once that's fixed.
👍
- I tested this using the demoX course's ORA block
- I read through the code
- I checked for accessibility issues by using my keyboard to navigate and checking the aria tags
- Includes documentation
-
User-facing strings are extracted for translationN/A
| </div> | ||
| <input type="file" class="submission__answer__upload file--upload" id="submission_answer_upload_{{ xblock_id }}" {% if allow_multiple_files %}multiple=""{% endif %} accept="{{white_listed_file_types|join:", "}}"> | ||
| <button type="submit" class="file__upload action action--upload"> | ||
| <span class="icon fa fa-spinner fa-spin is--hidden" aria-hidden="true"></span> |
There was a problem hiding this comment.
This is working great, but the is--hidden style isn't working so well, so the spinner is causing the button text to be off center:
Could you update %state-hidden to make display: none !important;?
8a267ad to
d90fd57
Compare
d90fd57 to
e733351
Compare
pomegranited
left a comment
There was a problem hiding this comment.
Thank you for that fix @viadanna , it's working perfectly now.
|
@pomegranited are you able to create a new release from the tag |

This PR disables the upload button and shows a spinner during uploads so continuing to click the upload button doesn't flood the LMS with requests.
What changed?
Developer Checklist
Testing Instructions
Reviewer Checklist
Collectively, these should be completed by reviewers of this PR:
FYI: @openedx/content-aurora