XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6
    • Fix Version/s: 3.4.6, 3.5.3
    • Component/s: Assignment
    • Labels:
    • Testing Instructions:
      Hide
      • Make sure to have a course with teachers and students enrolled.
      1. Create an assignment
        1. Set Submissions types to Online text and File submissions
        2. Check the feedback types - Feedback comments, Annotate PDF, and Feedback files.
      2. Create some user overrides (Assignment administration > User overrides)
      3. Login as multiple students (at least three) and:
        1. Add Submission comments
        2. Add text and images to the online text.
        3. Add a file for the file submissions.
      4. Log in as a teacher and with several students:
        1. Add a comment to the student's submission comments
        2. Add a grade to the user.
        3. Add feedback comments.
        4. Add a feedback file.
      5. Find out the context id for the assignment. Run the script php getcontextid.php --name=assignmentname Make sure to change "assignmentname" to the name of your assignment.
      6. Get the userid for two of the students. (if you hover over the picture of the image then the url should have "...id=4" or something similar. This is the userid)
      7. Run the test script php testdelete.php --userids=2,3 --contextid=55 Make sure to change the userids and context id to the ones relevant to your test.
      8. Log in as a teacher or administrator and check that the overrides, submissions, and grades have been removed only for the users that were selected for deletion.
      Show
      Make sure to have a course with teachers and students enrolled. Create an assignment Set Submissions types to Online text and File submissions Check the feedback types - Feedback comments, Annotate PDF, and Feedback files. Create some user overrides (Assignment administration > User overrides) Login as multiple students (at least three) and: Add Submission comments Add text and images to the online text. Add a file for the file submissions. Log in as a teacher and with several students: Add a comment to the student's submission comments Add a grade to the user. Add feedback comments. Add a feedback file. Find out the context id for the assignment. Run the script php getcontextid.php --name=assignmentname Make sure to change "assignmentname" to the name of your assignment. Get the userid for two of the students. (if you hover over the picture of the image then the url should have "...id=4" or something similar. This is the userid) Run the test script php testdelete.php --userids=2,3 --contextid=55 Make sure to change the userids and context id to the ones relevant to your test. Log in as a teacher or administrator and check that the overrides, submissions, and grades have been removed only for the users that were selected for deletion.
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull 3.5 Branch:
    • Pull Master Branch:
      MDL-63531-master
    • Sprint:
      GDPR Followup Sprint 1

      Description

      Add support to identify and remove users in a context for mod_assign and it's sub-plugins.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Nov/18

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h