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

Create a custom report filter on context level

XMLWordPrintable

    • MOODLE_403_STABLE
    • MOODLE_403_STABLE
    • Hide
      1. Covered by automated tests (PHPUnit)

      Smoke test

      1. Log in as admin
      2. Navigate to Profile
      3. Edit profile
      4. Add a User picture and save
      5. Create a new course
      6. Add a Course image and save
      7. Navigate to Reports from user menu
      8. Create new report (Comment/Files - as report source)
        • Include default setup: YES
      9. Confirm presence of "Context > Name" column
      10. Add the following columns:
        • Context > Context URL
        • Context > Context level
      11. Confirm column values are correct
      12. Add "Context > Context level" condition
        • Is equal to: User
        • Apply
      13. Confirm only files in user level contexts are shown
      Show
      Covered by automated tests (PHPUnit) Smoke test Log in as admin Navigate to Profile Edit profile Add a User picture and save Create a new course Add a Course image and save Navigate to Reports from user menu Create new report (Comment/Files - as report source) Include default setup: YES Confirm presence of "Context > Name" column Add the following columns: Context > Context URL Context > Context level Confirm column values are correct Add "Context > Context level" condition Is equal to: User Apply Confirm only files in user level contexts are shown

      Allow for custom reports to filter by contextlevel, for those reports that include context data (e.g. comments, files, tags)

      One use case would be to allow a report to be created to list all files at a certain level, e.g. in any user context, and allow for reporting on that

      To avoid copying around the same solution in each report source, create a new context entity type and deprecate existing columns in lieu of the new entity (requires MDL-76900 to be implemented to allow for deprecation)

      The new entity will also provide the base for additional context data (path/parent), which will enhance the files report source later in MDL-78741

            pholden Paul Holden
            pholden Paul Holden
            Carlos Castillo Carlos Castillo
            Jun Pataleta Jun Pataleta
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 32 minutes
                4h 32m

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