Uploaded image for project: 'Samigo'
  1. Samigo
  2. SAM-3224

Events from timer thread should have a session that matches the user who submitted

    Details

    • 11 status:
      Resolved
    • Test Plan:
      Hide

      As instructor add Statistics and Tests and Quizzes to a course with multiple students.
      To test this you'll also need database access.

      Create a new assessment

      • One multiple choice question is fine

      Settings

      • Unlimited submissions
      • Available now
      • Due (Sometime out in the future)
      • Time limit (short, like 1 minute)
      • Last submissions accepted (No, not after due date)

      Publish

      Login as a student.
      Take the assessment, mark an answer to the question
      Save (not submit) and leave the assessment by closing the browser or clicking on another tool.

      Now you'll need to look at the events in the database.
      SELECT EVENT,SESSION_ID FROM sakai_trunk.SAKAI_EVENT where EVENT like 'sam%' order by EVENT_ID DESC;

      If this is working the session_id of the timer thread events should match the session id of the taken events.

      For instance this does not match
      'sam.assessment.submit.timer.thre', '~matt-VirtualBox~9d85638b-5ada-4fcd-8c3b-752560d32eb1'
      'sam.assessment.submit.thread', '~matt-VirtualBox~9d85638b-5ada-4fcd-8c3b-752560d32eb1'
      'sam.assessment.take', 'a0da0ec8-ea48-4bb7-a9f4-9e53d6ca9d2f'

      Show
      As instructor add Statistics and Tests and Quizzes to a course with multiple students. To test this you'll also need database access. Create a new assessment One multiple choice question is fine Settings Unlimited submissions Available now Due (Sometime out in the future) Time limit (short, like 1 minute) Last submissions accepted (No, not after due date) Publish Login as a student. Take the assessment, mark an answer to the question Save (not submit) and leave the assessment by closing the browser or clicking on another tool. Now you'll need to look at the events in the database. SELECT EVENT,SESSION_ID FROM sakai_trunk.SAKAI_EVENT where EVENT like 'sam%' order by EVENT_ID DESC; If this is working the session_id of the timer thread events should match the session id of the taken events. For instance this does not match 'sam.assessment.submit.timer.thre', '~matt-VirtualBox~9d85638b-5ada-4fcd-8c3b-752560d32eb1' 'sam.assessment.submit.thread', '~matt-VirtualBox~9d85638b-5ada-4fcd-8c3b-752560d32eb1' 'sam.assessment.take', 'a0da0ec8-ea48-4bb7-a9f4-9e53d6ca9d2f'

      Description

      If an event is posted from the timer thread (and possibly auto-submit job) it isn't able to be linked back to the user that actually submitted the assessment. It is a "dummy" session matching the server. Ideally a session should be created for that user to the event is correct. See test plan

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jonespm Matthew Jones
                  Reporter:
                  jonespm Matthew Jones
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code