Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure to update plugin information before disabling plugins #16416

Merged
merged 3 commits into from Sep 10, 2020

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Sep 10, 2020

I upgraded 3.14.1 to Matomo 4.

Somehow Custom Variables was disabled afterwards. Then noticed:

  • We update core
  • We update plugins in a different request action=oneClickUpdatePartTwo
  • Then we check if there are incompatible plugins but I'm not sure if ever the updated plugin information is ever reloaded after updating the plugins in the previous action?

I'm not sure though. According to this theory I would have also expected that other plugins would have been disabled that were updated through the marketplace. Not sure how it worked for the marketplace plugins but not this one. There must be maybe some extra logic somewhere.

I think this used to work because when the marketplace plugin was updated, it used to reload the plugin see https://github.com/matomo-org/matomo/blob/3.14.1-rc1/plugins/CorePluginsAdmin/PluginInstaller.php#L73-L77

This used to be done in the same request. But since moving this out into a second request, the information is no longer updated. I think this is a regression from #15770

I upgraded 3.14.1 to Matomo 4.

Somehow Custom Variables was disabled afterwards. Then noticed:

* We update core 
* We update plugins in a different request `action=oneClickUpdatePartTwo`
* Then we check if there are incompatible plugins but I'm not sure if ever the updated plugin information is ever reloaded after updating the plugins in the previous action?

I'm not sure though. According to this theory I would have also expected that other plugins were disabled.
@tsteur tsteur added the Needs Review PRs that need a code review label Sep 10, 2020
@tsteur tsteur added this to the 3.14.1 milestone Sep 10, 2020
Copy link
Member

@diosmosis diosmosis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tsteur
Copy link
Member Author

tsteur commented Sep 10, 2020

tests look good, will merge and also apply to Matomo 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants