-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
-
4.2, 4.3
-
MOODLE_402_STABLE, MOODLE_403_STABLE
As per the prototype, during file upload there are several “milestone” statuses we should display in the modal, to indicate to the teacher that their resource is in the process of being uploaded (rather than just a loading spinner alone).
Requirements
- Create relevant functionality to be able to poll the backend and check the current state of a share (either connecting, packaging or sending).
- The backend should be able to utilise and update the status in the relevant table created in
MDL-77296to keep track of the status. - MDL-77297 implemented the first check (ability to check if the LMS is able to reach the MoodleNet instance), which will indicate completion of the first milestone, “Contacting MoodleNet…” so the UI can be transitioned on to the second “Packaging your file…” message.
- Once packaging is complete, this should transition to “Sending to MoodleNet…”.
- Once the upload is complete, no more polling is required, because the original AJAX request will return a response, which will trigger the transition to the success or fail state of the modal.
User stories
This issue resolves the following user stories:
- As a teacher, while I am waiting for my share to MoodleNet to complete, I will see multiple status updates, so I have a clear indication that the packaging and uploading of my resource is progressing.
Out of scope
- Transitioning to the success / fail final state of the modal, as this will be controlled by the original AJAX request to perform the share.