Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-41192

Samigo: Parsing errors when grading tests & quizzes with 1000+ points

    Details

    • 19 status:
      Resolved
    • 12 status:
      Resolved
    • Test Plan:
      Hide
      1. Create a quiz with a question worth 1001 points
      2. As several students, take the quiz
      3. As instructor, view the student's scores
      4. Switch to the Questions tab
        1. Ensure scores for correctly answered questions display as "1001", and not "1,001"
      5. Change a score on this tab, ensure the score is updated successfully and that there are no validation errors
      Show
      Create a quiz with a question worth 1001 points As several students, take the quiz As instructor, view the student's scores Switch to the Questions tab Ensure scores for correctly answered questions display as "1001", and not "1,001" Change a score on this tab, ensure the score is updated successfully and that there are no validation errors

      Description

      There's a NumberFormat in ContextUtil.getRoundedValue(...), which adds grouping separators, I.e. the comma in "1,000". Some of these commas make their way into text fields (scores on the Questions tab for instance); when you submit those text fields validation errors ensue as commas are unexpected. I don't believe there are any other UIs in Sakai that use grouping on grades.

      Eliminate the grouping commas by invoking 'setGroupingUsed(false)' on the NumberFormat instance

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bbailla2 Brian Baillargeon
                  Reporter:
                  bbailla2 Brian Baillargeon
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code