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

The user report entity retrieves all filters multiple times

    • 1
    • WP Sprint 2025-I2.2 (Espresso)

      This is rather inefficient: https://github.com/moodle/moodle/blob/bf164840d9236c36057334d99482d50784f11b26/reportbuilder/classes/local/entities/user.php#L90-L99 because it's requesting all filters from both itself and the user profile fields helper multiple times

      Use the fluid interface pattern we use in all other entities: https://github.com/moodle/moodle/blob/bf164840d9236c36057334d99482d50784f11b26/reportbuilder/classes/local/entities/course.php#L97-L104 to ensure we only generate all filter instances once within the user entity

      This improves performance, so adding to MDL-84719 epic

            pholden Paul Holden
            pholden Paul Holden
            Ilya Tregubov Ilya Tregubov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 minutes
                7m

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