[5.0] Add exceptions to deleted file check for plugins which are uninstalled on update by script.php #41751
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request for Issue # .
Summary of Changes
Sine 5.0.0-beta1, a few more plugins are uninstalled by the uninstallExtensions method in the script.php file:
The files and folders of these plugins shall not be in the lists of files and folders to be deleted on update by the deleteUnexistingFiles method in script.php, otherwise you will get warning alerts and PHP notices at the end of the update. See PR #41065 for details.
This PR here adds the corresponding files and folders to the lists of exceptions in the "build/deleted_file_check.php" script so they are not falsely reported as to be deleted by that tool, which is used by maintainers and release managers to check for deleted files and folders and by me to maintain the lists in script.php.
In addition, it adds the files and folders from the invisible recaptcha plugin. This one is not uninstalled on update, and its files and folders shall not be deleted, but it's also not included in new releases, so the "build/deleted_file_check.php" script currently reports them as to be deleted.
Testing Instructions
Code review, or if you want to make a real test:
It needs a current 5.0-dev branch on a git clone and PHP CLI available.
Actual result BEFORE applying this Pull Request
Output of the script:
Files "build/deleted_files.txt" and "build/deleted_folders.txt" contain files and folders from the plugins mentioned in the description of this PR. "build/deleted_folders.txt" contains only such files.
File "build/renamed_files.txt" is empty as it should be.
Expected result AFTER applying this Pull Request
Output of the script:
Files "build/deleted_files.txt" and "build/deleted_folders.txt" don't contain files and folders from the plugins mentioned in the description of this PR.
See comparison of "build/deleted_files.txt", left side with the PR applied, right side without:
File "build/deleted_folders.txt" is empty now as it should be.
File "build/renamed_files.txt" is empty as it should be.
Link to documentations
Please select:
No documentation changes for docs.joomla.org needed
No documentation changes for manual.joomla.org needed