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

Link forum summary report to export of each user's post content

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      1. Log into your test site as site admin.
      2. Visit each of the following user profile pages, and note down each user's name, as they will be referred to as the respective users later in testing:
        User URL
        u1 <wwwroot>/user/profile.php?id=13
        u2 <wwwroot>/user/view.php?id=7
      3. Restore the attached course (Forum test course, FT101) into a new course in your test site.
      4. Navigate to the "Forum test course" course, and open the forum called "Parlay".
      5. Open the forum actions menu and click "Summary report".
      6. CONFIRM the report contains 16 users, and the following users' details match (dates shortened here for table readability):
        first/surname Num Discussions Num replies Num attachments Num views Words Chars Earliest post Most recent post
        u1 1 6 5 115 34 186 19 July 3:05pm 10 Sep 2:15pm
        u2 0 0 0 2 0 0 - -

      Testing - basic output and link

      1. Remain logged in as site admin, viewing the "Parlay" forum summary report.
      2. CONFIRM there is an 'Export posts' column on the far right of the report table, and CONFIRM clicking on that heading has no effect.
      3. CONFIRM u2, and all other rows of users who have no 'Earliest post' and 'Most recent post' (ie no discussions or replies) do not have an 'Export' button in the 'Export posts' column.
      4. CONFIRM all rows of users who do have an 'Earliest post' and 'Most recent post' date (ie have posted at least once) do have an 'Export' button in the 'Export posts column'.
      5. Click on the 'Export' button in u1's report row.
      6. CONFIRM the Export page loads, with the following values set:
        Type Value
        Users u1
        Discussions All discussions
        Posts from Not enabled
        Posts to Not enabled
      7. Press the Export button at the bottom of the page, and download/open the file.
      8. CONFIRM the export contains 1 new discussion (parent = 0) and 6 replies (parent is not 0).
      9. CONFIRM the final 2 columns of the export are "wordcount" and "charcount".

      Testing - Filters applied

      1. Navigate back to the summary report (you can press 'back' in your browser).
      2. Click the 'Dates' filter button.
      3. Enable the 'from' date, and set the value to 9 September 2019.
      4. Enable the 'to' date, and set the value to 10 September 2019.
      5. Press save.
      6. CONFIRM the dates filter button now shows '9 Sep 2019 - 10 Sep 2019'.
      7. Click the 'Groups' filter button.
      8. Select 'Group 1' and press 'save'.
      9. CONFIRM u1 now shows 0 discussions posted and 2 replies posted.
      10. Press the 'Export' button for u1.
      11. CONFIRM the Export page loads, with the following values set:
        Type Value
        Users u1
        Discussions 'Who is the best pirate you've ever seen?', 'Blah the third'
        Posts from 9 September 2019 00:00 (enabled)
        Posts to 10 September 2019 23:59 (enabled)
      12. Press the Export button at the bottom of the page, and download/open the file.
      13. CONFIRM the export contains only 2 rows, neither with parent = 0.

      Testing - standalone export still working

      1. Refresh the export page (if your browser asks you about resending data, click 'resend').
      2. Click the cross on u1, so 'Users' becomes 'All users'.
      3. Click Export, and CONFIRM the exported file contains 2 posts.
      4. Refresh the export page (click 'resend' if prompted).
      5. Click the cross on u1 again, also do the same for the 2 discussions, and disable both dates.
      6. Click 'Export' again, and confirm the output contains 4 discussion posts (parent = 0), and 15 replies (parent not 0).
      Show
      Setup Log into your test site as site admin. Visit each of the following user profile pages, and note down each user's name, as they will be referred to as the respective users later in testing: User URL u1 <wwwroot>/user/profile.php?id=13 u2 <wwwroot>/user/view.php?id=7 Restore the attached course (Forum test course, FT101) into a new course in your test site. Navigate to the "Forum test course" course, and open the forum called "Parlay". Open the forum actions menu and click "Summary report". CONFIRM the report contains 16 users, and the following users' details match (dates shortened here for table readability): first/surname Num Discussions Num replies Num attachments Num views Words Chars Earliest post Most recent post u1 1 6 5 115 34 186 19 July 3:05pm 10 Sep 2:15pm u2 0 0 0 2 0 0 - - Testing - basic output and link Remain logged in as site admin, viewing the "Parlay" forum summary report. CONFIRM there is an 'Export posts' column on the far right of the report table, and CONFIRM clicking on that heading has no effect. CONFIRM u2, and all other rows of users who have no 'Earliest post' and 'Most recent post' (ie no discussions or replies) do not have an 'Export' button in the 'Export posts' column. CONFIRM all rows of users who do have an 'Earliest post' and 'Most recent post' date (ie have posted at least once) do have an 'Export' button in the 'Export posts column'. Click on the 'Export' button in u1's report row. CONFIRM the Export page loads, with the following values set: Type Value Users u1 Discussions All discussions Posts from Not enabled Posts to Not enabled Press the Export button at the bottom of the page, and download/open the file. CONFIRM the export contains 1 new discussion (parent = 0) and 6 replies (parent is not 0). CONFIRM the final 2 columns of the export are "wordcount" and "charcount". Testing - Filters applied Navigate back to the summary report (you can press 'back' in your browser). Click the 'Dates' filter button. Enable the 'from' date, and set the value to 9 September 2019. Enable the 'to' date, and set the value to 10 September 2019. Press save. CONFIRM the dates filter button now shows '9 Sep 2019 - 10 Sep 2019'. Click the 'Groups' filter button. Select 'Group 1' and press 'save'. CONFIRM u1 now shows 0 discussions posted and 2 replies posted. Press the 'Export' button for u1. CONFIRM the Export page loads, with the following values set: Type Value Users u1 Discussions 'Who is the best pirate you've ever seen?', 'Blah the third' Posts from 9 September 2019 00:00 (enabled) Posts to 10 September 2019 23:59 (enabled) Press the Export button at the bottom of the page, and download/open the file. CONFIRM the export contains only 2 rows, neither with parent = 0. Testing - standalone export still working Refresh the export page (if your browser asks you about resending data, click 'resend'). Click the cross on u1, so 'Users' becomes 'All users'. Click Export, and CONFIRM the exported file contains 2 posts. Refresh the export page (click 'resend' if prompted). Click the cross on u1 again, also do the same for the 2 discussions, and disable both dates. Click 'Export' again, and confirm the output contains 4 discussion posts (parent = 0), and 15 replies (parent not 0).
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull Master Branch:
      MDL-66297-master
    • Story Points:
      2
    • Sprint:
      Internationals - 3.8 Sprint 7, Internationals - 3.8 Alpha

      Description

      Link the current row to the export of the content which generated that row

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/19

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 2 hours, 44 minutes
                  3d 2h 44m