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

Refactored the SEO plugin to make it extensible and error-proof #7174

Merged
merged 2 commits into from Feb 12, 2015

Conversation

mnapoli
Copy link
Contributor

@mnapoli mnapoli commented Feb 11, 2015

Also kinda related to #4172: as I said there I think we could move our implementations (that are now more decoupled) into a new Piwik "SEO" component.

…e and error-proof

- SEO metrics are returned by `MetricsProvider` implementations
- a new event `SEO.getMetricsProviders` allows other plugins to register `MetricsProvider`
- errors while connecting to a 3rd party service are now logged as warning, and shown in the widget as `-` instead of the values.
@mnapoli mnapoli changed the title Refactored the SEO plugin to make it more extensible and error-proof Refactored the SEO plugin to make it extensible and error-proof Feb 11, 2015
@mnapoli mnapoli added the c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. label Feb 11, 2015
@@ -0,0 +1,45 @@
<?php

Copy link
Member

Choose a reason for hiding this comment

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

  • piwik file headers missing in some of the new files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch ;)

@mattab mattab added this to the Piwik 2.11.0 milestone Feb 11, 2015
@mattab
Copy link
Member

mattab commented Feb 11, 2015

Very nice refactor! It would be nice to create a new component for SEO metrics, feel free to do it quick if you like the idea :-)

@mnapoli
Copy link
Contributor Author

mnapoli commented Feb 11, 2015

OK!

@mnapoli
Copy link
Contributor Author

mnapoli commented Feb 12, 2015

By the way, by OK I meant I'll look into it later but not in this PR especially since we need it for 2.11 ;)

So ready to be merged if all OK?

@mattab
Copy link
Member

mattab commented Feb 12, 2015

Looks good, I'll test it on demo2 and demo!

mattab pushed a commit that referenced this pull request Feb 12, 2015
Refactored the SEO plugin to make it extensible and error-proof
@mattab mattab merged commit c9770a9 into master Feb 12, 2015
@mnapoli mnapoli deleted the seo-metrics branch February 12, 2015 20:55
@mattab mattab added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Feb 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. 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

2 participants