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

After opening a course, the WS mod_forum_get_forums_by_courses is called even if there are no forums with tracking enabled

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor Minor
    • 4.4.0
    • 4.3.0
    • Forum add-on
    • Hide
      1. In a 4.4 site, create a course with one or more forums and all of them have tracking disabled.
      2. In the app, login in the site.
      3. Open the network inspector and open the course. Check that mod_forum_get_forums_by_courses or core_user_get_users_by_field are NOT called.
      4. In browser, enable tracking in one forum.
      5. As the student in browser, go to your profile > Forum preferences and disable tracking.
      6. In the app, leave the course, go to Preferences and click the Synchronize button to invalidate the cache. 
      7. Open the course again. Check that core_user_get_users_by_field is called with the student ID, but mod_forum_get_forums_by_courses is NOT called.
      8. As the student in browser, go to your profile > Forum preferences and enable tracking.
      9. In the app, leave the course, go to Preferences and click the Synchronize button to invalidate the cache.
      10. Open the course again. Check that both core_user_get_users_by_field and mod_forum_get_forums_by_courses are called now.
      11. In a 4.3 or older site, the app should behave as it used to: it shouldn't call core_user_get_users_by_field and it will always call mod_forum_get_forums_by_courses.
      Show
      In a 4.4 site, create a course with one or more forums and all of them have tracking disabled. In the app, login in the site. Open the network inspector and open the course. Check that mod_forum_get_forums_by_courses or core_user_get_users_by_field are NOT called. In browser, enable tracking in one forum. As the student in browser, go to your profile > Forum preferences and disable tracking. In the app, leave the course, go to Preferences and click the Synchronize button to invalidate the cache.  Open the course again. Check that core_user_get_users_by_field is called with the student ID, but mod_forum_get_forums_by_courses is NOT called. As the student in browser, go to your profile > Forum preferences and enable tracking. In the app, leave the course, go to Preferences and click the Synchronize button to invalidate the cache. Open the course again. Check that both core_user_get_users_by_field and mod_forum_get_forums_by_courses are called now. In a 4.3 or older site, the app should behave as it used to: it shouldn't call core_user_get_users_by_field and it will always call mod_forum_get_forums_by_courses.
    • MOODLE_403_STABLE
    • MOODLE_404_STABLE
    • Moodle Apps - 2024 i1.2, Moodle Apps - 2024 i1.3, Moodle Apps - 2024 i1.4

      This request is used to calculate the number of unread posts. Thanks to changes done in MDL-81132, now we're able to know if forum has tracking or not before calling this WwebService.

            dpalou Dani Palou
            jleyva Juan Leyva
            Alfonso Salces Alfonso Salces
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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