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

Correct the course completion table name in report entity

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 5.0
    • 5.0
    • Report builder

      This table name is not correct:

      1. https://github.com/moodle/moodle/blob/ab5692acdf1f9a2b3cf06986f49b951558793f38/course/classes/reportbuilder/local/entities/completion.php#L51

      As evidenced when it's used in a report source, and in XMLDB schema:

      1. https://github.com/moodle/moodle/blob/ab5692acdf1f9a2b3cf06986f49b951558793f38/course/classes/reportbuilder/datasource/participants.php#L139
      2. https://github.com/moodle/moodle/blob/ab5692acdf1f9a2b3cf06986f49b951558793f38/lib/db/install.xml#L201

      Now that we can deprecate table names in entities (since MDL-78118), we should fix this so as to remove the element of surprise and support future work on table introspection once it's corrected

      The deprecation of entity table names should support defining replacements. In this case from 'course_completion' to 'course_completions'

            pholden Paul Holden
            pholden Paul Holden
            Carlos Castillo Carlos Castillo
            David Carrillo David Carrillo
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 23 minutes
                2h 23m

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