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

Support the "Post a copy to all groups" option when a teacher is creating a new discussion

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.6.1
    • Fix Version/s: 3.7.0
    • Component/s: Forum add-on
    • Labels:
    • Testing Instructions:
      Hide

      Test on any device.

      Post to all groups online

      1. Log in a 3.7 site as a teacher.
      2. Go to a forum with groups and click the new discussion button.
      3. Enter some subject and message.
      4. Expand the "Advanced" fields  and toggle "Post a copy to all groups".
      5. Check the "Group" field is disabled when "Post a copy to all groups" is checked.
      6. Upload and attachment and click "Post to forum".
      7. Check that a new discussion is created for each group, with the same subject, message and attachment.

      Post to all groups offline

      1. Log in a 3.7 site as a teacher.
      2. Go to a forum with groups and click the new discussion button.
      3. Switch to offline.
      4. Enter some subject and message.
      5. Expand the "Advanced" fields  and toggle "Post a copy to all groups".
      6. Upload and attachment and click "Post to forum".
      7. Check that an offline discussion has been created with group "All groups".
      8. Open the new offline discussion and check that the "Post a copy to all groups" checkbox is checked.
      9. Return to the list of discussions and switch to online.
      10. Pull to refresh to sync the new discussion.
      11. Check that the offline discussions has been created online for each group, with the same subject, message and attachment.

      Only one group

      1. Log in a 3.7 site as a teacher.
      2. Go to a forum with only one group and click the new discussion button.
      3. Enter some subject and message.
      4. Expand the "Advanced" fields and check the "Post a copy to all groups" is NOT displayed.
      5. Upload and attachment and click "Post to forum".
      6. Check that a new discussion is created for "All participants", with the same subject, message and attachment.
      7. Switch to offline and add a new discussions with the same content.
      8. Switch to online, sync the discussion and check the discussion is created correctly.

       No groups

      1. Log in a 3.7 site as a teacher.
      2. Go to a forum with no groups and click the new discussion button.
      3. Enter some subject and message.
      4. Expand the "Advanced" fields and check the "Post a copy to all groups" is NOT displayed.
      5. Upload and attachment and click "Post to forum".
      6. Check that a new discussion is created with the same subject, message and attachment.
      7. Switch to offline and add a new discussions with the same content.
      8. Switch to online, sync the discussion and check the discussion is created correctly.

       No permission

      1. Log in a 3.7 site as a student.
      2. Go to a forum with groups where the user is member of all groups.
      3. Click the new discussion button.
      4. Enter some subject and message.
      5. Expand the "Advanced" fields and check the "Post a copy to all groups" is NOT displayed.

       

      Show
      Test on any device. Post to all groups online Log in a 3.7 site as a teacher. Go to a forum with groups and click the new discussion button. Enter some subject and message. Expand the "Advanced" fields  and toggle "Post a copy to all groups". Check the "Group" field is disabled when "Post a copy to all groups" is checked. Upload and attachment and click "Post to forum". Check that a new discussion is created for each group, with the same subject, message and attachment. Post to all groups offline Log in a 3.7 site as a teacher. Go to a forum with groups and click the new discussion button. Switch to offline. Enter some subject and message. Expand the "Advanced" fields  and toggle "Post a copy to all groups". Upload and attachment and click "Post to forum". Check that an offline discussion has been created with group "All groups". Open the new offline discussion and check that the "Post a copy to all groups" checkbox is checked. Return to the list of discussions and switch to online. Pull to refresh to sync the new discussion. Check that the offline discussions has been created online for each group, with the same subject, message and attachment. Only one group Log in a 3.7 site as a teacher. Go to a forum with only one group and click the new discussion button. Enter some subject and message. Expand the "Advanced" fields and check the "Post a copy to all groups" is NOT displayed. Upload and attachment and click "Post to forum". Check that a new discussion is created for "All participants", with the same subject, message and attachment. Switch to offline and add a new discussions with the same content. Switch to online, sync the discussion and check the discussion is created correctly.   No groups Log in a 3.7 site as a teacher. Go to a forum with no groups and click the new discussion button. Enter some subject and message. Expand the "Advanced" fields and check the "Post a copy to all groups" is NOT displayed. Upload and attachment and click "Post to forum". Check that a new discussion is created with the same subject, message and attachment. Switch to offline and add a new discussions with the same content. Switch to online, sync the discussion and check the discussion is created correctly.   No permission Log in a 3.7 site as a student. Go to a forum with groups where the user is member of all groups. Click the new discussion button. Enter some subject and message. Expand the "Advanced" fields and check the "Post a copy to all groups" is NOT displayed.  
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 3.7.0

      Description

      Now that we have a WS for retrieving the user capabilities in a course, we should be able to display this specific option that will make the app to create the same post for different groups.

      Note that it will require the WS to be called one time per group (just changing the groupid parameter)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                albert.gasset Albert Gasset
                Reporter:
                jleyva Juan Leyva
                Peer reviewer:
                Dani Palou
                Integrator:
                Juan Leyva
                Tester:
                Dani Palou
                Participants:
                Component watchers:
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  7/Jun/19