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

Add flag to column to exclude it from downloads

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-73294-master_excludecolumn
    • Hide

      This requires a developer to test.

      Patch applied:

      System report:

      1. Change this line https://github.com/moodle/moodle/blob/master/report/configlog/classes/reportbuilder/local/entities/config_change.php#L92 to be `->set_is_downloadable(false)`
      2. Login to your Moodle test site
      3. Visit the config changes report (/report/configlog/index.php)
      4. Download the report using the button at the bottom of the page
      5. Observe that the time modified column is not included in the download

      Custom report:

      1. Change this line https://github.com/moodle/moodle/blob/master/reportbuilder/classes/local/entities/user.php#L218 to be `->set_is_downloadable(false)`
      2. Login to your Moodle test site
      3. Visit the custom reports page (/reportbuilder/index.php)
      4. Create a new report using the 'Users' report source
      5. Visit the custom reports page (/reportbuilder/index.php)
      6. Click the 'View report' button on your new report
      7. Download the report using the button at the bottom of the page
      8. Observe that the 'Full name' column is not included in the download
      Show
      This requires a developer to test. Patch applied: System report: Change this line https://github.com/moodle/moodle/blob/master/report/configlog/classes/reportbuilder/local/entities/config_change.php#L92 to be `->set_is_downloadable(false)` Login to your Moodle test site Visit the config changes report (/report/configlog/index.php) Download the report using the button at the bottom of the page Observe that the time modified column is not included in the download Custom report: Change this line https://github.com/moodle/moodle/blob/master/reportbuilder/classes/local/entities/user.php#L218 to be `->set_is_downloadable(false)` Login to your Moodle test site Visit the custom reports page (/reportbuilder/index.php) Create a new report using the 'Users' report source Visit the custom reports page (/reportbuilder/index.php) Click the 'View report' button on your new report Download the report using the button at the bottom of the page Observe that the 'Full name' column is not included in the download

      Columns should have a flag that allows them to be excluded from being in a report download, this is for use cases such as MDL-72831 where you wouldn't want the select column to be included in the download.

            marcusgreen Marcus Green
            alexmorris Alexander Morris
            Paul Holden Paul Holden
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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