? ? Pending

User tests: Successful: Unsuccessful:

avatar Schmidie64
Schmidie64
12 Sep 2019

Fixes #18765 and #25610

Summary of Changes

Fixed the remove installation folder function and change the checkbox for removing the folder to an button.
pr_remove_install_folder

Testing Instructions

  1. Start the installation of Joomla 4

  2. finish the installation

  3. On the "Congratulations"-Page, you can find a Box with the title "We detected development mode" in this box you should see a checkbox where you can select that the installation folder should be deleted after the installation

  4. Now check that button and click the "Complete & Open Site / Admin"

  5. If you now check your filesystem, the installation folder should still be there.

  6. Now remove in your Joomla directory the configuration.php file

  7. Now apply my patch

  8. Redo the test instructions

  9. Now you should see a button instead of a checkbox.

  10. Now click on the button

  11. An "alert"-window should now open where you have to confirm that you wanna remove the installation folder

  12. Confirm that

  13. Now check your filesystem again

  14. The installation folder should now be removed.

Expected result

Installation Folder should be remove if checkbox is "checked"

Actual result

Installation Folder is not removed.

Documentation Changes Required

Maybe not sure :)

@roland-d @wilsonge

avatar Schmidie64 Schmidie64 - open - 12 Sep 2019
avatar Schmidie64 Schmidie64 - change - 12 Sep 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Sep 2019
Category Installation Language & Strings JavaScript
avatar Schmidie64 Schmidie64 - change - 12 Sep 2019
Labels Added: ? ?
avatar Schmidie64
Schmidie64 - comment - 12 Sep 2019

I change the styling from html elements to css style and change the language value you mentioned.

avatar wilsonge wilsonge - change - 12 Sep 2019
The description was changed
avatar wilsonge wilsonge - edited - 12 Sep 2019
avatar brianteeman brianteeman - test_item - 14 Sep 2019 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 14 Sep 2019

I have tested this item ? unsuccessfully on 70ccd45

The removal begins and the contents of installation/src are removed and the a 500 error appears


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26276.

avatar Schmidie64
Schmidie64 - comment - 15 Sep 2019

@brianteeman i think i fixed your mentioned error.

avatar richard67
richard67 - comment - 15 Sep 2019

@Schmidie64 Go to https://github.com/joomla/joomla-cms/pull/26276/files

snap-1

and scroll down:

snap-2

You will see the file is still deleted by your PR, the merge of the 4.0-dev branch into yours did not help. You have to explicitely add the file back in your branch, or if the file has been removed as the only action of one single commit, revert that one commit.

avatar Schmidie64
Schmidie64 - comment - 15 Sep 2019

Now the robots.txt.dist is definitely inside my branch.

avatar richard67
richard67 - comment - 15 Sep 2019

@Schmidie64 Correct, looks good now.
@C-Lodder Could you check if your remarks have been resolved, too?

avatar richard67
richard67 - comment - 15 Sep 2019

@wilsonge It could be that the changes in this PR require also changes in system tests, file tests/Codeception/acceptance/install/InstallCest.php. At least drone log says installation with removal of the installation folder fails in mysql system test. Could you check that? Maybe it has other reasons than this PR?

avatar Schmidie64
Schmidie64 - comment - 16 Sep 2019

Now the language string is also in the en-US Language file.

avatar wilsonge
wilsonge - comment - 17 Sep 2019

Correct system tests will need amending

avatar richard67
richard67 - comment - 17 Sep 2019

Correct system tests will need amending

@wilsonge And that means? Amending by who and when? Now by author of this PR, or later by whomever? I ask because I have tested this PR now with success, but not sure if I shall give a good test result because the PR might break the system test. On the other hand I think we should not bother contributors with the tests if it is too comlicated. Please decide if my good test is valid or not.

avatar Schmidie64
Schmidie64 - comment - 17 Sep 2019

The continuous-integration test is not failing because of this pr. In the file /administrator/components/com_finder/Indexer/Indexer.php is a phpdoc error but i don't think that this pr should fix this. Because it's a completely different part of Joomla.

avatar alikon
alikon - comment - 17 Sep 2019

this drone issues is biting us today more than legit and have nothing to do with this pr
the starting cause is my CS fault with this pr #25884 for which there is already a pr #26346
so simply ignore this "silly drone "

avatar richard67
richard67 - comment - 17 Sep 2019

The current drone error is code style fixed by PR #26346 , I know that.

But yesterday or Sunday there was not this code style error but a system test which looked related. Am not good enough in system tests to judge that. Anyway, I am sure when I give good test result and it is wrong, George will tell us.

avatar richard67 richard67 - test_item - 17 Sep 2019 - Tested successfully
avatar richard67
richard67 - comment - 17 Sep 2019

I have tested this item successfully on ac209a3

Test 1: As described in the instructions => OK, installation folder deleted with this PR and not deleted without this PR.
Test 2: Same as before, but in the confirmation dialog chosen "Cancel" => OK, installation folder not deleted.

Note that the system test has to be changed here https://github.com/joomla-projects/joomla-browser/blob/v4.0.0/src/JoomlaBrowser.php#L281 in order to reflect the change from a checkbox to a button and the new use of a browser message box. @wilsonge please protest if it was wrong to give a good test result.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26276.

avatar richard67
richard67 - comment - 17 Sep 2019

@brianteeman Yes, I saw that, that's why I got curious about the tests.

I saw now the test is defined here: https://github.com/joomla-projects/joomla-browser/blob/develop/src/JoomlaBrowser.php#L350 https://github.com/joomla-projects/joomla-browser/blob/v4.0.0/src/JoomlaBrowser.php#L281. It seems at least the comment in that test is wrong because it already speaks about a button but seems to be older than this PR here.

Brian, what do you think? This PR is good as it is?

avatar brianteeman
brianteeman - comment - 17 Sep 2019

As @wilsonge said - the tests need to be fixed

avatar richard67
richard67 - comment - 17 Sep 2019

@brianteeman Yes, I did read it, but it was not clear to me if someone shall do that later or if the author of this PR should do it, and if it is a requirement for giving this PR a good test. So I am really not sure if I could give it a good test like I did, or if I shouldn't have done that.

avatar richard67 richard67 - test_item - 17 Sep 2019 - Not tested
avatar richard67
richard67 - comment - 17 Sep 2019

I have not tested this item.

Due to valid review comments by @Quy which require further changes I set back my test result to not tested. Later when review comments have been applied and it is clarified what to do with the system test I will test again.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26276.

avatar wilsonge wilsonge - change - 19 Sep 2019
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-09-19 16:16:16
Closed_By wilsonge
avatar wilsonge wilsonge - close - 19 Sep 2019
avatar wilsonge wilsonge - merge - 19 Sep 2019
avatar wilsonge
wilsonge - comment - 19 Sep 2019

Thanks!

avatar richard67
richard67 - comment - 21 Sep 2019

@Schmidie64 Thanks for the nice button :-) I hope our reviews and all that have not been too much for you. But if there is something we could improve on that, let us know. You can e.g. get my website in my GitHub profile and there use the contact form if you have suggestions. I'll forward that to the JBS (Joomla Bug Squad) Team.

Thanks for your PR, and hope to see you contributing again from time to time. Ah and if nothing else to do and a bit bored: We always need testers for other PRs, it just needs to use Joomla for that ;-)

Add a Comment

Login with GitHub to post a comment