System check: Add Matomo Version History and download feature #16386
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have this already in Matomo for WordPress and I found this update history super valuable in order to know between which versions a feature potentially regressed. Especially for the big Matomo 4 update where there might be various regressions and issues I'm thinking it will be super valuable to know from what version someone upgraded.
Put it for now in the
Updater::updateComponents
method because this is executed for UI Updates and CLI updates and especially because it will make sure that we get this information already for people updating from Matomo 3.X or 2.X to the latest Matomo 4 version. We could have put it into some other places and even done it in a task and simply recordedVersion::VERSION
etc but then we might not have gotten the information from which version they updated to Matomo 4.There's currently always a trailing end since I don't check if the value is empty in $history but that shouldn't be too important.