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

Allow teacher to make choices for students

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.5, 2.8.2
    • Fix Version/s: 3.2
    • Component/s: Choice
    • Labels:
    • Environment:
      All
    • Database:
      Any
    • Testing Instructions:
      Hide

      Set debugging mode on

      Test 1

      1. Create a choice activity with multiple responses allowed
      2. Complete choice by several students, modify answers
      3. Login as teacher, go to "View responses" inside the choice activity
      4. Make sure you are able to modify and delete choices of students
      5. Go to choice settings and select to display results with names
      6. Now as a teacher you should be able to modify and delete choices on view page as well
      7. View choice logs and make sure all actions are logged. Changing of the answer should be logged as two events: answer removed and answer added
      8. Make sure students are not able to modify or delete answers of other students and don't see controls for it.
      9. Add access restrictions to the choice activity
      10. As a teacher make sure that the list of not answered users does not display users who can not access activity

      Test 2 - logs upgrade

      1. On another instance of 3.1 (without changes from this issue) create a course
      2. Create a choice activity with multiple responses allowed
      3. Complete choice by several students, modify answers, allow teacher to delete some answers
      4. View logs for this activity and leave the page open
      5. In another window backup the course with user data and logs
      6. Restore the backup on upgraded site
      7. In the final restore page, where you see the progress bar, open the browser code inspector and locate #executionprogress DOM node, check its contents, there should not be any debugging message
      8. View the logs and make sure they are displayed the same
      9. Inspect report "Events list" - events "Choice made" and "Choice updated" should be listed as "(no longer used)"
      10. Create new event monitor rule - you should not be able to subscribe to these two events but should be able to subscribe to "Choice answer added" and "Choice answer deleted"
      Show
      Set debugging mode on Test 1 Create a choice activity with multiple responses allowed Complete choice by several students, modify answers Login as teacher, go to "View responses" inside the choice activity Make sure you are able to modify and delete choices of students Go to choice settings and select to display results with names Now as a teacher you should be able to modify and delete choices on view page as well View choice logs and make sure all actions are logged. Changing of the answer should be logged as two events: answer removed and answer added Make sure students are not able to modify or delete answers of other students and don't see controls for it. Add access restrictions to the choice activity As a teacher make sure that the list of not answered users does not display users who can not access activity Test 2 - logs upgrade On another instance of 3.1 (without changes from this issue) create a course Create a choice activity with multiple responses allowed Complete choice by several students, modify answers, allow teacher to delete some answers View logs for this activity and leave the page open In another window backup the course with user data and logs Restore the backup on upgraded site In the final restore page, where you see the progress bar, open the browser code inspector and locate #executionprogress DOM node, check its contents, there should not be any debugging message View the logs and make sure they are displayed the same Inspect report "Events list" - events "Choice made" and "Choice updated" should be listed as "(no longer used)" Create new event monitor rule - you should not be able to subscribe to these two events but should be able to subscribe to "Choice answer added" and "Choice answer deleted"
    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull Master Branch:
      MDL-18592-master

      Description

      I've written code to allow a teacher to assign students who have not responded to a Choice option.

      See discussion: http://moodle.org/mod/forum/discuss.php?d=118914

      Code and screenshots will be posted in the next day or so.

        Attachments

        1. choice_events.png
          choice_events.png
          49 kB
        2. install.txt
          2 kB
        3. selectfor.php
          13 kB
        4. selectfor.v2.0.php
          13 kB
        5. SelectForDemo.pdf
          409 kB

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              bgray Brian Gray
              Peer reviewer:
              cameron1729
              Integrator:
              Dan Poltawski
              Tester:
              Ryan Wyllie
              Participants:
              Component watchers:
              Dan Marsden, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              22 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                5/Dec/16