Skip to content

EVALSYS-1625 QA testing: matrix scales store reversed answers and item comments cannot be entered - #212

Merged
danielmerino merged 1 commit into
masterfrom
EVALSYS-1625
Nov 10, 2026
Merged

danielmerino merged 1 commit into
masterfrom
EVALSYS-1625

Conversation

@danielmerino

Copy link
Copy Markdown
Contributor

https://sakaiproject.atlassian.net/browse/EVALSYS-1625

Problem

Two regressions found while testing the take evaluation page after the move to Thymeleaf:

  • Matrix scales (single items and matrix blocks) store the answers reversed: the first column, under the start label, saves the last option of the scale. The page redisplays the choice correctly, so it only shows up in the reports.
  • Item comments cannot be entered: the comment box is rendered with display:none and the "Add a comment" link that opened it is missing.

Changes

  • ScaleOptionsBuilder.buildMatrixOptions: the option value is the column index instead of optionCount - 1 - index, as it was before the migration.
  • New fragments/item_comment.html with the previous div.JSevalComment markup (add / edit / hide links, warning and tooltip). It replaces the nine hidden commentBox blocks in take_eval_item.html and is wired by the existing toggleCommentBox.js through evalsys.instrumentItems().
  • messages_es_ES.properties: Spanish comment.* texts.

🤖 Generated with Claude Code

…m comments cannot be entered

- Matrix columns store their own option index again, matching the start
  and end legends (they stored optionCount - 1 - index).
- Restore the collapsible item comment ("Add a comment" link) with a new
  fragments/item_comment.html, wired by the existing toggleCommentBox.js.
  The comment box was rendered hidden with no way to open it.
- Add the Spanish comment.* texts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@danielmerino
danielmerino merged commit 3767cac into master Nov 10, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants