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

Add a status column to the participants page

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Enrolments
    • Labels:
    • Testing Instructions:
      Hide
      1. Login as an admin.
      2. Create students s1, s2, s3 and s4 and a teacher t1.
      3. Enable the cohorts sync enrolment plugin.
      4. Create a new cohort CO1 and add s1 and s2 as cohorts.
      5. Create a course C1.
      6. Enrol a teacher in a course C1.
      7. Enrol s1, s3 and s4 via manual enrolment into C1.
      8. Enrol the cohort CO1 to C1.
      9. Login as a teacher.
      10. Go to the course's participants page.
        • Confirm that you see a "Status" column for in the participants table.
      11. Check s1's status column.
        • Confirm that it shows 2 statuses from 2 enrolment methods. (from being enrolled using cohorts sync and manual enrolment).
      12. Check the status fields of users enrolled using manual enrolment
        • Confirm that they have the enrolment details, unenrol, and edit enrolment action buttons beside the status label.
      13. Check the status fields of users enrolled using cohorts sync.
        • Confirm that they have the enrolment details action button beside the status label.
      14. Click on the edit enrolment button for s3.
      15. Change s3's enrolment Status to "Suspended"
      16. Click "Save changes".
        • Confirm that s3's Status is now set to "Suspended"
      17. Click on the edit enrolment button for s4.
      18. Change s4's enrolment start to a date in the future.
      19. Click "Save changes".
        • Confirm that s4's Status is now set to "Not current"
      20. Click on the edit enrolment button for s4.
      21. Change s4's enrolment start to a date in the past.
      22. Change s4's enrolment end to a date in the past before the enrolment start date.
      23. Click "Save changes".
        • Confirm that you see a validation error that the enrolment end should be after the enrolment start date
      24. Change s4's enrolment end to a date in the past after the enrolment start date.
      25. Click "Save changes".
        • Confirm that s4's Status is still set to "Not current".
      26. Click on s4's enrolment details button.
      27. Confirm that you see a modal dialogue containing s4's enrolment details, such as Full name, Course, Enrolment method, Status, and Enrolment start and end dates.
      28. Close the dialogue.
      29. Click on s4's unenrol link.
      30. Click "Yes" to confirm s4's unenrolment.
        • Confirm that s4 gets unenrolled and is no longer showing on the participants list.
      Show
      Login as an admin. Create students s1, s2, s3 and s4 and a teacher t1. Enable the cohorts sync enrolment plugin. Create a new cohort CO1 and add s1 and s2 as cohorts. Create a course C1. Enrol a teacher in a course C1. Enrol s1, s3 and s4 via manual enrolment into C1. Enrol the cohort CO1 to C1. Login as a teacher. Go to the course's participants page. Confirm that you see a " Status " column for in the participants table. Check s1's status column. Confirm that it shows 2 statuses from 2 enrolment methods. (from being enrolled using cohorts sync and manual enrolment). Check the status fields of users enrolled using manual enrolment Confirm that they have the enrolment details, unenrol, and edit enrolment action buttons beside the status label. Check the status fields of users enrolled using cohorts sync. Confirm that they have the enrolment details action button beside the status label. Click on the edit enrolment button for s3. Change s3's enrolment Status to "Suspended" Click " Save changes ". Confirm that s3's Status is now set to "Suspended" Click on the edit enrolment button for s4. Change s4's enrolment start to a date in the future. Click " Save changes ". Confirm that s4's Status is now set to "Not current" Click on the edit enrolment button for s4. Change s4's enrolment start to a date in the past. Change s4's enrolment end to a date in the past before the enrolment start date. Click " Save changes ". Confirm that you see a validation error that the enrolment end should be after the enrolment start date Change s4's enrolment end to a date in the past after the enrolment start date. Click " Save changes ". Confirm that s4's Status is still set to "Not current". Click on s4's enrolment details button. Confirm that you see a modal dialogue containing s4's enrolment details, such as Full name, Course, Enrolment method, Status, and Enrolment start and end dates. Close the dialogue. Click on s4's unenrol link. Click " Yes " to confirm s4's unenrolment. Confirm that s4 gets unenrolled and is no longer showing on the participants list.
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-59369-master-fix

      Description

      • If the current user has moodle/course:enrolreview capability, show a column with the enrolment status for each student.
      • The enrolment status should be one of "Active", "Suspended" or "Not current". Not current means the date is outside of the enrolment start / end dates.
      • edit cog in the "Status" column
      • clicking the cog takes to the edit enrolment page
      • completing or cancelling the edit should return you to the participants page
      • enrolling a user should not navigate the teacher away from the page
      • newly enrolled users should appear on the page once the teacher has finished enrolling them
      • unenrolling a user should ask for confirmation before unenrolling
      • I should be returned to the participants page on completion or cancel
      • The unenrol icon should be in the "Status" column.
      • the unenrolled user should no longer appear in the list of users

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jpataleta Jun Pataleta
              Reporter:
              damyon Damyon Wiese
              Peer reviewer:
              Damyon Wiese
              Integrator:
              Andrew Nicols
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Nov/17