statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
32 stars 1 forks source link

Don't show update notification if current version is greater than "latest" #1237

Closed finnjsmith closed 1 month ago

finnjsmith commented 1 month ago

I usually update all my dependencies via CLI, using composer and npm. This sometimes ends up bumping the latest stable version of a package to a version which is greater than the one suggested in the "updates" section of the control panel, see here with the Eloquent Driver package: Screenshot 2024-10-11 at 08 33 39

I am proposing that the control panel notification should only show up if the current version of the package is < the most recent version shown in the control panel, rather than just the != which is how it works currently.

duncanmcclean commented 1 month ago

There should never really be a situaton where you have a newer version installed than we have listed on the changelog. It's a known issue at the moment, see statamic/cms#10277.

efc commented 4 weeks ago

There "should" never be, but that is clearly not always the case. Infrastructure does sometimes have problems. I think a sanity check like this would be helpful. For example, couldn't this also happen if someone is developing an addon and has a more recent "version" installed locally than statamic.com knows about in the changelog? If Statamic could sense that a greater version number is installed than is evident on the changelog, maybe it could suppress the update badge but include some indication (like a caution badge) in the updates list?