Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-1501

Allow searching participants

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • DEV backlog
    • 3.8.0
    • Participants add-on
    • Hide

      This issue only needs to be tested in 1 device.

      1. In the app, login in a master site with MDL-67004 applied.
      2. Open a course that has several users enrolled and go to the Participants tab. Check that you see a search button in the top right.
      3. Click the button. Check that a search box appears.
      4. Search some text that you know it won't be found. Check that you see the message "No results".
      5. Click the "X" button in the search box. Check that you see all the participants again.
      6. Now search something that you know it will be found. Check that you see the list of found users and the searched text is highlighted. Check that you can view the profile of the found users by clicking them.
      7. Click the search button on the top right. Check that the search box disappears and you see all the participants again.
      8. Now login in a 3.7 or older site.
      9. Open a course and go to the Participants tab. Check that you do not see a search button in the top right.
      Show
      This issue only needs to be tested in 1 device. In the app, login in a master site with  MDL-67004 applied. Open a course that has several users enrolled and go to the Participants tab. Check that you see a search button in the top right. Click the button. Check that a search box appears. Search some text that you know it won't be found. Check that you see the message "No results". Click the "X" button in the search box. Check that you see all the participants again. Now search something that you know it will be found. Check that you see the list of found users and the searched text is highlighted. Check that you can view the profile of the found users by clicking them. Click the search button on the top right. Check that the search box disappears and you see all the participants again. Now login in a 3.7 or older site. Open a course and go to the Participants tab. Check that you do not see a search button in the top right.
    • MOODLE_38_STABLE
    • Moodle App 3.8.0

    Description

      We should allow filtering participants. The problem is pagination (infinite loading).

      We can do a single WS call to get all the users (without pages) and then iterate over them to get the ones we want. The problem is that if the user is offline he won't be able to use it even if the participants are cached per page. Also, there can be incoherencies between the results of seeing it using search and seeing it per page if a user changed its name or picture.

      Another option is to retrieve the participants per page. I did a test and it's REALLY slow for courses with a lot of students. Let's say a WS call takes 5 seconds (in real cases can be more), it would take 50 seconds to load 500 students.

      Also, in courses with a lot of students it can be slow to iterate over all of them to find the ones we're looking for, maybe it would be better to find a WS to find them (like with Contacts, but searching only in the course).

      Attachments

        Issue Links

          Activity

            People

              dpalou Dani Palou
              dpalou Dani Palou
              Pau Ferrer Pau Ferrer
              Juan Leyva Juan Leyva
              Isabel Renedo Rouco Isabel Renedo Rouco
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                20/Dec/19