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

Change no data page logic according to core changes #450

Merged
merged 6 commits into from
Sep 18, 2023

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Sep 4, 2023

Description:

With matomo-org/matomo#21029 the handling of no data page will be fully refactored. This PR includes the requires changes for this plugin to work with the new core code.

Review

@sgiehl sgiehl force-pushed the refactornodatapage branch 2 times, most recently from e89a1c3 to 02e45a8 Compare September 17, 2023 09:38
@sgiehl sgiehl marked this pull request as ready for review September 17, 2023 09:58
@sgiehl
Copy link
Member Author

sgiehl commented Sep 17, 2023

@AltamashShaikh We have completely refactored how the no data screen works in Matomo. The changes here will adjust this plugin, so it show the tab as before. The changes will be part of Matomo 5.0.0-rc3, which was not yet released. Once that was released we might need to release a new version of this plugin with the changes in that PR as well.

return [
SiteContentDetector::class => \Piwik\DI::autowire(FakeSiteContentDetector::class)
->constructorParameter('mockData', $mockData)
->constructorParameter('detectedContentDetections', [Cloudflare::getId(), GoogleAnalytics3::getId()])
Copy link
Contributor

Choose a reason for hiding this comment

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

@sgiehl Similar changes would be required in ConenctAccounts and Cloud plugin

Copy link
Contributor

@AltamashShaikh AltamashShaikh left a comment

Choose a reason for hiding this comment

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

Looks good and everything works as expected, left just 1 change request for translation rest all looks good

@@ -7,6 +7,9 @@
*/
namespace Piwik\Plugins\GoogleAnalyticsImporter\tests\Fixtures;

use Piwik\Plugins\SEO\Metric\Google;
Copy link
Contributor

Choose a reason for hiding this comment

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

@sgiehl This use is required?

@AltamashShaikh
Copy link
Contributor

@sgiehl Can you also update this line in this PR as ga-import is changed to googleanalyticsimporter

@sgiehl
Copy link
Member Author

sgiehl commented Sep 18, 2023

@AltamashShaikh applied your feedback

@AltamashShaikh AltamashShaikh merged commit 8a519ef into 5.x-dev Sep 18, 2023
@AltamashShaikh AltamashShaikh deleted the refactornodatapage branch September 18, 2023 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants