-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] Proposal to remove old disused images #33768
Comments
We should keep in mind that we have 2 possible steps:
For the old sample data images we decided not to delete them on updates, see #32744 . Such cases need to be added to the exclusion list in the too which we use to create the list of deleted files and folders for script.php, current development of that tool see here: #25559 . So if you create a PR to remove images from the sources, it should be discussed which of them we don't want to delete on updates because they might be used in content or by 3rd party, and the result should be a 2nd list of those which we want to keep on updates. |
If I understand you correctly, there should be a list of old images that we want to keep. |
@sandewt No. It needs only a list of those which we want to keep on update even if they have been deleted from the sources. This list will be added to the list of files to be kept on update in script The So you make a PR which removes the files from the sources, and in the PR description you name those which shall be kept on update, and you notify me, and then I will care for updating our tool accordingly by that list. |
@richard67. I assume this is the list (deleted_files.txt) to be kept on update, which should be made. Apparently no start has been made yet ? joomla-cms/build/deleted_file_check.php Line 142 in 92aa075
|
No. Read a few lines above and you will see how the contents of that file are generated |
@sandewt No, this is the list generated by the tool, and you have to check the tool in George's draft PR, not the one you linked to. The list of files to be kept on update is maintained here: https://github.com/wilsonge/joomla-cms/blob/deleted_file_rework/build/deleted_file_check.php#L153-L154 I have already explained all above, just read it. |
I see.... |
These files will be removed here: #34962. please test |
I suggest compiling a list of disused images so that they can be removed.
Expected result
The images no longer used in Joomla 4.0 have been removed.
Actual result
The
joomla\media\system\images
directory contains images that are no longer in use.Such as:
The text was updated successfully, but these errors were encountered: