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

Search function in Nextcloud repository

    • MDL-84399-main
    • Hide

      Prerequisite

       

      The test requires a Nextcloud instance. If you do not have a Nextcloud at hand it can be run locally, i.e. MDL-76324  or by using the Instant trial

       

      Nextcloud

      1. Login as admin in Nextcloud
      2. Configure OAuth access for Moodle instance
      3. Create the following files and directories in Nextcloud 
        • test.txt
        • Folder_A
        • Folder_A/Folder_AA
        • Folder_A/Folder_AB
        • Folder_B
        • Folder_A/test_A.txt
        • Folder_A/Folder_AB/test_AB.txt
        • Folder_B/test_B.txt

      Moodle

      1. Login as admin in Moodle
      2. Configure Nextcloud repository instance with OAuth 2 Nextcloud service
      3. Enable Nextcloud repository

      Preparation

      1. Create a course
      2. Enrol a teacher in the course
      3. Login as the teacher

      Testing

      1. Access the course
      2. Add a File activity to the course
      3. Select the Nextcloud instance in the Filepicker
      4. Iterate through the following testcases

      Testcase 1

      1. Search for 'test'
      2. Expected results: test.txt test_AB.txt test_B.txt test_A.txt

      Testcase 2

      1. Search for 'txt'
      2. Expected results: test.txt test_AB.txt test_B.txt test_A.txt

      Testcase 3

      1. Search for 'test.txt'
      2. Expected results: test.txt

      Testcase 4

      1. Search for 'nothing'
      2. Expected results: no files

      Testcase 5

      1. Search for 'test_A'
      2. Expected results: " test_A.txt test_AB.txt

      Testcase 6

      1. Search for '*.txt'
      2. Expected results: no files
      Show
      Prerequisite   The test requires a Nextcloud instance. If you do not have a Nextcloud at hand it can be run locally, i.e. MDL-76324   or by using the Instant trial   Nextcloud Login as admin in Nextcloud Configure OAuth access for Moodle instance Create the following files and directories in Nextcloud  test.txt Folder_A Folder_A/Folder_AA Folder_A/Folder_AB Folder_B Folder_A/test_A.txt Folder_A/Folder_AB/test_AB.txt Folder_B/test_B.txt Moodle Login as admin in Moodle Configure Nextcloud repository instance with OAuth 2 Nextcloud service Enable Nextcloud repository Preparation Create a course Enrol a teacher in the course Login as the teacher Testing Access the course Add a File activity to the course Select the Nextcloud instance in the Filepicker Iterate through the following testcases Testcase 1 Search for 'test' Expected results: test.txt test_AB.txt test_B.txt test_A.txt Testcase 2 Search for 'txt' Expected results: test.txt test_AB.txt test_B.txt test_A.txt Testcase 3 Search for 'test.txt' Expected results:  test.txt Testcase 4 Search for 'nothing' Expected results: no files Testcase 5 Search for 'test_A' Expected results: " test_A.txt test_AB.txt Testcase 6 Search for '*.txt' Expected results: no files
    • Hide

      Code verified against automated checks.

      Checked MDL-84399 using repository: https://github.com/dpfahl-ms/moodle.git

      More information about this report

      Built on: Mon Jun 2 08:46:34 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-84399 using repository: https://github.com/dpfahl-ms/moodle.git main (0 errors / 0 warnings) [branch: MDL-84399-main | CI Job ] More information about this report Built on: Mon Jun 2 08:46:34 UTC 2025
    • 2
    • Team Hedgehogs 2025 Sprint 2.1, Team Hedgehogs 2025 Sprint 2.2

      The search field is momentarily disabled in the Nextcloud Repository since there is no search functionality implemented yet.

       

      This issue plans to implement a search function for specific files across all folders in the user's Nextcloud repository by using the SEARCH WebDav method. 

       

      for further details, see here https://www.rfc-editor.org/rfc/rfc5323

        1. image-2025-04-25-13-21-43-716.png
          66 kB
          Dennis Pfahl
        2. image-2025-04-25-13-22-10-935.png
          58 kB
          Dennis Pfahl
        3. image-2025-04-25-13-22-24-376.png
          78 kB
          Dennis Pfahl
        4. image-2025-04-25-13-22-52-377.png
          78 kB
          Dennis Pfahl
        5. image-2025-04-25-13-23-03-712.png
          60 kB
          Dennis Pfahl
        6. image-2025-04-25-13-37-48-027.png
          72 kB
          Dennis Pfahl

            abias Alexander Bias
            carlcosinus Dennis Pfahl
            Raquel Ortega Raquel Ortega
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

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

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