? ? Pending

User tests: Successful: Unsuccessful:

avatar bembelimen
bembelimen
30 Dec 2020

Pull Request for Issue #29794 .

Summary of Changes

Fixes the composer deprecations using the 3.x code from @SharkyKZ here: #30802

Testing Instructions

Test 1: Update a Joomla! 3.10 installation with the 4.0 installation of this PR (see at the end for download link)
Test 2: Run composer install for this PR
Test 3: Test unit tests

Actual result BEFORE applying this Pull Request

Result 1: (especially on windows systems) the renamed files from this PR have the incorrect case (or old files are still there)
Result 2: composer does throw deprecation notices

Expected result AFTER applying this Pull Request

Result 1: (especially on windows systems) the renamed files from this PR have the correct case
Result 2: composer does not throw any deprecation notices
Result 3: unit test are working

Thanks @SharkyKZ for the 3.0 code
Thanks @HLeithner for helping with this PR

avatar bembelimen bembelimen - open - 30 Dec 2020
avatar bembelimen bembelimen - change - 30 Dec 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Dec 2020
Category Administration com_admin com_installer com_joomlaupdate Libraries Unit Tests
avatar bembelimen bembelimen - change - 30 Dec 2020
Labels Added: ? ? ?
avatar bembelimen bembelimen - change - 30 Dec 2020
Labels Added: ?
Removed: ?
avatar bembelimen bembelimen - change - 30 Dec 2020
Labels Added: ?
Removed: ?
avatar astridx
astridx - comment - 30 Dec 2020

Is composer version 1 important or can I test it with composer 2?

avatar bembelimen bembelimen - change - 30 Dec 2020
Labels Added: ?
Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 30 Dec 2020
Category Administration com_admin com_installer com_joomlaupdate Libraries Unit Tests Administration com_admin com_installer com_joomlaupdate External Library Composer Change Libraries Unit Tests
avatar bembelimen
bembelimen - comment - 30 Dec 2020

Is composer version 1 important or can I test it with composer 2?

If you get errors/deprecations there, too, then yes.

avatar bembelimen bembelimen - change - 31 Dec 2020
Labels Added: ? ?
Removed: ?
avatar HLeithner
HLeithner - comment - 31 Dec 2020

@wilsonge drone is broken now^^

avatar wilsonge
wilsonge - comment - 31 Dec 2020

This test is in a different class to the one I modified!?

avatar HLeithner
HLeithner - comment - 31 Dec 2020

The current error message expains it better:

1) Joomla\Tests\Unit\Libraries\Cms\Image\ImageTest::testGetFilterInstance
RuntimeException: The Filterinspector image filter is not available.

Since you removed the Instance creating it seems the 2 files are related.

avatar wilsonge wilsonge - change - 31 Dec 2020
Labels Added: ?
Removed: ?
avatar bembelimen bembelimen - change - 31 Dec 2020
Labels Added: ?
Removed: ?
avatar wilsonge wilsonge - change - 2 Jan 2021
Labels Added: ?
Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 2 Jan 2021
Category Administration com_admin com_installer com_joomlaupdate Libraries Unit Tests External Library Composer Change Administration com_admin com_installer com_joomlaupdate Libraries Unit Tests
avatar wilsonge wilsonge - change - 2 Jan 2021
Labels Added: ?
Removed: ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 2 Jan 2021
Category Administration com_admin com_installer com_joomlaupdate Libraries Unit Tests Administration com_admin com_installer com_joomlaupdate Libraries
avatar wilsonge wilsonge - change - 2 Jan 2021
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 5 Jan 2021
Category Administration com_admin com_installer com_joomlaupdate Libraries Administration com_admin com_joomlaupdate Libraries
avatar joomla-cms-bot joomla-cms-bot - change - 6 Jan 2021
Category Administration com_admin com_joomlaupdate Libraries Administration com_admin Libraries
avatar richard67
richard67 - comment - 13 Jan 2021

@bembelimen Could you solve conflicts? Maybe it needs to adapt to the recently merged "dry run" feature.

In addition, it needs to adapt to changes I've made with my PR #32006 , which replaces PR #30802 and contains additional changes on comments and a fix for OSX. If you want I can help with that and make a PR for you after you have done the rest.

avatar richard67
richard67 - comment - 25 Jan 2021

@bembelimen I was checking the conflict shown here for the script.php file and have noticed something.

With PR #31943 , some logging and a dry run option have been added to the files and folder deletion.

This PR here now calls at the end of that function the new one for moving files with wrongly cased file names.

It might make sense to refactor this PR a bit to do the same (logging and dry run option) for the files moving function.

The dry run later could be used e.g. in 4.1 to have something like the database schema check also for the "are there files or folders to be deleted or files to be renamed" checks, with corresponding "Fix" buttons maybe, to de-couple that a bit from database schema fixing.

avatar richard67
richard67 - comment - 27 Jan 2021

@bembelimen I've allowed myself to fix the conflict.

avatar wilsonge wilsonge - change - 27 Jan 2021
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-01-27 22:56:14
Closed_By wilsonge
avatar wilsonge wilsonge - close - 27 Jan 2021
avatar wilsonge wilsonge - merge - 27 Jan 2021
avatar wilsonge
wilsonge - comment - 27 Jan 2021

Thanks!

Add a Comment

Login with GitHub to post a comment