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

Add test to ensure there are no plugin updates for core plugins #15815

Merged
merged 2 commits into from Apr 15, 2020
Merged

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Apr 15, 2020

fix #11221

see #11221 (comment) and below.

Basically things are working except if someone was to manually remove a plugin from PluginInstalled. We basically don't want to define plugin updates for core plugins anyway and rather want to ensure to have them in core/Updates.

This test worked for me. I was basically copying a test into Goals plugin and then the test failed

image

@tsteur tsteur added the Needs Review PRs that need a code review label Apr 15, 2020
@tsteur tsteur added this to the 4.0.0 milestone Apr 15, 2020
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

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

Left some comments. Otherwise looks good to merge

tests/PHPUnit/Integration/ReleaseCheckListTest.php Outdated Show resolved Hide resolved
tests/PHPUnit/Integration/ReleaseCheckListTest.php Outdated Show resolved Hide resolved
$numTestedCorePlugins = 0;

// eg these plugins are managed in a submodule and they are installing all tables/columns as part of their plugin install method etc.
$corePluginsThatAreIndependent = array('TagManager');
Copy link
Member Author

Choose a reason for hiding this comment

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

we can add later more plugins when/if needed

@tsteur tsteur merged commit 97cf78a into 4.x-dev Apr 15, 2020
@tsteur tsteur deleted the m11221 branch April 15, 2020 20:22
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.

when a core plugin was disabled during piwik core update, the core plugin's update was not actually executed?
2 participants