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

Add ability to star discussions

XMLWordPrintable

    • MOODLE_37_STABLE
    • MOODLE_37_STABLE
    • MDL-65033-master2
    • Hide

      Basic behat and unit tests provided.

      Prerequisites:

      1. Create a course with a teacher and a student
      2. Create a forum within the course
      3. Create 3 discussions within the forum: Discussion 1(D1), Discussion 2(D2), Discussion 3(D3)

      Instructions

      Toggle states from within a discussion

      Basic

      1. As a student, go to D2 within the forum
      2. Confirm you can see and click the 'Settings' link on the top of the page.
      3. Confirm you can only see the 'Star this discussion' option in the dropdown
      4. Confirm when you click the 'Star this discussion' link in the menu, it changes to 'Unstar this discussion'
      5. Confirm when you go back to the discussion list, Discussion 2 appears at the top of the list with a star icon
      6. As a teacher, go to D1 within the forum
      7. Confirm you can see and click the 'Settings' link on the top of the page.
      8. Confirm you can see the 'Star this discussion' AND 'Pin this discussion'  and 'Lock' options in the dropdown
      9. Confirm when you click the 'Pin this discussion' link in the menu for Discussion 1, it changes to 'Unpin this discussion'
      10. Confirm when you go back to the discussion list, Discussion 1 appears at the top of the list with the pin icon

      Teacher pins D1, student doesn't

      1. As a student, go to the forum's discussion list
      2. Confirm D1 appears at the top of the list with a pin icon before the description
      3. Repeat #1 and #2 with the teacher

      Teacher pins D1, student stars D3

      1. As a teacher, go the forum
      2. Within D1, pin the discussion.
      3. On the forum page, confirm D1 appears at the top of the list
      4. As a student, go to the forum's discussion list
      5. Confirm D1 appears at the top of the list
      6. Goto D3 and star the discussion(as described previously)
      7. Go back to the forum's discussion list
      8. Confirm D1 appears at the top with a pin icon followed by D3 with a star icon
      9. As a teacher, go back to the forum
      10. Confirm ONLY D1 appears to be pinned and NOT D3

      Teacher pins D1, student stars D1

      1. As a teacher, go the forum
      2. Within D1, pin the discussion.
      3. On the forum page, confirm D1 appears at the top of the list
      4. As a student, go to the forum's discussion list
      5. Confirm D1 appears at the top of the list with a pin icon
      6. Goto D1 and star the discussion(as described previously)
      7. Go back to the forum's discussion list
      8. Confirm D1 is still at the top of the list with a pin icon
      9. As a teacher, go back to the forum
      10. Go to discussion D1, unpin the discussion(as described previously)
      11. As a student, go to the forum
      12. Confirm, D1 is still at the top of the list with a star icon

      Toggle states from the discussion list

      Basic

      1. As a student, go to the forum
      2. Confirm you can see the "..." icon next to the subscribe button
      3. Confirm you can ONLY see the 'Star this discussion' option in the dropdown
      4. With D2, confirm when you click the 'Star this discussion' link in the menu, the page reloads and the corresponding record's menu changes to 'Unstar this discussion'
      5. Confirm Discussion 2 appears at the top of the list with a star icon
      6. As a teacher, go to the forum
      7. Confirm you can see the "..." icon next to the subscribe button
      8. Confirm you can see the 'Star this discussion',  'Pin this discussion' AND 'Lock' options in the dropdown after clicking the icon
      9. Confirm when you click the 'Pin this discussion' link in the menu for Discussion 1, the page reloads the page
      10. Confirm when you go back to the discussion list, Discussion 1 appears at the top of the list with the pin icon

      Teacher pins D1, student doesn't

      1. As a student, go to the forum's discussion list
      2. Confirm D1 appears at the top of the list with a pin icon before the description
      3. Repeat #1 and #2 with the teacher

      Teacher pins D1, student stars D3

      1. As a teacher, go the forum
      2. Select the dropdown corresponding to D1 and pin the discussion.
      3. On the forum page, confirm D1 appears at the top of the list
      4. As a student, go to the forum's discussion list
      5. Confirm D1 appears at the top of the list
      6. Select the dropdown corresponding to D3 and star the discussion(as described previously)
      7. Confirm D1 appears at the top with a pin icon followed by D3 with a star icon
      8. As a teacher, go back to the forum
      9. Confirm ONLY D1 appears to be pinned and NOT D3

      Teacher pins D1, student stars D1

      1. As a teacher, go the forum
      2. Select the dropdown corresponding to D1 and pin the discussion.
      3. On the forum page, confirm D1 appears at the top of the list
      4. As a student, go to the forum's discussion list
      5. Confirm D1 appears at the top of the list with a pin icon
      6. Select the dropdown corresponding to D1 and star the discussion(as described previously)
      7. Confirm D1 is still at the top of the list with a pin icon
      8. As a teacher, go back to the forum
      9. Select the dropdown corresponding to discussion D1 and unpin the discussion(as described previously)
      10. As a student, go to the forum
      11. Confirm, D1 is still at the top of the list with a star icon
      Show
      Basic behat and unit tests provided. Prerequisites: Create a course with a teacher and a student Create a forum within the course Create 3 discussions within the forum: Discussion 1(D1), Discussion 2(D2), Discussion 3(D3) Instructions Toggle states from within a discussion Basic As a student, go to D2 within the forum Confirm you can see and click the 'Settings' link on the top of the page. Confirm you can only see the 'Star this discussion' option in the dropdown Confirm when you click the 'Star this discussion' link in the menu, it changes to 'Unstar this discussion' Confirm when you go back to the discussion list, Discussion 2 appears at the top of the list with a star icon As a teacher, go to D1 within the forum Confirm you can see and click the 'Settings' link on the top of the page. Confirm you can see the 'Star this discussion' AND 'Pin this discussion'  and 'Lock' options in the dropdown Confirm when you click the 'Pin this discussion' link in the menu for Discussion 1, it changes to 'Unpin this discussion' Confirm when you go back to the discussion list, Discussion 1 appears at the top of the list with the pin icon Teacher pins D1, student doesn't As a student, go to the forum's discussion list Confirm D1 appears at the top of the list with a pin icon before the description Repeat #1 and #2 with the teacher Teacher pins D1, student stars D3 As a teacher, go the forum Within D1, pin the discussion. On the forum page, confirm D1 appears at the top of the list As a student, go to the forum's discussion list Confirm D1 appears at the top of the list Goto D3 and star the discussion(as described previously) Go back to the forum's discussion list Confirm D1 appears at the top with a pin icon followed by D3 with a star icon As a teacher, go back to the forum Confirm ONLY D1 appears to be pinned and NOT D3 Teacher pins D1, student stars D1 As a teacher, go the forum Within D1, pin the discussion. On the forum page, confirm D1 appears at the top of the list As a student, go to the forum's discussion list Confirm D1 appears at the top of the list with a pin icon Goto D1 and star the discussion(as described previously) Go back to the forum's discussion list Confirm D1 is still at the top of the list with a pin icon As a teacher, go back to the forum Go to discussion D1, unpin the discussion(as described previously) As a student, go to the forum Confirm , D1 is still at the top of the list with a star icon Toggle states from the discussion list Basic As a student, go to the forum Confirm you can see the "..." icon next to the subscribe button Confirm you can ONLY see the 'Star this discussion' option in the dropdown With D2, confirm when you click the 'Star this discussion' link in the menu, the page reloads and the corresponding record's menu changes to 'Unstar this discussion' Confirm Discussion 2 appears at the top of the list with a star icon As a teacher, go to the forum Confirm you can see the "..." icon next to the subscribe button Confirm you can see the 'Star this discussion',  'Pin this discussion' AND 'Lock' options in the dropdown after clicking the icon Confirm when you click the 'Pin this discussion' link in the menu for Discussion 1, the page reloads the page Confirm when you go back to the discussion list, Discussion 1 appears at the top of the list with the pin icon Teacher pins D1, student doesn't As a student, go to the forum's discussion list Confirm D1 appears at the top of the list with a pin icon before the description Repeat #1 and #2 with the teacher Teacher pins D1, student stars D3 As a teacher, go the forum Select the dropdown corresponding to D1 and pin the discussion. On the forum page, confirm D1 appears at the top of the list As a student, go to the forum's discussion list Confirm D1 appears at the top of the list Select the dropdown corresponding to D3 and star the discussion(as described previously) Confirm D1 appears at the top with a pin icon followed by D3 with a star icon As a teacher, go back to the forum Confirm ONLY D1 appears to be pinned and NOT D3 Teacher pins D1, student stars D1 As a teacher, go the forum Select the dropdown corresponding to D1 and pin the discussion. On the forum page, confirm D1 appears at the top of the list As a student, go to the forum's discussion list Confirm D1 appears at the top of the list with a pin icon Select the dropdown corresponding to D1 and star the discussion(as described previously) Confirm D1 is still at the top of the list with a pin icon As a teacher, go back to the forum Select the dropdown corresponding to discussion D1 and unpin the discussion(as described previously) As a student, go to the forum Confirm , D1 is still at the top of the list with a star icon

      Add the ability to mark a discussion as starred, and treat it as a personal version of "Pinned discussions".

      This functionality, which should make use of the Favourites API, will add a user-personal version of Pinned discussions.
      Discussions in this category will be shown at the top of the list of discussions in a forum.

      Acceptance criteria

      • It is possible to “Favourite” and “Unfavourite” a forum discussion from the list of discussions.
      • It is possible to “Favourite” and “Unfavourite” a forum discussion from within that discussion.

        1. MDL-65033_ToggleStatesFromTheDiscussionList.jpg
          MDL-65033_ToggleStatesFromTheDiscussionList.jpg
          40 kB
        2. MDL-65033_ToggleStatesFromWithinADiscussion.jpg
          MDL-65033_ToggleStatesFromWithinADiscussion.jpg
          39 kB
        3. pinned.png
          pinned.png
          113 kB
        4. starred_and_pinned.png
          starred_and_pinned.png
          109 kB
        5. Unstar.png
          Unstar.png
          0.3 kB
        6. Unstar.svg
          0.5 kB

            peterdias Peter Dias
            dobedobedoh Andrew Lyons
            Ryan Wyllie Ryan Wyllie
            David Monllaó David Monllaó
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 5 minutes
                6h 5m

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