Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.8
-
MOODLE_38_STABLE
-
MOODLE_38_STABLE
-
MDL-66481-master-6 -
Hide
Setup
- A course with a teacher (let's call this t1) and at least 3 students. (11 course participants might be good so that we'll have more than 100 discussions)
- Two groups A and B. Assign a group picture for group A. Assign a relatively long group name for group B (more than 30 characters).
- Assign at least one student per group (let's say s1's in group A, s2's in group B, while s3 and the rest are not in any groups)
- 2 forums (f1 and f2), with f1's Group mode set to "Visible groups" and it's subscription mode set to optional. On the other hand, set f2's subscription mode to disabled.
- Run the attached script makediscussions.php
to generate discussions for each user in each of the forums.
Forum tracking
- Log in as s1 and edit s1's forum preference and set the "Forum tracking" preference to "Yes: highlight new posts for me"
- Go to forum f1
- Check the Replies column.
- Confirm that you see a badge number beside the number of replies.
- Hover over the badge
- Confirm that the tooltip indicates the number of unread posts.
- Click on the badge.
- Confirm that you are redirected to the discussion page with the unread posts highlighted.
- Go back to the discussion list.
- Click on the menu on the discussion that you just read.
- Confirm that there's no "Mark as read" menu item
- Click on the menu on one of the discussions with unread posts.
- Confirm that you see a "Mark as read" menu item
- Click "Mark as read" option
- Confirm that the unread badge for the discussion that you marked as read has disappeared.
- Confirm that the "Mark as read" menu item on that discussion's menu has also disappeared.
- Click on the check icon on the "Replies" column header to mark all the discussions in the forum as read.
- Confirm that all the discussions have been marked as read
Groups
- Still on forum 1, set the "Visible groups" selector to "All participants"
- Check the contents of the group column.
- Confirm that group A is rendered with its name and group picture.
- Confirm that group B is rendered with a generic default picture and that its name has been truncated to 30 characters or less.
- Confirm that discussions without groups are simply blank.
- Go to forum 2.
- Confirm that there is no group column.
Started by and Last post columns
- Check the "Started by" column.
- Confirm that you see the profile pic and full name of the discussion starter.
- Confirm that underneath the discussion starter's name, you see the date the discussion was created.
- Check the Last post column
- Confirm that you see the date of the last reply to the discussion in month and day format.
- Hover over the date.
- Confirm that you see a tooltip showing the full date of that last post date.
Discussion subscription
- Open the menu of a discussion in f1.
- Confirm that you see a "Subscribe" menu item.
- Click on the "Subscribe" menu item.
- Confirm that you see a "Subscribed" label under the discussion name.
- Refresh the page.
- Confirm that the "Subscribed" label remains.
- Open the discussion's action menu again.
- Confirm that you have the option to unsubscribe from the discussion.
- Click "Unsubscribe from this discussion"
- Confirm that the "Subscribed" label disappears.
- Refresh the page.
- Confirm that the "Subscribed" remains undisplayed.
- Open the discussion's action menu again.
- Confirm that you have the option to subscribe from the discussion.
- Go to the forum f2.
- Open the action menu of the discussions.
- Confirm that there's no option to subscribe/unsubscribe to the discussions in f2.
Discussion subscription within the discussion
- Go to one of the discussions.
- Use any discussion view except for modern (nested would do, subscription toggle for the modern view will be covered by
MDL-66477). - Confirm that the old "Subscribe" link is now an item in the discussion settings dropdown.
- Toggle the "Subscribe" action menu item.
- Confirm that you get a notification that you have been subscribed/unsubscribed from the discussion.
- Open the discussion settings menu.
- Confirm that the subscribe action menu item's label text has been updated appropriately as well.
- Go to one of the discussions in the forum f2.
- Open discussion settings menu.
- Confirm that there's no option to subscribe/unsubscribe to the discussion.
Starring discussions
- Unstar/star the discussions using the star icon.
- Confirm that you can successfully Unstar/Star discussion using this method.
- Unstar/star the discussions using the discussion's action menu.
- Confirm that you can successfully Unstar/Star discussion using this method.
Locking discussions
- Log in as a teacher t1 and go to forum f1.
- Open the action menu of one of the discussions.
- Confirm that you are presented with an option to lock/unlock discussions.
- Lock a discussion.
- Confirm that you see a label under the discussion name indicating that the discussion has been locked.
- Refresh the discussions list page.
- Confirm that the "Locked" label for that discussion remains.
- Unlock the discussion.
- Confirm that the "Locked" label disappears.
- Refresh the discussions list page.
- Confirm that the "Locked" label for that discussion remains undisplayed.
Pinning discussions
- Open the action menu of one of the discussions.
- Confirm that you are presented with an option to pin/unpin discussions.
- Pin a discussion.
- Confirm that you see an icon on the first column of the table for that discussion indicating that the discussion has been pinned
- Unpin the discussion.
- Confirm that the "Pinned" icon disappears.
Timed discussions
- Still as a teacher, create the following discussions in forum f1 with the following settings:
Timed discussion Display period 1 Display start in the past
Display end in the future2 Display start in the past
Display end not set.3 Display start not set
Display end in the past4 Display start not set
Display end in the future5 Display start in the future
Display end not set - Check these discussions in the discussions list table.
- Confirm that all of these discussions have a "Timed" label beneath the discussion name.
- Click on the "Timed" label.
- Confirm that a popover shows up.
- Check the content of the popover for the timed discussions you created.
- Confirm the following display:
Timed discussion Display 1 Display start shown
Display end shown
Visible to all users2 Display start shown
Display end not shown.
Visible to all users3 Display start not shown
Display end shown
Hidden from students4 Display start not shown
Display end shown
Visible to all users5 Display start shown
Display end not shown
Hidden from students - Log in as a student
- Go to the forum f1.
- Confirm that you see the timed discussions 1, 2, and 4 on the list.
- Confirm that you don't see the "Timed" label.
- Confirm that you see the timed discussions 3 and 5 on the list.
Long discussion names
- Create a discussion with a relatively long subject. (greater than 100 characters)
- Go to the discussions list.
- Confirm that the discussion's name is shortened to 100 characters or less.
- Hover over the discussion name.
- Confirm that the tooltip shows the whole discussion name.
Discussion sorting and pagination
- Pin about 3 discussions
- Star about 3 discussions
- Sort the discussions list by clicking on the column headers.
- Confirm the following behaviours:
- the discussions are sorted according to that column.
- the pinned discussions are still shown on the top followed by the starred discussions.
- the pinned discussions and starred discussions are ordered according to the sorted column
- the discussions can be sorted in ascending or descending order
- going to the other pages of the discussion list retains the column sorting that you selected.
Sorting by discussion starter with a different fullnamedisplay setting
- Go to "Site administration / Users / Permissions / User policies"
- Set the fullnamedisplay setting to "lastname firstname"
- Save the changes.
- Go to f1.
- Confirm that the discussion starter names are shown in the "lastname firstname" format.
- Sort the discussions list by the discussion starter.
- Confirm that the discussions are sorted by the discussion starter's last name.
- Set the fullnamedisplay setting to "firstname lastname"
- Go back to f1 and sort the discussions by the discussion starter.
- Confirm that the discussions are sorted by the discussion starter's first name.
ShowSetup A course with a teacher (let's call this t1) and at least 3 students. (11 course participants might be good so that we'll have more than 100 discussions) Two groups A and B. Assign a group picture for group A. Assign a relatively long group name for group B (more than 30 characters). Assign at least one student per group (let's say s1's in group A, s2's in group B, while s3 and the rest are not in any groups) 2 forums (f1 and f2), with f1's Group mode set to "Visible groups" and it's subscription mode set to optional. On the other hand, set f2's subscription mode to disabled. Run the attached script makediscussions.php to generate discussions for each user in each of the forums. Forum tracking Log in as s1 and edit s1's forum preference and set the " Forum tracking " preference to " Yes: highlight new posts for me " Go to forum f1 Check the Replies column. Confirm that you see a badge number beside the number of replies. Hover over the badge Confirm that the tooltip indicates the number of unread posts. Click on the badge. Confirm that you are redirected to the discussion page with the unread posts highlighted. Go back to the discussion list. Click on the menu on the discussion that you just read. Confirm that there's no " Mark as read " menu item Click on the menu on one of the discussions with unread posts. Confirm that you see a " Mark as read " menu item Click " Mark as read " option Confirm that the unread badge for the discussion that you marked as read has disappeared. Confirm that the " Mark as read " menu item on that discussion's menu has also disappeared. Click on the check icon on the " Replies " column header to mark all the discussions in the forum as read. Confirm that all the discussions have been marked as read Groups Still on forum 1, set the " Visible groups " selector to " All participants " Check the contents of the group column. Confirm that group A is rendered with its name and group picture. Confirm that group B is rendered with a generic default picture and that its name has been truncated to 30 characters or less. Confirm that discussions without groups are simply blank. Go to forum 2. Confirm that there is no group column. Started by and Last post columns Check the " Started by " column. Confirm that you see the profile pic and full name of the discussion starter. Confirm that underneath the discussion starter's name, you see the date the discussion was created. Check the Last post column Confirm that you see the date of the last reply to the discussion in month and day format. Hover over the date. Confirm that you see a tooltip showing the full date of that last post date. Discussion subscription Open the menu of a discussion in f1. Confirm that you see a " Subscribe " menu item. Click on the " Subscribe " menu item. Confirm that you see a " Subscribed " label under the discussion name. Refresh the page. Confirm that the " Subscribed " label remains. Open the discussion's action menu again. Confirm that you have the option to unsubscribe from the discussion. Click " Unsubscribe from this discussion " Confirm that the " Subscribed " label disappears. Refresh the page. Confirm that the " Subscribed " remains undisplayed. Open the discussion's action menu again. Confirm that you have the option to subscribe from the discussion. Go to the forum f2. Open the action menu of the discussions. Confirm that there's no option to subscribe/unsubscribe to the discussions in f2. Discussion subscription within the discussion Go to one of the discussions. Use any discussion view except for modern (nested would do, subscription toggle for the modern view will be covered by MDL-66477 ). Confirm that the old " Subscribe " link is now an item in the discussion settings dropdown. Toggle the " Subscribe " action menu item. Confirm that you get a notification that you have been subscribed/unsubscribed from the discussion. Open the discussion settings menu. Confirm that the subscribe action menu item's label text has been updated appropriately as well. Go to one of the discussions in the forum f2. Open discussion settings menu. Confirm that there's no option to subscribe/unsubscribe to the discussion. Starring discussions Unstar/star the discussions using the star icon. Confirm that you can successfully Unstar/Star discussion using this method. Unstar/star the discussions using the discussion's action menu. Confirm that you can successfully Unstar/Star discussion using this method. Locking discussions Log in as a teacher t1 and go to forum f1. Open the action menu of one of the discussions. Confirm that you are presented with an option to lock/unlock discussions. Lock a discussion. Confirm that you see a label under the discussion name indicating that the discussion has been locked. Refresh the discussions list page. Confirm that the " Locked " label for that discussion remains. Unlock the discussion. Confirm that the " Locked " label disappears. Refresh the discussions list page. Confirm that the " Locked " label for that discussion remains undisplayed. Pinning discussions Open the action menu of one of the discussions. Confirm that you are presented with an option to pin/unpin discussions. Pin a discussion. Confirm that you see an icon on the first column of the table for that discussion indicating that the discussion has been pinned Unpin the discussion. Confirm that the "Pinned" icon disappears. Timed discussions Still as a teacher, create the following discussions in forum f1 with the following settings: Timed discussion Display period 1 Display start in the past Display end in the future 2 Display start in the past Display end not set. 3 Display start not set Display end in the past 4 Display start not set Display end in the future 5 Display start in the future Display end not set Check these discussions in the discussions list table. Confirm that all of these discussions have a " Timed " label beneath the discussion name. Click on the " Timed " label. Confirm that a popover shows up. Check the content of the popover for the timed discussions you created. Confirm the following display: Timed discussion Display 1 Display start shown Display end shown Visible to all users 2 Display start shown Display end not shown. Visible to all users 3 Display start not shown Display end shown Hidden from students 4 Display start not shown Display end shown Visible to all users 5 Display start shown Display end not shown Hidden from students Log in as a student Go to the forum f1. Confirm that you see the timed discussions 1, 2, and 4 on the list. Confirm that you don't see the " Timed " label. Confirm that you see the timed discussions 3 and 5 on the list. Long discussion names Create a discussion with a relatively long subject. (greater than 100 characters) Go to the discussions list. Confirm that the discussion's name is shortened to 100 characters or less. Hover over the discussion name. Confirm that the tooltip shows the whole discussion name. Discussion sorting and pagination Pin about 3 discussions Star about 3 discussions Sort the discussions list by clicking on the column headers. Confirm the following behaviours: the discussions are sorted according to that column. the pinned discussions are still shown on the top followed by the starred discussions. the pinned discussions and starred discussions are ordered according to the sorted column the discussions can be sorted in ascending or descending order going to the other pages of the discussion list retains the column sorting that you selected. Sorting by discussion starter with a different fullnamedisplay setting Go to " Site administration / Users / Permissions / User policies " Set the fullnamedisplay setting to " lastname firstname " Save the changes. Go to f1. Confirm that the discussion starter names are shown in the " lastname firstname " format. Sort the discussions list by the discussion starter. Confirm that the discussions are sorted by the discussion starter's last name. Set the fullnamedisplay setting to " firstname lastname " Go back to f1 and sort the discussions by the discussion starter. Confirm that the discussions are sorted by the discussion starter's first name.
-
1
-
Sprint 5 - Sander's special, Sprint 6 - Looney Tunes, Sprint 7 - Race to the freeze
Description
Update the display of the discussion list table on the discussion list page (mod/forum/view.php) to match the prototype:
https://projects.invisionapp.com/share/9GQ8R2O3H7J#/screens/350489135
Acceptance criteria
- Table can be sorted by the columns
- Clicking on the unread replies label takes the user to the first unread reply on the discussion
- "Following" in the prototype is actually "Subscribed"
- The star toggle should be visible unless the discussion is pinned, in which case the pin will be displayed
- Clicking the star toggle should star or unstar the discussion
Attachments
- after-patch.png
- 153 kB
- before-patch.png
- 198 kB
- MDL-66481_01.png
- 108 kB
- MDL-66481_02.png
- 150 kB
- MDL-66481_03.png
- 140 kB
- MDL-66481_04.png
- 116 kB
- MDL-66481_05.png
- 79 kB
- MDL-66481_06.png
- 141 kB
- MDL-66481_07.png
- 129 kB
- MDL-66481_08.png
- 143 kB
Issue Links
- blocks
-
MDL-66477 Create settings side drawer for new discussion view
-
- Closed
-
- has been marked as being related by
-
MDL-67392 Forum information about timed discussion doesn't handle correctly "displaystartdate" and "displayenddate" containing quotes
-
- Closed
-
- is blocked by
-
MDL-64821 Create new discussion view for forum
-
- Closed
-
- Testing discovered
-
MDL-66617 Starring a discussion refreshes the page even before the AJAX request has completed
-
- Closed
-
- will help resolve
-
MDL-65529 Move "mark all as read" link for unread posts in a discussion into the dropdown menu
-
- Closed
-
-
MDL-66236 Forum discussion subscribe toggle with amd (remove yui)
-
- Closed
-
(1 will help resolve)