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

Workshop skips scheduled allocation

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.8.3, 3.9.3, 3.10, 3.11.4, 4.0
    • 3.11.5
    • Workshop
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • MDL-68944-311
    • MDL-68944-master
    • Hide

      Setup

      1. Login as admin.
      2. Create the following users: teacher1, student1 and student2.
      3. Create course "course1".
      4. Logout.
      5. Login as teacher1.
      6. Create workshop "workshop" in "course1".
      7. Configure "workshop" with the minimum parameters.
      8. Go to "workshop" and click "Switch to the next phase".
      9. Click "Allocate submissions".
      10. Access to "Scheduled allocation" section.
      11. Enable "Automatically allocate submissions at the end of the submission phase".

       

      Testing instructions

      1. Login as student1.
      2. Submit something to "workshop".
      3. Login as student2.
      4. Submit something to "workshop".
      5. Login as teacher1.
      6. Go to "workshop" settings and configure it like this:
        • Availability > Submission deadline > Add a date "now + 1minute" and click "Enable"
        • Activate "Switch to the next phase after the submissions deadline"
      7. Wait one minute (or until the submission deadline).
      8. Execute the workshop cron:

        php admin/cli/scheduled_task.php --execute=\\mod_workshop\\task\\cron_task 
        

      9. Execute the scheduled allocator task:

        php admin/cli/scheduled_task.php --execute=\\workshopallocation_scheduled\\task\\cron_task 

      10. Go to the workshop again.
      11. Check submissions are allocated.
      Show
      Setup Login as admin. Create the following users: teacher1, student1 and student2. Create course "course1". Logout. Login as teacher1. Create workshop "workshop" in "course1". Configure "workshop" with the minimum parameters. Go to "workshop" and click "Switch to the next phase". Click "Allocate submissions". Access to "Scheduled allocation" section. Enable "Automatically allocate submissions at the end of the submission phase".   Testing instructions Login as student1. Submit something to "workshop". Login as student2. Submit something to "workshop". Login as teacher1. Go to "workshop" settings and configure it like this: Availability > Submission deadline > Add a date "now + 1minute" and click "Enable" Activate "Switch to the next phase after the submissions deadline" Wait one minute (or until the submission deadline). Execute the workshop cron: php admin /cli/scheduled_task .php --execute=\\mod_workshop\\task\\cron_task Execute the scheduled allocator task: php admin /cli/scheduled_task .php --execute=\\workshopallocation_scheduled\\task\\cron_task Go to the workshop again. Check submissions are allocated.

    Description

      The Workshop activity skips the scheduled allocation step when the activity availability is set to automatically switch to next phase after the submissions deadline.

       

      To replicate, you will need to:

      • Have a course with instructor and student(s)
      • Create a basic workshop activity with the minimum requirements
      • In Availability setting, specify a Submissions deadline and check the box for "Switch to the next phase after the submissions deadline"
      • Complete the Setup phase and go to the Submission phase and Schedule to allocation submissions.
      • Student(s) to submit something.

      What happens:

      At the deadline, Submission phase changes to Assessment phase, but no submissions have been allocated.

      Attachments

        1. MDL-68944_v311.png
          MDL-68944_v311.png
          150 kB
        2. MDL-68944_master.png
          MDL-68944_master.png
          138 kB
        3. workshop-patch-39.diff
          17 kB

        Issue Links

          Activity

            People

              jsegarra Juan Segarra Montesinos
              sherman Sherman Lai
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Shamim Rezaie Shamim Rezaie
              Angelia Dela Cruz Angelia Dela Cruz
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Raquel Ortega, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              33 Vote for this issue
              Watchers:
              32 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/Jan/22

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 22 minutes
                  4h 22m