Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-6404

Automated code checking should detect obvious missing strings (e.g. capability and cache names)

XMLWordPrintable

      We have all done this (includind, I noticed when searching for potential dupes, the people who created the Moodle plugins DB! MDLSITE-1412): We have added a capability (or a cache) and failed to add the requried string.

      And, just running the unit tests for one plugin will not catch this (a full unit test run will, via some of the core checks, but that is a very ineffcient wayh to find this.)

      Anyway, I suggest adding a new check, but for submissions to Moodle core, and in the plugins DB validation for separate plugins, which goes through the flies like db/access.php and db/caches.php, and verifies that the land strings that should exist because of what are in those files really are present.

      Thanks for considering this.

            Unassigned Unassigned
            timhunt Tim Hunt
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:

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