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

LTI Tool: Problems with submission received view #1114

Closed
PasiSa opened this issue Dec 28, 2022 · 1 comment
Closed

LTI Tool: Problems with submission received view #1114

PasiSa opened this issue Dec 28, 2022 · 1 comment
Assignees
Labels
area: LTI LTI protocol (Learning Tools Interoperability, worldwide standard) requester: team The issue is raised by a person inside the A+ developer team type: bug This is a bug
Milestone

Comments

@PasiSa
Copy link
Contributor

PasiSa commented Dec 28, 2022

When running an A+ task as LTI activity from MyCourses, after submitting solution to a task, "Submission received ... Your submission is being graded ..." is shown, but the view is not refreshed to show the submission result after grading completes. Also the "Submission Info" box is shown two times on right, once is enough.

@PasiSa PasiSa added type: bug This is a bug area: LTI LTI protocol (Learning Tools Interoperability, worldwide standard) requester: team The issue is raised by a person inside the A+ developer team labels Dec 28, 2022
@PasiSa PasiSa moved this to Todo in A+ sprints Dec 28, 2022
@PasiSa PasiSa changed the title LTI Tool: Problems with submission received field LTI Tool: Problems with submission received view Jan 31, 2023
@markkuriekkinen
Copy link
Contributor

This issue is also listed in this comment:
#1104 (comment)

Polling of the grading results after submitting. Is the polling widget and JavaScript included in the LTI exercise and chapter pages?
The _lti_exercise_wait.html template is a copy of the normal _exercise_wait.html template with a different hardcoded polling URL.

#1104 (comment)

It looks like this file is a copy of the old existing file exercise/templates/exercise/_exercise_wait.html, but this one line with the submission poll URL is slightly different. It would be nice to avoid such repetition, but at least this file is very small.

@markkuriekkinen markkuriekkinen added this to the v1.18 milestone Feb 7, 2023
EerikSaksi added a commit to EerikSaksi/a-plus that referenced this issue Feb 15, 2023
@PasiSa PasiSa moved this from Todo to Under review in A+ sprints Mar 21, 2023
@PasiSa PasiSa modified the milestones: v1.18, v1.19 May 9, 2023
markkuriekkinen added a commit to markkuriekkinen/a-plus that referenced this issue May 19, 2023
The A+ LTI Tool v1.3 (apluslms#1104) implementation broke the polling of
the submission feedback in full-view exercise pages.
The polling was also broken in the LTI exercise full-view pages.

Remove the URL `lti-submission-poll` because it used the same view
as the normal `submission-poll` URL. The template
`_lti_exercise_wait.html` is not needed since it was a copy of
`_exercise_wait.html` with a different poll URL.

The template block `exercise_wait` is now unnecessary.
It was added in apluslms#1104. Adding the block was a mistake originally
since the parent templates did not have such a block and
it basically did not render anything. The block `exercise_wait`
was not part of any existing block.

The template `lti_submission.html` should not override
the block `exerciseinfo`. It was copied from `submission.html` and
the submission info page was thus rendered twice in
the LTI submission page.

Fixes apluslms#1114
Closes apluslms#1162
@github-project-automation github-project-automation bot moved this from Under review to Done in A+ sprints May 19, 2023
markkuriekkinen added a commit to markkuriekkinen/a-plus that referenced this issue Jun 2, 2023
The A+ LTI Tool v1.3 (apluslms#1104) implementation broke the polling of
the submission feedback in full-view exercise pages.
The polling was also broken in the LTI exercise full-view pages.

Remove the URL `lti-submission-poll` because it used the same view
as the normal `submission-poll` URL. The template
`_lti_exercise_wait.html` is not needed since it was a copy of
`_exercise_wait.html` with a different poll URL.

Poll.js is changed so that the final target URL can be configured
through HTML data attributes. Previously, poll.js had a hardcoded
assumption that the final target URL could be derived from
the poll URL by dropping the word "poll" from the end of
the poll URL. That was not flexible enough for LTI Tool URLs that
start with the "/lti" prefix.

The template block `exercise_wait` is now unnecessary.
It was added in apluslms#1104. Adding the block was a mistake originally
since the parent templates did not have such a block and
it basically did not render anything. The block `exercise_wait`
was not part of any existing block.

The template `lti_submission.html` should not override
the block `exerciseinfo`. It was copied from `submission.html` and
the submission info page was thus rendered twice in
the LTI submission page.

Fixes apluslms#1114
Closes apluslms#1162
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: LTI LTI protocol (Learning Tools Interoperability, worldwide standard) requester: team The issue is raised by a person inside the A+ developer team type: bug This is a bug
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants