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

Enrolment actions no longer work after dynamic table actions

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a course with at least 30 user enrolled
      2. Navigate to the course participants page
      3. Choose a user, and then for that user...
      4. Click the "info" icon in the "Status" column
        1. Confirm that the dialogue is displayed
        2. Confirm that the information about that user enrolment is displayed
      5. Close the dialogue
      6. Click the "edit" icon (cog) in the "Status" column
        1. Confirm that the dialogue is displayed
        2. Confirm that the information about that user enrolment is displayed
      7. Enable the enrolment start/end dates
      8. Set the end date to be one week ago
      9. Set the start date to today
      10. Press "Save changes"
        1. Confirm that the dialogue did not close
        2. Confirm that you were shown a warning that "Enrolment end date must be after the enrolment start date"
      11. Change the start date to be one year ago
      12. Press "Save change"
        1. Confirm that the current page of the table reloaded without reloading the page
        2. *Confirm the "Status" now says "Not current"
        3. Confirm that a notification was shown that the user enrolment was updated
      13. Click the "info" icon again
        1. Confirm that the info dialogue is displayed
      14. Click the "Edit enrolment" from within the dialogue (on the "Enrolment method" line)
        1. Confirm that the edit dialogue is displayed
        2. Confirm that the information about that user enrolment is displayed
      15. Change the "Enrolment ends" date to one year from now
      16. Change the "Status" to "Suspended"
      17. Save changes
        1. Confirm that the current page of the table reloaded without reloading the page
        2. *Confirm the "Status" now says "Suspended"
      18. Edit the enrolment again
      19. Change the stauts back to "Active"
      20. Save changes
        1. Confirm that the current page of the table reloaded without reloading the page
        2. *Confirm the "Status" now says "Active"
      21. Press the "Unenrol" icon (trash can) in the "Status" column
        1. Confirm that you are asked if you wish to unenrol the user
      22. Press "Cancel"
        1. Confirm that the modal closes
        2. Confirm that the user was not enrolled
      23. Press the "Unenrol" icon (trash can) in the "Status" column
        1. Confirm that you are asked if you wish to unenrol the user againj
      24. Press "Unenrol"
        1. Confirm that the current page of the table reloaded without reloading the page
        2. Confirm that the user was unenrolled
        3. Confirm that a notification was shown that the user was removed from the course
      25. Move to a different page
      26. Change the sort order
      27. Filter by a first or last initial
      28. Repeat all of the above instructions again
      Show
      Create a course with at least 30 user enrolled Navigate to the course participants page Choose a user, and then for that user... Click the "info" icon in the "Status" column Confirm that the dialogue is displayed Confirm that the information about that user enrolment is displayed Close the dialogue Click the "edit" icon (cog) in the "Status" column Confirm that the dialogue is displayed Confirm that the information about that user enrolment is displayed Enable the enrolment start/end dates Set the end date to be one week ago Set the start date to today Press "Save changes" Confirm that the dialogue did not close Confirm that you were shown a warning that "Enrolment end date must be after the enrolment start date" Change the start date to be one year ago Press "Save change" Confirm that the current page of the table reloaded without reloading the page *Confirm the "Status" now says "Not current" Confirm that a notification was shown that the user enrolment was updated Click the "info" icon again Confirm that the info dialogue is displayed Click the "Edit enrolment" from within the dialogue (on the "Enrolment method" line) Confirm that the edit dialogue is displayed Confirm that the information about that user enrolment is displayed Change the "Enrolment ends" date to one year from now Change the "Status" to "Suspended" Save changes Confirm that the current page of the table reloaded without reloading the page *Confirm the "Status" now says "Suspended" Edit the enrolment again Change the stauts back to "Active" Save changes Confirm that the current page of the table reloaded without reloading the page *Confirm the "Status" now says "Active" Press the "Unenrol" icon (trash can) in the "Status" column Confirm that you are asked if you wish to unenrol the user Press "Cancel" Confirm that the modal closes Confirm that the user was not enrolled Press the "Unenrol" icon (trash can) in the "Status" column Confirm that you are asked if you wish to unenrol the user againj Press "Unenrol" Confirm that the current page of the table reloaded without reloading the page Confirm that the user was unenrolled Confirm that a notification was shown that the user was removed from the course Move to a different page Change the sort order Filter by a first or last initial Repeat all of the above instructions again
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
      MDL-68442-master
    • Story Points:
      1
    • Sprint:
      International 3.9 - Sprint 10

      Description

      The current participant table code for Viewing, Editing, and Removing enrolments binds to specific instances of buttons. When we reload the table those event handlers are dropped.

      We need to update the code to make it safe to work with the dynamic table code.

        Attachments

        1. MDL-68442_Step12.1 and 12.3.mp4
          762 kB
        2. MDL-68442_Step17.1.mp4
          821 kB
        3. MDL-68442_Step20.1.mp4
          477 kB
        4. MDL-68442_Step22.mp4
          219 kB
        5. MDL-68442_Step24.mp4
          284 kB
        6. MDL-68442.jpg
          MDL-68442.jpg
          35 kB
        7. MDL-68442 (2).jpg
          MDL-68442 (2).jpg
          40 kB
        8. MDL-68442 (3).jpg
          MDL-68442 (3).jpg
          46 kB

          Activity

            People

            Assignee:
            dobedobedoh Andrew Nicols
            Reporter:
            dobedobedoh Andrew Nicols
            Peer reviewer:
            Simey Lameze
            Integrator:
            Adrian Greeve
            Tester:
            Anna Carissa Sadia
            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:
              15/Jun/20

                Time Tracking

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