• Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 4.1.0
    • 4.0.2
    • Forum add-on
    • Hide

      This issue only needs to be tested in 1 device.

      Prerequisites

      1. This issue need to be tested in a Moodle 3.7 or higher.
      2. This issue should be tested after the app 4.0.2 is released, so MOBILE-4089 is also applied to the integration branch.

      Test online

      1. Login in master site as a student in the app.
      2. Go to MM Dev Testing Course > Forum > Forum with separate groups.
      3. Check that you see a group selector, but you can only select the groups you belong to.
      4. Check that the right discussions are displayed (you can compare it with the web version).
      5. Check that you can see the button to add new discussions.
      6. Go back to the course and open "Forum with visible groups".
      7. Check that you see a group selector, and you can select any group. Check that all participants is selected by default when opening the forum (this might change in the future due to MOBILE-4003).
      8. Check that the right discussions are displayed when you change groups (you can compare it with the web version).
      9. Check that you can only see the button to add new discussions in the groups you belong to. When you can't add a discussion in the group you should see a message below the group selector.
      10. You can repeat the tests using a teacher user. In this case, the teacher should be able to see all groups when using separate groups, and he should see the add new discussion button in all groups.

      Test prefetch

      1. Login in master site as a student in the app.
      2. Go to MM Dev Testing Course > Forum.
      3. Click the cloud icon at the top-right.
      4. Download the forums "Forum with visible groups" and "Forum with separate groups".
      5. Once downloaded, go offline.
      6. Open the "Forum with separate groups". Check that the data is loaded and no error is displayed.
      7. Change sort order. See that an error is displayed (we only prefetch the selected sort order).
      8. Go back to the course and open "Forum with visible groups". Check that the data is loaded and no error is displayed.
      9. Change sort order. See that an error is displayed (we only prefetch the selected sort order).
      10. Change the group. See that an error is displayed (we only prefetch All participants if the user can view it).

       

      Show
      This issue only needs to be tested in 1 device. Prerequisites This issue need to be tested in a Moodle 3.7 or higher. This issue should be tested after the app 4.0.2 is released, so MOBILE-4089 is also applied to the integration branch. Test online Login in master site as a student in the app. Go to MM Dev Testing Course > Forum > Forum with separate groups. Check that you see a group selector, but you can only select the groups you belong to. Check that the right discussions are displayed (you can compare it with the web version). Check that you can see the button to add new discussions. Go back to the course and open "Forum with visible groups". Check that you see a group selector, and you can select any group. Check that all participants is selected by default when opening the forum (this might change in the future due to MOBILE-4003 ). Check that the right discussions are displayed when you change groups (you can compare it with the web version). Check that you can only see the button to add new discussions in the groups you belong to. When you can't add a discussion in the group you should see a message below the group selector. You can repeat the tests using a teacher user. In this case, the teacher should be able to see all groups when using separate groups, and he should see the add new discussion button in all groups. Test prefetch Login in master site as a student in the app. Go to MM Dev Testing Course > Forum. Click the cloud icon at the top-right. Download the forums "Forum with visible groups" and "Forum with separate groups". Once downloaded, go offline. Open the "Forum with separate groups". Check that the data is loaded and no error is displayed. Change sort order. See that an error is displayed (we only prefetch the selected sort order). Go back to the course and open "Forum with visible groups". Check that the data is loaded and no error is displayed. Change sort order. See that an error is displayed (we only prefetch the selected sort order). Change the group. See that an error is displayed (we only prefetch All participants if the user can view it).  
    • MOODLE_400_STABLE
    • MOODLE_401_STABLE
    • Moodle App 4.1.0

      The "new" forum WebService (I think it was added in 3.7) supports groups, so we should display a group selector in forum if the WebService is available.

      Result of shaping:

      • We will display the group selector at the top, with a line divider at the top of the selector to differentiate it from the header.
      • Changing the group will perform a WS request (if not cached) to detect if the user can add a discussion in the selected group or not. This will remove the FAB and display an informative message if needed.
      • It can happen that a user posts a new discussion in a group that is not the group he's viewing right now, so he won't see the new discussion. We thought that, to solve that, we should always display a Toast when adding a new discussion:
        • If the forum has no groups or the user posted in all participants, it should just say something like: Discussion posted successfully.
        • If the user posted in a certain group, it should say something like: Discussion posted successfully in group "My awesome group". These texts need to be validated with UX writing team.
      • Before this patch, when downloading the forum we downloaded posts for all sort orders. We decided that now that we have groups we'll only download posts for the selected sort order, and only for All participants. If the user cannot view all participants (e.g. student in separate groups) we'll download the groups the user belongs to. 

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

              Created:
              Updated:
              Resolved:

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