Language Change bug PR-4.3-dev ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
6 Jan 2023

pr for #38702

What?

People are using the upload and update with the full package. This does not work and will break the install

Why?

No update available

  1. The text refers to an update zip but there is no such file - just an upgrade
  2. The link takes them to the download.joomla.org/latest page and this does not include and upgrade files - only the full install which we dont want people to use.
    summary - no correct link
    image

Update available

  1. The text refers to an update zip but there is no such file - just an upgrade
  2. The link takes them to the download.joomla.org/latest page and this does not include and upgrade files - only the full install which we dont want people to use.
  3. An additional message has a link to directly download the update.
    summary - one correct link and one incorrect link
    image

Solution

  1. The text now refers to an upgrade package
  2. If an update is not available the link now goes to the current version page which does contain the upgrade zip needed
  3. If an update is available there is now only one link and it is to directly download the correct zip
  4. The label of the update link now refers to an upgrade package

Expected result

image

Testing

To test edit libraries\src\Version.php

use these values for testing update available

    public const MAJOR_VERSION = 4;
    public const MINOR_VERSION = 2;
    public const PATCH_VERSION = 5;
    public const EXTRA_VERSION = '';

use these values for testing no update available

    public const MAJOR_VERSION = 4;
    public const MINOR_VERSION = 2;
    public const PATCH_VERSION = 6;
    public const EXTRA_VERSION = '';

update
if you are using an alpha, beta or nightly then the link goes to the nightly builds page

happy to accept code improvements to the if queries

avatar joomla-cms-bot joomla-cms-bot - change - 6 Jan 2023
Category Administration com_joomlaupdate Language & Strings
avatar brianteeman brianteeman - open - 6 Jan 2023
avatar brianteeman brianteeman - change - 6 Jan 2023
Status New Pending
avatar brianteeman brianteeman - change - 6 Jan 2023
The description was changed
avatar brianteeman brianteeman - edited - 6 Jan 2023
avatar brianteeman brianteeman - change - 6 Jan 2023
The description was changed
avatar brianteeman brianteeman - edited - 6 Jan 2023
f63467c 6 Jan 2023 avatar brianteeman cs
avatar brianteeman brianteeman - change - 6 Jan 2023
Labels Added: Language Change ?
avatar brianteeman
brianteeman - comment - 7 Jan 2023

@richard67 I guess I could additionally check to see if DEV_STATUS = Development and then either remove the link or link to the nightly page https://developer.joomla.org/nightly-builds.html

avatar richard67
richard67 - comment - 7 Jan 2023

@richard67 I guess I could additionally check to see if DEV_STATUS = Development and then either remove the link or link to the nightly page https://developer.joomla.org/nightly-builds.html

@brianteeman That could be a way. Not sure yet which of the 2 is better. Let's see if we get more opinions.

avatar brianteeman brianteeman - change - 7 Jan 2023
The description was changed
avatar brianteeman brianteeman - edited - 7 Jan 2023
avatar brianteeman
brianteeman - comment - 7 Jan 2023

PR updated and original description updated

avatar richard67
richard67 - comment - 7 Jan 2023

I will check and test tomorrow.

avatar richard67
richard67 - comment - 8 Jan 2023

@brianteeman When testing on a development environment with the current branch of this PR (or with a 4.2-dev branch and this PR's changes applied), it needs to patch also the following in the Version.php file, in addition to what you have mentioned already in the testing instructions:
public const DEV_STATUS = 'Stable';

In addition, it needs to go to the database checker after having modified Version.php. It will report a CMS version mismatch with the database. Using the fix button will then update it in the database to what is in Version.php. This was necessary for me to get an update found.

Maybe the testing instructions should be updated by the above findings.

For testing development status, I have done tests with several patches of Version.php, e.g. not only development but also alpha, beta and rc packages. Everything which is not stable, i.e. also alpha, beta and rc, are considered as development status and so the link goes to the nightly builds for these. I am ok with that, just wanted to mention.

In general I am not sure if it is a good thing that when an update is found, the link points to the zip package directly, and in other cases to different download sites depending on stable or development, all with the same link text "the official Joomla download page". Maybe this can confuse the user? I'd like to have more opinions from others on this.

avatar brianteeman
brianteeman - comment - 8 Jan 2023

In general I am not sure if it is a good thing that when an update is found, the link points to the zip package directly,

That is the behaviour before this PR

avatar richard67
richard67 - comment - 8 Jan 2023

In general I am not sure if it is a good thing that when an update is found, the link points to the zip package directly,

That is the behaviour before this PR

@brianteeman Not 100%. Without this PR, the download link is in an additional message, and the link in the regular message still allows to go to the downloads page and then using the diverse buttons to come to the upgrade package. In past (3.10), people could use this link to download one of the smaller patch packages. With your PR that would not be possible anymore. Ok, currently we don't build the patch packages so your PR is ok. But as soon as we make that work again and build the patch packages, people would not be able to find a suitable link.

So maybe it would be good to have 2 messages like before, the first one with your change for either pointing to the download page of the nightlies if on a development version or the download page of the current version when on a stable version, so people could still find patch packages there when we build them again in future, and optionally the 2nd message with the download link of the update when an update has been found.

avatar richard67
richard67 - comment - 8 Jan 2023

P.S.: I do not request any changes. Am only making suggestions for further discussion.

avatar HLeithner
HLeithner - comment - 2 May 2023

This pull request has been automatically rebased to 4.3-dev.

avatar obuisard obuisard - change - 15 Jul 2023
Title
[4.2] Manual Update
[4.3] Manual Update
avatar obuisard obuisard - edited - 15 Jul 2023
avatar brianteeman brianteeman - change - 8 Sep 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-09-08 11:48:07
Closed_By brianteeman
Labels Added: bug PR-4.3-dev ?
Removed: ?
avatar brianteeman brianteeman - close - 8 Sep 2023

Add a Comment

Login with GitHub to post a comment