User tests: Successful: Unsuccessful:
This PR improves the Joomla! updater layout and adds some structure:
When we're in the initial state and did not check for the update yet, the following screen is visible:
As you can see I used the emptystate function, which was implemented a few weeks ago (also in later stages). I also removed the information of the currently installed version, as it gives no benefit in the current state.
Last but not least the "Upload & Update" is moved down in a text link, as I assume upload updates are not that common.
Now we press the "Check for updates" without finding an update.
and
As you can see, there is no pre-update check, because....there is no update. But the button changes to offer the re-installation of the core files. Also all this unnecessary verbose information were removed.
Next test is, if there is an update.
and
and
and
and
Here the strange fieldsets are were removed and the information are split into different tab-pills. The update is moved to a 2nd step. Verbose information like current version and the download link are removed (no download needed here, see below in upload area). An additional checkbox is displayed for an extra confirmation regarding backups. Also the confirmation regarding extensions with update required is there.
The pills (left side) show an status icon, for extensions it's an animated hourclass till all extensions are checked.
Last but not least the update via upload.
and
and
Here, if a update file is available as download, it's offered to the user to download. Headline of the Login is not "Login" anymore, because the user is already logged in. Also the backup confirmation is here again.
The update did not change.
It's a bit hard to test. What I did was to install an Joomla! RC2 and replace the administrator/com_joomlaupdate and media/com_joomlaupdate folders from the download of this PR (see link at the bottom). Also the language file needs to be updated and layouts/joomla/content/emptystate.php has to be copied.
Then you can go through all the steps of the update.
For reinstall, you can use the normal patchtester.
Update works but layoutit a bit confusing.
Update still works with new layout.
Help pages has the wrong link.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_installer com_joomlaupdate Language & Strings JavaScript Repository NPM Change Layout |
@bembelimen Please fix PHP CS: https://ci.joomla.org/joomla/joomla-cms/45704/1/6
@bembelimen The check for 8 MB or even 16 MB is outdated. A J4 update package currently has some 24 MB. A post_max_size or and upload_max_filesize lower than 24 MB will cause an update via upload & update to fail. And maybe even 24 MB is too tight. In my opinion and according to my experience the 2 values which I have mentioned should both be at least 32 MB, with the post_max_size being equal to or larger than the upload_max_filesize, and the memory limit should be at least the maximum of these 2 values, if not more.
UPDATE: this was an unrelated bug
Warning: Creating default object from empty value in C:\htdocs\joomla-cms\administrator\components\com_joomlaupdate\src\Model\UpdateModel.php on line 1336
Warning: Creating default object from empty value in C:\htdocs\joomla-cms\administrator\components\com_joomlaupdate\src\Model\UpdateModel.php on line 1396
Couldnt get to the re-install core package page
@brianteeman Both code line you've mentioned haven't been changed by this PR, so the mistake seems to happen before that in the call stack. Can you switch on "Debug System" in Global Configuration so you can see the call stack?
Click to uncheck the "ignore warning" a second time (to uncheck it)
Uncaught TypeError: e.addAttribute is not a function at default.min.js?21f709b9142f3119910d9af57d0d8814:1 at Array.forEach (<anonymous>) at HTMLInputElement.l (default.min.js?21f709b9142f3119910d9af57d0d8814:1) (anonymous) @ default.min.js?21f709b9142f3119910d9af57d0d8814:1 l @ default.min.js?21f709b9142f3119910d9af57d0d8814:1
When an update has been found - clicking on the "check for updates" button in the toolbar produces a js error
core.js?c47dc50c9a8b9c85d135bbac3f47a6e9b4100832:389 Uncaught TypeError: Cannot read property 'task' of null at Object.Joomla.submitform (core.js?c47dc50c9a8b9c85d135bbac3f47a6e9b4100832:389) at Object.Joomla.submitbutton (core.js?c47dc50c9a8b9c85d135bbac3f47a6e9b4100832:446) at HTMLElement.executeTask (joomla-toolbar-button.js?176b6426ebbc64fc3b01addcab4f31ae384376d0:120) Joomla.submitform @ core.js?c47dc50c9a8b9c85d135bbac3f47a6e9b4100832:389 Joomla.submitbutton @ core.js?c47dc50c9a8b9c85d135bbac3f47a6e9b4100832:446 executeTask @ joomla-toolbar-button.js?176b6426ebbc64fc3b01addcab4f31ae384376d0:120
Thanks for the feedback so far. I'll look into it over the next days.
Two things to mention:
Thanks again for the feedback, will try to fix everything.
the language strings are indeed strange - its not you
it would be great to see it in an upcoming release candidate
please add the deleted files to the list in script.php
Just for transparency here - as we're refactoring strings as well here - I've discussed with @bembelimen and we agreed that either this goes in time for RC4 on Tuesday or it will get delayed for 4.1 stable. Obviously this is a massive improvement so it will get in one way or another.
Couldnt get to the re-install core package page
Could it be, that this notice is responsible that the reinstall does not work? I neither get the notice nor can't I re-install it. So if I click the button, I come to the re-install screen and get all files resetted.
Labels |
Added:
?
NPM Resource Changed
?
|
Couldnt get to the re-install core package page
Could it be, that this notice is responsible that the reinstall does not work?
No the notice was something else and unrelated. I think its something to do with the update servers or version?? See animation below.
Thanks for the screencast, now I can reproduce it and the explaination is very "easy" but also hard to solve: when you're at the default update channel, there is no version you can use (read: no link to rewrite the files). Same happens for the old version of the updater, so not really a bug here.
Category | Administration com_installer com_joomlaupdate Language & Strings JavaScript Repository NPM Change Layout | ⇒ | Administration com_admin com_installer com_joomlaupdate Language & Strings JavaScript Repository NPM Change Layout |
There is a popover :( that is not visually indicated and is not accessible from the keyboard. Oh and the text needs to be updated
Yeah, that's really ugly + via JS injected. I have no real idea how to improve it beside removing it at all... Could you attach the plugin you used to test, so I can test myself that way?
And would you be able to look through the language files and fix the biggest issues? Probably we get it in 4.0, if we're fast...
There is a popover :( that is not visually indicated and is not accessible from the keyboard. Oh and the text needs to be updated
Yeah, that's really ugly + via JS injected. I have no real idea how to improve it beside removing it at all... Could you attach the plugin you used to test, so I can test myself that way?
And would you be able to look through the language files and fix the biggest issues? Probably we get it in 4.0, if we're fast...
The mentioned plugin is inside PR #34743
TBH I wouldn't change it here, as the icons have different widths... so to make them all vertical aligned I have to fiddle around with px and it only works till someone changes the icons...so they're currently just right aligned
There is a specific css class to use on the icons to make them fixed width
.fa-fw, .icon-fw
TBH I wouldn't change it here, as the icons have different widths... so to make them all vertical aligned I have to fiddle around with px and it only works till someone changes the icons...so they're currently just right aligned
There is a specific css class to use on the icons to make them fixed width
.fa-fw, .icon-fw
Thx
(offline for the next few hours for media interviews - will check again (inc lang) this afternoon)
This list is grouped by version as well as sorted alphabetically so these files need to be moved to the section beginning
// 4.0 from RC 3 to RC 4
around line 5870
@brianteeman That's not right. The PR is good as it is regarding script.php. The files need to go to section "// From 3.10 to 4.0" because sections are not named by when the code was added to script.php but by the versions which are compared with the tool, and that's what this PR does.
Which is why it needs to be moved as the files were removed after rc3 and not after 3. 10
Otherwise it means all the files are in the wrong place
Which is why it needs to be moved as the files were removed after rc3 and not after 3. 10
@brianteeman No, you still don't get it. The sections are based on the versions of full packages which are compared by the tool, not on then something was added to script.php. If something is removed when updating from 3.10 to 4, like it is here, it belongs to the section "// From 3.10 to 4.0". Syy all my recent PR's for script.php where I have already moved other stuff.
Otherwise it means all the files are in the wrong place
No, nothing is at the wrong place right now in script.php.
But it's also removed when updating from RC3
But it's also removed when updating from RC3
@brianteeman Correct, and so it would be added to the script 2 times. The improved version of the tool which I used in recent times doesn't add something to a later section if it is already present in the "// From 3.10 to 4.0" section so we don't have duplicates.
where is this change in script.php documented
where is this change in script.php documented
@brianteeman Nowhere right now in documents, but in all those recent PR's I had made for script.php it is described.
We use a very similar visual display for "permissions" which uses webcomponent joomla-tab shouldnt that be used here as well
@brianteeman Nowhere right now in documents, but in all those recent PR's I had made for script.php it is described.
Thats a really hard fail.
@brianteeman Nowhere right now in documents, but in all those recent PR's I had made for script.php it is described.
Thats a really hard fail.
@brianteeman Do we have any documentation already telling how script.php needs to be updated? As far as I know not. So tell me where have I failed?
the behaviour has changed. before this undocumented change (even a comment in the code) I just needed to add a removed file to the list at the end. ie I only needed to know the version of joomla that the file is being removed from. Now I appear to also need to know which version of joomla that the file was created in
the behaviour has changed. before this undocumented change (even a comment in the code) I just needed to add a removed file to the list at the end. ie I only needed to know the version of joomla that the file is being removed from. Now I appear to also need to know which version of joomla that the file was created in
@brianteeman The point is that for J4 it has once been agreed that maintaining the list of deleted files and folders can not be left to the authors of PR's since it has become more complicated than in J3 to determine which files or folder to be added, e.g. due to the compilation of resources in J4 (build/media_source). That's why it has once been decided that the release lead runs a tool which currently is under development here #25559 , and because the release lead has lots of other stuff to do, too, when preparing a release, I took over that job from him and generate the lists before each RC release in recent times. So in general it is wrong that you require it to be done in PR's.
@wilsonge Please confirm.
and my point again is that this change is not documented at all and that as a result of this changed policy the updating of the list of files to remove should not be included in the PR at all.
I have tested this item
Tested following the testing instructions.
To complete the test, the layout layouts/joomla/content/emptystate.php is needed.
Using custom URL:
https://update.joomla.org/core/nightlies/next_major_list.xml
Clicking the icon goes to this screen. Clicking
Check for Updates
button displayChecked for updates.
message.
Hi thanks for the feedback, that is "intended" (or not different to the old version): #34754 (comment)
But probably we should change the title to "your current version is xxx" instead of "check if an update is available".
Plus the quickicon is misleading giving the impression that there is an update to perform.
Yeah, but can you rewrite the files in the 2nd tab?
I installed the prebuilt package: https://ci.joomla.org/artifacts/joomla/joomla-cms/4.0-dev/34754/downloads/45766/
The custom URL is same as yours but I don't get the same result.
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-07-13 10:30:52 |
Closed_By | ⇒ | wilsonge |
Thankyou!
But now it's merged, that might make a difference when applied in the next nightly build and RC4.
Especially thanks @brianteeman for the big review and @Quy for the improvements.
Also thanks for the testers
Sorry I just see I was wrong regarding the place in script.php where the deleted files should be added.
Not for the reasons which @brianteeman stated above - what I wrote about where things belong to is still right.
But I was missing the fact that in 3.10 these files are at another place (administrator/components/com_joomlaupdate/views/default/tmpl) and so the J3 files are already present in the "From 3.10 to 4.0" section, and the J4 files removed with this PR here should be moved to section "4.0 from RC 3 to RC 4" in the deleted files list in script.php.
I will make a PR to fix that.
lol
lol
@brianteeman Are you perfect so you never make mistakes? I am not, and I am aware of this and able to correct them, in opposite to other people around. And it changes nothing on what I have said about how that deleted files and folder lists are currently structured.
Thanks for this. Looks a big improvement. I will take a proper look at this tomorrow and report back. Just one thing that strikes me right away (and to be fair its true without this PR but this PR makes it more obvious).
It says "no update available."
Maybe it should be saying "press this big button to see if there are any updates"