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

Sort forum discussions

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor Minor
    • 3.7.0
    • 3.6.1
    • Forum add-on
    • Hide

      Test on any device.

      Test 1: Sort discussions

      1. Log in to a 3.7 in the app.
      2. Go to a forum with some discussions. Check there is a button on top of the list of discussions with text "By last post in descending order" (this is the default sort order, it could be different if it was changed in web).
      3. Click the button. A modal displayed wit the list of available sort orders with the current sort order highlighted. Select a sort order and check the list of discussions is reloaded with the new order.
      4. Check the context menu has a new item called "Sort".
      5. Click the item. The sort order selector modal is displayed. Select a sort order and check the list of discussions is reloaded with the new order.
      6. Check that all sort orders work the same as in web.

      Test 2: Preference.

      1. In web (3.7 site), got to a forum and sort the list of discussions by number of replies in descending order.
      2. In the app, go to the forum and refresh the list of discussions.
      3. Check that sort order is changed to "By number of replies in descending order" (the order set in step 1).
      4. Change the sort order order in the app.
      5. In web, go to the forum using links (do not refresh the page) and check the order have changed to the order set in the previous step.
      6. Switch the app to offline.
      7. Refresh the list of discussions and check that the sort order is kept the same.
      8. Change the sort order (it will fail if the order is not in cache).
      9. Close and open the app and go to a forum.
      10. Check that the sort order is the same as selected in step 8.
      11. Switch the app to online and wait for 5 minutes.
      12. In web, go to the forum using links (do not refresh the page) and check the order have changed to the order set in step 8.

       Test 3: Prefetch

      1. In web (3.7 site), go to a forum and sort the discussions by number of replies in descending order.
      2. In the app, log in to the site  (remove it first if it was logged before to start with an empty cache).
      3. Go to course and enable "Show download options" in the context menu.
      4. Download a forum with some discussions and switch to offline.
      5. Go to the forum and check the list of discussions is loaded without errors (the first 2 pages are prefetched). Check the sort order is "By number of replies in descending order".
      6. Change the sort order and check the list of discussions is reloaded without errors (the first 2 pages are prefetched).. Check all sot orders.

      Test 4: Older sites

      1. In the app, log in to a 3.6 site.
      2. Go to a forum.
      3. Check the sort order button and context menu item are not displayed.
      4. Check that the list  of discussions is sorted by last post in descending order.
      5. Prefetch the forum an check no error is displayed.
      Show
      Test on any device. Test 1: Sort discussions Log in to a 3.7 in the app. Go to a forum with some discussions. Check there is a button on top of the list of discussions with text "By last post in descending order" (this is the default sort order, it could be different if it was changed in web). Click the button. A modal displayed wit the list of available sort orders with the current sort order highlighted. Select a sort order and check the list of discussions is reloaded with the new order. Check the context menu has a new item called "Sort". Click the item. The sort order selector modal is displayed. Select a sort order and check the list of discussions is reloaded with the new order. Check that all sort orders work the same as in web. Test 2: Preference. In web (3.7 site), got to a forum and sort the list of discussions by number of replies in descending order. In the app, go to the forum and refresh the list of discussions. Check that sort order is changed to "By number of replies in descending order" (the order set in step 1). Change the sort order order in the app. In web, go to the forum using links (do not refresh the page) and check the order have changed to the order set in the previous step. Switch the app to offline. Refresh the list of discussions and check that the sort order is kept the same. Change the sort order (it will fail if the order is not in cache). Close and open the app and go to a forum. Check that the sort order is the same as selected in step 8. Switch the app to online and wait for 5 minutes. In web, go to the forum using links (do not refresh the page) and check the order have changed to the order set in step 8.  Test 3: Prefetch In web (3.7 site), go to a forum and sort the discussions by number of replies in descending order. In the app, log in to the site  (remove it first if it was logged before to start with an empty cache). Go to course and enable "Show download options" in the context menu. Download a forum with some discussions and switch to offline. Go to the forum and check the list of discussions is loaded without errors (the first 2 pages are prefetched). Check the sort order is "By number of replies in descending order". Change the sort order and check the list of discussions is reloaded without errors (the first 2 pages are prefetched).. Check all sot orders. Test 4: Older sites In the app, log in to a 3.6 site. Go to a forum. Check the sort order button and context menu item are not displayed. Check that the list  of discussions is sorted by last post in descending order. Prefetch the forum an check no error is displayed.
    • MOODLE_36_STABLE
    • MOODLE_37_STABLE
    • Moodle App 3.7.0

      Implement MDL-65071 for the app.

            albert.gasset Albert Gasset
            albert.gasset Albert Gasset
            Dani Palou Dani Palou
            Juan Leyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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