We are experiencing major issues with submissions. Without the feature option 'Assignment enhancements' enabled, users can no longer use the LTI placed tool for submission (of their portfolio - Portflow). The users are only able to submit their portfolio when the feature option 'Assignment Enhancements' is enabled.
Steps to reproduce:
Have an LTI tool with placement (Portflow) installed and have a snapshot in your portfolio ready.
Have an assignment of the type Website URL without the feature option of Assignment Enhancements enabled).
Go to the assignment and select the tab that refers to the tool (Portflow)
Choose the desired snapshot and see the infinite loading screen.
Expected behavior:
The user should be able to select their snapshot from Portflow, it should become visible, and then they should be able to submit the assignment.
Actual behavior:
After selecting the snapshot, an infinite loading screen appears, which makes it impossible to submit the assignment.
Additional notes:
I understand that it is hard to reproduce without Portflow installed, however, we have some pointers towards the cause of the issue:
We could trace it back to this commit in the source code:
The HomeworkSubmissionLtiContainer calls to processSingleContentItem
After the commit, the processSingleContentItem does not return a Promise, see this file
The HomeworkSubmissionLtiContainer fails on the call to .then since it's trying to call .then on an array. This fails with Uncaught TypeError: (0 , X.Z)(...).then is not a function.
The same error does not occur in the new way (with Assignment Enhancements enabled) because it probably uses a different code path which was updated in that same commit.
Summary:
We are experiencing major issues with submissions. Without the feature option 'Assignment enhancements' enabled, users can no longer use the LTI placed tool for submission (of their portfolio - Portflow). The users are only able to submit their portfolio when the feature option 'Assignment Enhancements' is enabled.
Steps to reproduce:
Expected behavior:
The user should be able to select their snapshot from Portflow, it should become visible, and then they should be able to submit the assignment.
Actual behavior:
After selecting the snapshot, an infinite loading screen appears, which makes it impossible to submit the assignment.
Additional notes:
I understand that it is hard to reproduce without Portflow installed, however, we have some pointers towards the cause of the issue:
We could trace it back to this commit in the source code:
HomeworkSubmissionLtiContainer
calls toprocessSingleContentItem
processSingleContentItem
does not return aPromise
, see this fileHomeworkSubmissionLtiContainer
fails on the call to.then
since it's trying to call.then
on an array. This fails withUncaught TypeError: (0 , X.Z)(...).then is not a function
.The same error does not occur in the new way (with Assignment Enhancements enabled) because it probably uses a different code path which was updated in that same commit.