[AMOS commit] MDL-73764 tool_xmldb: New report to show all xml files needing reconcile Committed into Git: 2022-02-03 22:59 UTC

[AMOS commit] MDL-73764 tool_xmldb: New report to show all xml files needing reconcile Committed into Git: 2022-02-03 22:59 UTC

by AMOS bot -
Number of replies: 0
Author: Eloy Lafuente (stronk7)
MDL-73764 tool_xmldb: New report to show all xml files needing reconcile
People uses to edit the install.xml files manually, here and there. That
uses to come with small mistakes, like wrong white-space indentation,
some attributes out of order...

While none of them are critical, they add a lot of noise when somebody
is correctly editing a file with the XMLDB Editor because it, correctly,
overwrites the whole file and then diffs show a lot of unrelated changes.

So, this report will inform us about any file needing to be regenerated
because it has been manually edited (in a different way than the way
the editor has).

Note that the report is very basic, with minimal ouput, manually
generating the HTML, like the rest of the XMLDB Editor actions do. We
are not using renderers neither templates here.

Also note that it includes a commented line of code that, once
uncommented, enables the report to, also, fix the wrong files. Useful
for developers.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=efd150059b940408ab0810b3535ce505e1748700
http://github.com/moodle/moodle/commit/efd150059b940408ab0810b3535ce505e1748700

+ 3.11 en [reconcilefiles,tool_xmldb]
+ 3.11 en [reconcile_files,tool_xmldb]
+ 3.11 en [reconcile_files_intro,tool_xmldb]
+ 3.11 en [reconcile_files_no,tool_xmldb]
+ 3.11 en [reconcile_files_yes,tool_xmldb]