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

Unable to scroll beyond 50 conversations in Messages tool

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • Hide
      1. Download & run 69883.php (creates 100 users, and a conversation with each for the admin user)
      2. Login as admin
      3. Press Toggle messaging drawer
      4. Expand Private (100)
      5. Scroll down and press See all
      6. On following page, expand Private (100)
      7. Scroll to bottom of list
      8. Confirm that reaching the bottom of the list lazy loads the next 50 conversations
      9. Click on some of the new conversations, confirm they load
      Show
      Download & run 69883.php (creates 100 users, and a conversation with each for the admin user) Login as admin Press Toggle messaging drawer Expand Private (100) Scroll down and press See all On following page, expand Private (100) Scroll to bottom of list Confirm that reaching the bottom of the list lazy loads the next 50 conversations Click on some of the new conversations, confirm they load

      DESCRIPTION

      In the Messages tool, it is only possible to scroll through the most recent 50 conversations. 

      In the replication steps below we set up a course with a teacher and 80 students.  For ease of replication, the steps have the teacher initiating a conversation with each student, but imagine the scenario where the students are initiating the conversation.  If more than 50 students send a message to the teacher, the teacher is unable to access all of those unread conversations.  It is possible to search for users to access older conversations, but the teacher has no way of knowing which conversations they need to see.  If a teacher is leading multiple courses with potentially hundreds of unique students enrolled among those courses, this limit of 50 conversations makes it nearly impossible for the teacher to manage conversations with all of his/her students.

      STEPS TO REPLICATE
      NOTE: Instructions use the attached [^bulk_user_core.csv] file.  If you choose to create your own users/courses you can select whatever names you desire.

      1. Create a new course with the shortname test107.
      2. Create a new user, teacher1, and enroll the user into test107 as a teacher.
      3. Go to Site administration > Users > Upload users and use the attached  [^bulk_user_core.csv] to create a bunch of users (at least 60) and enroll them as students in the test107 course.
      4. Login as teacher1.  Click on the arrow next to your name and select Messages.
      5. Search for Last1 to find the first student and send a message.
      6. Search for Last2 to find the next student and send a message.
      7. Continue to repeat this process through the first ten students.
      8. Exit the Search.  Observe that a conversation for each of the first ten students is listed under Private and the count of private conversations is 10.  The most recent conversations are listed first so the last conversation in the list is for Student Last1.
      9. Use the search tool to locate the 11th student, etc. and send a message to each user through Student Last55.
      10. Exit the Messages tool. (This step is necessary.  If you skip this step, you will be able to scroll through all conversations so long as you remain in Messages, but the list will be limited to 50 once you exit and return.)
      11. Return to the Messages tool.

      OBSERVED BEHAVIOR:
      The number next to Private indicates that there are 55 private conversations.   Scroll to the bottom of the list and find that the last conversation listed is for Student Last6.  The conversations for students 1-5 are not visible and there is no paging to gain access to these conversations. 

      EXPECTED BEHAVIOR:
      The number next to Private indicates that there are 55 private conversations.  The user is able to scroll through the full list of conversations.

      REPLICATION LOCATIONS
      Replicated on sandbox.moodledemo.net (3.9.2)
      Replicated on 3.8.3

      ADDITIONAL INVESTIGATION NOTES
      The problem seems to only be when accessing the full page Messages tool (/message/index.php).  When using the Messaging drawer, the first 50 conversations are loaded, but if you scroll further, additional conversations are loaded.  Ironically, there is a "See all" link at the bottom on the messaging drawer which opens the full tool were you cannot see all conversations. 

            pholden Paul Holden
            brian.winstead Brian Winstead
            Mikel Martín Corrales Mikel Martín Corrales
            Jun Pataleta Jun Pataleta
            Janelle Barcega Janelle Barcega
            Votes:
            7 Vote for this issue
            Watchers:
            24 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 45 minutes
                4h 45m

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