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

Messaging: Allow creation of group conversations from the group edit page

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6
    • Fix Version/s: 3.6
    • Component/s: Groups, Messages
    • Labels:
    • Testing Instructions:
      Hide

      Setup

      1. Login as admin.
      2. Create 1 new course.
        1. Course 1.
      3. Create 1  new user.
        1. teacher1.
      4. Enrol teacher1 as a teacher to the 'Course 1'.
      5. Make sure that the role teacher has the capability moodle/course:creategroupconversations.
        1. You can do that going to page Permissions in Course.
        2. This page is in Dashboard/Courses/Course 1/Users/Permissions
        3. If the role teacher doesn't have this capability then you have to add the role to this capability.

      Testing scenario 1: Create a new group and enable group messaging

      1. Login as teacher1.
      2. Go to the new course, Course 1.
      3. Go to Groups page.
      4. Create a new group.
        1. Named as Group1.
        2. Enable Group messaging option selecting YES value.
      5. Expected Result: The new group was created without errors. And go to the new group in Edit group settings and check that the Group messaging option has the value YES.

      Testing scenario 2: Disable group messaging in an existing group.

      1. Login as teacher1.
      2. Go to the new course, Course 1.
      3. Go to Groups page.
      4. Edit settings of Group 1 which were created in the testing scenario 1.
      5. Disable  Group messaging option selecting NO value. And Save changes.
      6. Expected Result: The group was updated without errors. And go to the Group 1 in Edit group settings and check that the Group messaging option has the value NO.

      Testing scenario 3:  Hide group messaging option if the teacher doesn't have  the capability creategroupconversation

      1. Login as admin.
      2. Go to Course 1.
      3. Go to Permissions in Course page.
      4. Go to capability moodle/course:creategroupconversations
      5. Remove the role teacher to remove the capability to this role.
      6. Logout.
      7. Login as teacher1
      8. Go to Course 1.
      9. Go to Groups page.
      10. Edit settings of Group 1.
      11. Expected Result: Group messaging option doesn't show in the form.
      12. Go to Groups page.
      13. Create a new group.
      14. Expected Result: Group messaging option doesn't show in the form.

      There are other scenarios about the name of the conversation which are covered by PHPUnit tests.

       

      Show
      Setup Login as admin. Create 1 new course. Course 1. Create 1  new user. teacher1. Enrol teacher1 as a  teacher  to the 'Course 1'. Make sure that the role teacher  has the capability moodle/course:creategroupconversations. You can do that going to page Permissions in Course. This page is in Dashboard/Courses/Course 1/Users/Permissions If the role teacher doesn't have this capability then you have to add the role to this capability. Testing scenario 1: Create a new group and enable group messaging Login as teacher1. Go to the new course, Course 1. Go to Groups page. Create a new group. Named as Group1. Enable Group messaging option selecting YES value. Expected Result:  The new group was created without errors. And go to the new group in Edit group settings and check that the Group messaging option has the value YES . Testing scenario 2: Disable group messaging in an existing group. Login as teacher1. Go to the new course, Course 1. Go to Groups page. Edit settings of Group 1 which were created in the testing scenario 1. Disable   Group messaging option selecting NO value. And Save changes. Expected Result:  The group was updated without errors. And go to the Group 1 in Edit group settings and check that the Group messaging option has the value NO . Testing scenario 3:  Hide group messaging option if the teacher doesn't have  the capability creategroupconversation Login as admin. Go to Course 1. Go to Permissions in Course page. Go to capability moodle/course:creategroupconversations Remove the role teacher to remove the capability to this role. Logout. Login as teacher1 Go to Course 1. Go to Groups page. Edit settings of Group 1. Expected Result:   Group messaging option doesn't show in the form. Go to Groups page. Create a new group. Expected Result:   Group messaging option doesn't show in the form. There are other scenarios about the name of the conversation which are covered by PHPUnit tests.  
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-63280_master

      Description

      Scope:

      • Introduce an 'Add as conversation' toggle on group edit form which creates group conversation (or flags group for future conversation creation via adhoc/scheduled tasks - this is up for discussion but as soon as possible would be the preference). 
      • Groups and their conversation must be linked somehow  to facilitate synchronisation tasks (see MDL-63281). Keep in mind we may very well have conversations which are NOT linked to groups, as well as conversations which may be linked to other things in Moodle - design should be flexible enough to accommodate these.
        • The  [component, context, itemid] idea perhaps seems reasonable as we've used this elsewhere.
      • This issue should add to / extend the relevant non-search internal APIs (data_for_messagearea_conversations(), others?)  and web services such that we include the required metadata about the conversation in any calls made to fetch it.
        This DOES NOT include search APIs - see MDL-63282 for that.
        This data may include:
        • Information about what the conversation is linked to (in as generic a way as possible) which, in our case, needs to include:
          • Course name
          • Group name
        • Time of most recent message
        • Unread count for the conversation

      Out of scope:

      • Synchronisation of groups/group-conversations members (see MDL-63281 for this)

        Attachments

        1. 1.PNG
          1.PNG
          57 kB
        2. 2.PNG
          2.PNG
          35 kB
        3. image-2018-10-10-12-59-54-330.png
          image-2018-10-10-12-59-54-330.png
          44 kB
        4. image-2018-10-10-13-00-09-891.png
          image-2018-10-10-13-00-09-891.png
          44 kB
        5. Screen Shot 2018-09-27 at 06.08.36.png
          Screen Shot 2018-09-27 at 06.08.36.png
          134 kB
        6. Screen Shot 2018-09-27 at 06.08.46.png
          Screen Shot 2018-09-27 at 06.08.46.png
          65 kB
        7. Screen Shot 2018-09-27 at 06.08.57.png
          Screen Shot 2018-09-27 at 06.08.57.png
          99 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/18

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 week, 2 days
                  1w 2d
                  Remaining:
                  0m
                  Logged:
                  Time Not Required
                  30m