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

Removes deprecated methods #10815

Merged
merged 7 commits into from Nov 1, 2016
Merged

Removes deprecated methods #10815

merged 7 commits into from Nov 1, 2016

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Oct 31, 2016

As tests are currently failing due to not removed deprecated methods, I had a quick look and removed the methods we had tests for.

I only didn't remove/replace the method Plugin::getListHooksRegistered() as the removal was announced for Piwik 4 in changelog. Have adjusted the test in that case. Or shall we remove that for Piwik 3?

Also opened matomo-org/plugin-TasksTimetable#10 and matomo-org/plugin-SecurityInfo#17 to fix the plugins as they were still using Menu::add()

@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Oct 31, 2016
@sgiehl sgiehl added this to the 3.0.0-b3 milestone Oct 31, 2016
@tsteur
Copy link
Member

tsteur commented Nov 1, 2016

We should keep getListHooksRegistered for Piwik 3 👍

Some tests are failing. Once merged we need to release new versions of the plugins on the Marketplace and require Piwik 3b3

@sgiehl
Copy link
Member Author

sgiehl commented Nov 1, 2016

Updated the plugins. Requiring 3b3 in the new plugin versions wasn't required, as the changes should work with all 3.x versions.
Updated the submodules here. That should fix the tests I guess.

@tsteur
Copy link
Member

tsteur commented Nov 1, 2016

True, the new menu methods already existed before so no need to require new version 👍

@sgiehl
Copy link
Member Author

sgiehl commented Nov 1, 2016

Last build, with updated submodules, had "only" failing UI tests. But those are also failing on 3.x-dev branch...

@tsteur
Copy link
Member

tsteur commented Nov 1, 2016

Sweet, feel free to merge 👍

@sgiehl sgiehl merged commit 04ae85b into 3.x-dev Nov 1, 2016
@sgiehl sgiehl deleted the removedeprecatedmenuadd branch November 1, 2016 22:28

public function renameUserSettingsModuleAndAction(&$module, &$action)
{
if ($module == 'UserSettings' && $action == 'getPlugin') {
Copy link
Member

Choose a reason for hiding this comment

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

@sgiehl why removing this as well, as it would break Embed widgets and is not needed to deprecate IMHO

@@ -23,7 +23,6 @@ public function registerEvents()
{
return array(
'Live.getAllVisitorDetails' => 'extendVisitorDetails',
'Request.getRenamedModuleAndAction' => 'renameUserSettingsModuleAndAction',
Copy link
Member

Choose a reason for hiding this comment

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

wouldn't remove this

Copy link
Member

Choose a reason for hiding this comment

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

We had marked them as to be removed from Piwik 3

Copy link
Member

Choose a reason for hiding this comment

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

Not sure why it was marked that way, as IMO there is no value to removing these calls. there is no code complexity involved for us, but as a result we would force people to change some URLs deep into their app or product... which would be time consuming for them

Copy link
Member

Choose a reason for hiding this comment

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

created #10831 to follow up

@@ -23,7 +23,6 @@ public function registerEvents()
{
return array(
'Live.getAllVisitorDetails' => 'extendVisitorDetails',
'Request.getRenamedModuleAndAction' => 'renameUserSettingsModuleAndAction',
Copy link
Member

Choose a reason for hiding this comment

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

idem for all 'Request.getRenamedModuleAndAction' listeners

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 not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants