Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-17385 Moodle 4.2 QA
  3. MDLQA-17802

CLONE - A teacher can annotate a Nextcloud doc submitted as a controlled link


      This test requires:

      • A Nextcloud test site, such as a Nextcloud instant demo site (valid for 60 minutes) from Try Nextcloud, and 3 Nextcloud accounts, one for the site admin, one for the teacher and one for the student
      • A Moodle test site with an OAuth 2 Nextcloud service and the Nextcloud repository enabled.

      The QA testing site may be used for running this test, though you'll need admin access (see the QA testing guide for details of how to request admin access) in order to set up the Nextcloud service and enable the Nextcloud repository. Begin just after the hourly reset to give yourself plenty of time to complete the test! Alternatively, you can use your own Moodle test site.

      Note: It is important to completely log out of all Nextcloud accounts between separate parts of the test.

      1. Log in as an admin and go to Site administration > Server > OAuth 2 services.
      2. Connect the account to a system account.
      3. Enable the Nextcloud repository, making sure it is connected to the Nextcloud service.
      4. Set the supported files to Internal and External.
      5. Edit the teacher role to allow editothersubmission (capability not enabled by default).
      6. Log in as a teacher and create an assignment requiring a file upload.
      7. Log in as a student, select a document from your Nextcloud account and select 'Create an access controlled link to the file'.
      8. Log out of all Nextcloud accounts.
      9. Log in as the teacher again and access the assignment. Click on the link. Verify that you are prompted to log in to your Nextcloud account.
      10. Log in with the teacher Nextcloud account. Verify you can edit the student's document.
      11. Mount Nextcloud on your local machine, using the teacher Nextcloud account.
      12. On your machine, open the document that has been shared with you - you will find it in the "Moodlefiles" directory.
      13. Add a few comments to the student's document.
      14. Log out of all Nextcloud accounts.
      15. Log in as the student, access your assignment and verify you see the teacher's comments in the returned Nextcloud doc.
      16. As the student, go to your personal Nextcloud and verify the original document has not been altered.

        1. step_13.png
          64 kB
        2. step_15.png
          85 kB
        3. step_16.png
          42 kB
        4. step_7.png
          260 kB
        5. step_9_10.png
          72 kB

            huongn@moodle.com Huong Nguyen
            0 Vote for this issue
            1 Start watching this issue


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