instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.4k stars 2.42k forks source link

Comments posted via the API randomly do not appear on the speedgrader view but do post successfully #2368

Closed fred-dev closed 2 weeks ago

fred-dev commented 2 weeks ago

Summary:

Uploading comments to an assignment via the API randomly results in the comments not being shown on SpeedGrader, but no error is recorded via the request. The comments do upload and are available through the download comments button but do not show.

Steps to reproduce:

  1. Use the REST API to post comments to student assignments (note: I was also posting marks to rubric criteria - no comments or ranking there and only comments to the submission). This was done in a small batch of 17.
  2. Randomly, comments for some students will not show on the SpeedGrader view. They are successfully uploaded and can be seen using the download comments button in SpeedGrader, as well as in the gradebook sidebar preview.
  3. Despite being able to manually add a comment via SpeedGrader to the affected students (which does show), the posted comments do not show even after adding a manual one. Removing all comments via the markbook page and retrying does not result in a visible comment. This issue affects about 30% of the comments posted.

Expected behavior:

Comments that are successfully posted will all be visible in SpeedGrader.

Actual behavior:

Randomly, some comments will only be visible via the gradebook sidebar.

Additional notes:

This issue appears to have persisted for several years See the posts on this page relating to the same issue, but not from using the API: SpeedGrader Comments Not Showing (Download Only) Error Updating

fred-dev commented 2 weeks ago

My bad- I was not posting marks to the latest version of the submission