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
Remove deprecated events #10455
Remove deprecated events #10455
Conversation
@@ -66,6 +84,7 @@ Read more about migrating a plugin from Piwik 2.X to Piwik 3 on our [Migration g | |||
* The JavaScript AjaxHelper has a new method `ajaxHelper.withTokenInUrl()` to easily send a token along a XHR. Within the Controller the existence of this token can be checked via `$this->checkTokenInUrl();` to prevent CSRF attacks. | |||
* The new class `Piwik\Updater\Migration\Factory` lets you easily create migrations that can be executed during an update. For example database or plugin related migrations. To generate a new update with migrations execute `./console generate:update`. | |||
* The new method `Piwik\Updater::executeMigration` lets you execute a single migration. | |||
* New event `ViewDataTable.filterViewDataTable` let's you filter available visualizations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the old ViewDataTable.addViewDataTable
and replaced it with ViewDataTable.filterViewDataTable
. In general we always want to add components via the PHP files and to filter things we always use events. The ViewDataTable.filterViewDataTable
is used and needed by Treemap plugin but will be also useful for other plugins
When merging we also need to create a PR and merge matomo-org/plugin-CustomDimensions@3.x-dev...8503 . It was not trivial to remove all deprecated events but most are removed. The failing screenshot tests are not related to this PR |
fixes #8503
replaces #8620
The 2 failing UI tests are rather random build errors: http://builds-artifacts.piwik.org/piwik/piwik/8503/14940/ We might have to update those screenshots after merging.
It was not as easy as simply removing all events as some were still in use. I already adjusted treemap plugin to be compatible with 2.X and 3.X