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

Use modal forms for contacting DPO in privacy tool

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major Major
    • 3.11
    • 3.11
    • Forms Library
    • MOODLE_311_STABLE
    • MOODLE_311_STABLE
    • Hide

      Setup

      1. Login as admin
      2. Navigate to Users > Privacy and policies > Privacy settings in site administration
      3. Enable _Contact the privacy officer" and save changes
      4. Create a new user
      5. Log out

      Manual test

      1. Login as new user
      2. Select Profile from the user menu
      3. Under Privacy and policies press Contact the privacy officer
      4. Press Send
      5. Confirm the Message field is required
      6. Add a message
      7. Press Send
      8. Confirm you see Your request has been submitted to the privacy officer
      9. Select Profile from the user menu
      10. Under Privacy and policies press Data requests
      11. Confirm you see the new data request
      12. Press the Actions menu for the request and press Cancel request
      13. In the confirmation dialogue press Cancel
      14. Confirm the dialogue closes
      15. Press the Actions menu for the request and press Cancel request
      16. In the confirmation dialogue press Cancel request
      17. Confirm the page reloads
      18. Confirm the Status column of the request shows Cancelled

      Automated tests

      1. $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Contact the privacy officer"
        

      2. $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Manage my own data requests"
        

      Show
      Setup Login as admin Navigate to Users > Privacy and policies > Privacy settings in site administration Enable _Contact the privacy officer" and save changes Create a new user Log out Manual test Login as new user Select Profile from the user menu Under Privacy and policies press Contact the privacy officer Press Send Confirm the Message field is required Add a message Press Send Confirm you see Your request has been submitted to the privacy officer Select Profile from the user menu Under Privacy and policies press Data requests Confirm you see the new data request Press the Actions menu for the request and press Cancel request In the confirmation dialogue press Cancel Confirm the dialogue closes Press the Actions menu for the request and press Cancel request In the confirmation dialogue press Cancel request Confirm the page reloads Confirm the Status column of the request shows Cancelled Automated tests $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Contact the privacy officer" $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Manage my own data requests"

      Convert the "Contact DPO" form to the modal forms API from MDL-64554

      It's currently a form defined in a mustache template which is then rendered inside a modal - we can improve/cleanup by using the recently added modal forms API

      At the same time, it would be nice to improve the remainder (cancelling a request) of the `myrequestactions` module, converting to ES6

      I also found MDL-70962 while looking at this

            pholden Paul Holden
            pholden Paul Holden
            Glyn (Mathew) May Glyn (Mathew) May
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 20 minutes
                5h 20m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.