XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Run
      vendor/bin/phpunit mod/data/tests/search_test.php

      OR
      1. Create user1 (teacher), user2(student), user3(student). Create course1. Enrol user1,2,3 into course1.
      2. Login as user1 (recommeded) or Admin.

      3. Create a database activity. Prefer to set field with types : ['text', 'textarea', 'menu', 'radiobutton', 'checkbox', 'multimenu', 'url']

      Set minimum 2 fields. ( Recommended to set 4 fields)

      4. Add entries as user1, user2, user3.

      Search for the content of the entries ( try search for content you added for text input field.)
      The top 3 prioritised fields values will be displayed in the search results separately (the first one is the title) and all the other fields contents will appear together after the top 3

      5. Try the same different combos of fields with different database instances.

      Case with User Groups :
      6. Create group1 and group2 in course1. Change database activity visibility settings to 'seperate groups'
      7. Add user1,user2 to group1, user3 to group2.
      8. Repeat step 2,3,4.

      9. Check that user1(group1, TEACHER) can view entries added by both user2(group1) and user3(group2).

      10. Check that user2 cannot view entries by user3 and vice versa.

      Show
      Run vendor/bin/phpunit mod/data/tests/search_test.php OR 1. Create user1 (teacher), user2(student), user3(student). Create course1. Enrol user1,2,3 into course1. 2. Login as user1 (recommeded) or Admin. 3. Create a database activity. Prefer to set field with types : ['text', 'textarea', 'menu', 'radiobutton', 'checkbox', 'multimenu', 'url'] Set minimum 2 fields. ( Recommended to set 4 fields) 4. Add entries as user1, user2, user3. Search for the content of the entries ( try search for content you added for text input field.) The top 3 prioritised fields values will be displayed in the search results separately (the first one is the title) and all the other fields contents will appear together after the top 3 5. Try the same different combos of fields with different database instances. Case with User Groups : 6. Create group1 and group2 in course1. Change database activity visibility settings to 'seperate groups' 7. Add user1,user2 to group1, user3 to group2. 8. Repeat step 2,3,4. 9. Check that user1(group1, TEACHER) can view entries added by both user2(group1) and user3(group2). 10. Check that user2 cannot view entries by user3 and vice versa.
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-55127_master

      Description

      Would be nice to add database entries to global search.

      This search area is part of Devang Gaur, our GSOC search master, proposal.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                devang2511 Devang Gaur
                Reporter:
                dmonllao David Monllaó
                Peer reviewer:
                David Monllaó
                Integrator:
                Dan Poltawski
                Tester:
                Rajesh Taneja
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

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