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

Remove deprecated events #10455

Merged
merged 11 commits into from Sep 1, 2016
Merged

Remove deprecated events #10455

merged 11 commits into from Sep 1, 2016

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Aug 30, 2016

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

@tsteur tsteur added the Needs Review PRs that need a code review label Aug 30, 2016
@tsteur tsteur added this to the 3.0.0-b1 milestone Aug 30, 2016
@tsteur tsteur mentioned this pull request Aug 30, 2016
@@ -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
Copy link
Member Author

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

@tsteur
Copy link
Member Author

tsteur commented Aug 31, 2016

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

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.

Remove deprecated events
1 participant