XMLWordPrintable

    • MOODLE_32_STABLE
    • MOODLE_32_STABLE
    • wip-MDL-55127_master
    • 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.

      Would be nice to add database entries to global search.

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

            devang2511 Devang Gaur
            dmonllao David Monllaó
            David Monllaó David Monllaó
            Dan Poltawski Dan Poltawski
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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