Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64730

LTI Advantage: 0 points score are recorded as empty score

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      For the tests below, a test tool named ZTest will be used. The tool is available at https://ztest.cengage.info/ztest/

      Prerequisites:

      Add test tool
      1. Site is configured with at least one course
      2. Assign a user (instructor) to the manager role site-wide
      Configure a site tool with access to AGS
      1. Log in as an administrator
      2. Navigate to Site Administration > Plugins > Manage tools
      3. Click on configure a tool manually
      4. Fill the form as follow:
        1. Tool name: ZTest
        2. Tool url: https://ztest.cengage.info/ztest/lti11
        3. Consumer key: moodle-testing
        4. Shared secret: ztest-secret
        5. In the Services section, set the Assignment and Grades service to: ‘use this service for grade sync and column management’
      5. Confirm tool is saved successfully
      Add a ZTest link to the course
      1. Log in as instructor
      2. Navigate to course
      3. Turn editing ON
      4. Click Add an activity or resource and select external tool
      5. On the Add external tool page, select ZTest for preconfigured tool
      6. Activity Name: ZTest Assignment
      7. Privacy: check accept grades from the tool
      8. Grade: maximum points: 50
      9. Save and verify the course is successfully added to the course

      Reproducing the issue:

      We'll verify that a 0 score is recorded as 0 not as an empty score.

      1. Login as Student in the Course
      2. Launch ZTest Assignment
      3. Locate custom_lineitem_url, and copy its value (something like {{{moodle}/mod/lti/services.php/{courseid}/lineitems/{gradeitemid}/lineitem?type_id={tooltypeid}||
      4. Select the AnyCall tab (make sure your browser window is large enough the tabs appear). It lets you send arbitrary calls back to the tool consumer properly signed
        1. URL: paste the custom_lineitem_url value
        2. Modify the url by adding /scores at the end of the path, preserve the custom parameters. The url must end by /lineitem/scores?type_id={tooltypeid}
        3. Method: POST
        4. Content-Type: application/vnd.ims.lis.v1.score+json
        5. Payload should pre-fill with a JSON payload, verify it contains
          1. Userid should be the current student user id.
          2. scoreGiven: 0
          3. scoreMaximum: 16
          4. comment: commented
          5. Timestamp in ISO 8601
          6. activityProgress: Completed
          7. gradingProgress: FullyGraded
        6. Press send
        7. Verify ZTest indicates the operation is successful (200)
        8. Navigate to Grades
        9. Verify the grade for ZTest Assignment is not a - but 0
      Show
      For the tests below, a test tool named ZTest will be used. The tool is available at https://ztest.cengage.info/ztest/ Prerequisites: Add test tool Site is configured with at least one course Assign a user (instructor) to the manager role site-wide Configure a site tool with access to AGS Log in as an administrator Navigate to Site Administration > Plugins > Manage tools Click on configure a tool manually Fill the form as follow: Tool name: ZTest Tool url: https://ztest.cengage.info/ztest/lti11 Consumer key: moodle-testing Shared secret: ztest-secret In the Services section, set the Assignment and Grades service to: ‘use this service for grade sync and column management’ Confirm tool is saved successfully Add a ZTest link to the course Log in as instructor Navigate to course Turn editing ON Click Add an activity or resource and select external tool On the Add external tool page, select ZTest for preconfigured tool Activity Name: ZTest Assignment Privacy: check accept grades from the tool Grade: maximum points: 50 Save and verify the course is successfully added to the course Reproducing the issue: We'll verify that a 0 score is recorded as 0 not as an empty score. Login as Student in the Course Launch ZTest Assignment Locate custom_lineitem_url , and copy its value (something like {{{moodle}/mod/lti/services.php/{courseid}/lineitems/{gradeitemid}/lineitem?type_id={tooltypeid}|| Select the AnyCall tab (make sure your browser window is large enough the tabs appear). It lets you send arbitrary calls back to the tool consumer properly signed URL: paste the custom_lineitem_url value Modify the url by adding /scores at the end of the path, preserve the custom parameters. The url must end by /lineitem/scores?type_id={tooltypeid} Method: POST Content-Type: application/vnd.ims.lis.v1.score+json Payload should pre-fill with a JSON payload, verify it contains Userid should be the current student user id. scoreGiven: 0 scoreMaximum: 16 comment: commented Timestamp in ISO 8601 activityProgress: Completed gradingProgress: FullyGraded Press send Verify ZTest indicates the operation is successful (200) Navigate to Grades Verify the grade for ZTest Assignment is not a - but 0
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE
    • Pull from Repository:
    • Pull 3.5 Branch:
       MDL-64730-lti-adv-0score-35
    • Pull 3.6 Branch:
       MDL-64730-lti-adv-0score-36
    • Pull Master Branch:
      master

      Description

      When a score is sent using the Assignment and Grade Services, if the score is 0, the score is just recorded as empty - rather than an actual 0 in the gradebook.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Mar/19

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m