Revolution: Update Dashboard widget shows unreleased (and unstable versions)

Created on 5 Mar 2021  路  1Comment  路  Source: modxcms/revolution

Bug report

Summary

The update widget does not show the correct versions to update to.

Step to reproduce

Either install a previous 3.x version, or mock your local version by changing the local values in /core/docs/version.inc.php, e.g. to 3.0.0-alpha2. See that the widget is showing you an update, although the latest published release is -alpha2.

Observed behavior

  • the widget shows you that an update is available to version 3.0.0-alpha3. But this is the current build version, and has not yet been released (at the time of writing here). Therefore also the click on the update button (wrong label!), which leads you to the download page, is kind of useless, as it does not offer a zip to download for the version (you would need the nightly build).
  • as the update information is gathered from the build file in the 3.x branch, it will _always_ show you that an update is available - unless you are using a git installation, which potentially - if you pulled recently, contains the same version information. In all other cases, mainly normal installations, the repo buildfile will always be ahead of the recently released tarballs...
  • the widget will show you core updates available regardless of the patch level here. Most people will only be interested in stable versions, so only those updates should be shown.

Expected behavior

  • widget should get its information for released versions (exception: if you have a git based install, it may be ok to show the nightly upcoming version)
  • widget should show you only stable versions (with a system setting allowing you to optin to unstable versions if you want)
  • as long as no update is possible inplace (probably never), the button should be renamed to "To Download" or something. We could also directly offer the download for the correct tarball, because those links are constructable easily.

Environment

MODX version: 3.x (git)

type-frontend bug

Most helpful comment

I am already working on that, because most of the problems have already been solved with the updater extra. As this extra does not make sense any more for the 3.x version, I decided not to work on that any more regarding 3 compatibility, instead spend the time better to improve this - now being core - functionality.

>All comments

I am already working on that, because most of the problems have already been solved with the updater extra. As this extra does not make sense any more for the 3.x version, I decided not to work on that any more regarding 3 compatibility, instead spend the time better to improve this - now being core - functionality.

Was this page helpful?
0 / 5 - 0 ratings