Long instructor comments doesn't display properly in student's grade report

Description

When the instructor enters a comment for the score cell of a gradebook item for one student with a text that has more than 200 characters in one paragraph, the long comment is displayed in one row in the "grade report" page of the student in "Gradebook" Tool. This is inconvenient for the student to read the comment and also creates an empty space on the upper right corner of the page (see screenshot).

A similar issue seems to already be resolved in SAK-31245, but this issue appears in 19.x nightly, 20.x nightly, and 21.x trunk server. A possible solution is to automatically move the remaining text in the comment to a new line when it reaches a certain number of characters, say, 100 characters.

Attachments

2

Activity

Show:

Marcelino Rutea February 26, 2021 at 4:34 AM

 

Marcelino Rutea February 26, 2021 at 4:34 AM

Hi,

I've tested this issue in the trunk, 21.x and 20.x, and it seems to works fine.

Could we closed this tícket as we closed  ?

Thank you in advance.

 

 

Matthew Jones June 13, 2020 at 9:59 AM
Edited

Great, thanks for finding the issue. Just wanted to see how likely this was to happen as I couldn't reproduce it without long words. We try to use the priority to indicate how important this is to fix and how likely a student/instructor is to be impacted by the issue.

According to Grammerly, the longest word in English is 45 characters (Pneumonoultramicroscopicsilicovolcanoconiosis). So if they used this it might hit.

I've heard of place names that are long but are rare.

I can see how this could be a problem for rich text and that could be a nice feature but currently isn't an issue.

Fangcong Yin June 13, 2020 at 9:41 AM

I changed the priority of these two Jiras to minor because the issue only seems to happen when a single word is longer than a certain amount of characters, which I believe seldom happens in English. Perhaps it might happen in German, but I just noticed this in testing, not hearing any examples in daily scenarios. 

Matthew Jones June 13, 2020 at 9:21 AM
Edited

Were either of these problems that were actually encountered by someone or just something noticed in testing?

The gradebook comments do not support rich text. You say "one paragraph" but there isn't a paragraph tag in comments. Your examples have one long unbroken string of characters. It looks likes so long as an instructor doesn't use any single word in a comment longer than 40 characters they'll be fine. Even if they comment with something like computer code it should break on the newlines (and also probably not look good, but that's a different issue).

Just considering lowering the priority of these 2 issues.

Details

Priority

Affects versions

Components

Assignee

Reporter

Environment

19.x nightly server: https://qa19-mysql.nightly.sakaiproject.org/ 20.x nightly server: https://qa20-mysql.nightly.sakaiproject.org/ 21.x nightly server: https://trunk-mysql.nightly.sakaiproject.org/portal/ Browser(s):Chrome 80.0.3987.132 Windows 10
Created June 12, 2020 at 3:08 PM
Updated February 26, 2021 at 4:34 AM