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

Added events for adding and filtering profile summaries #12303

Merged
merged 2 commits into from Nov 27, 2017

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Nov 27, 2017

@sgiehl adding events similar to visitor details events. Will be needed in next release if possible.

@tsteur tsteur added the Needs Review PRs that need a code review label Nov 27, 2017
@tsteur tsteur added this to the 3.2.1 milestone Nov 27, 2017
@tsteur tsteur requested a review from sgiehl November 27, 2017 20:16
*
* @param ProfileSummaryAbstract[] $profileSummaries An array of profile summaries
*/
Piwik::postEvent('Live.addProfileSummaries', array(&$instances));
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 if we should introduce an event for adding summaries, as this is done automatically by looking for classes extending the ProfileSummary class.

Copy link
Member Author

Choose a reason for hiding this comment

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

It is basically the same as for Visitor Details, Widgets, Reports, ... this way, it allows plugins that define entities, such as custom dimensions, to add for example a profile summary for each entity / custom dimension. It is just a general thing that we do so far as not always it is possible to have it in the plugin structure.

Copy link
Member

Choose a reason for hiding this comment

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

ah sure. Guess I haven't thought enough before writing the comment...

@tsteur
Copy link
Member Author

tsteur commented Nov 27, 2017

UI test failures seem to be random failures by the looks or not related to this PR: eg https://builds-artifacts.piwik.org/piwik/piwik/3.x-dev/25168/UIIntegrationTest_dashboard2.png

@sgiehl
Copy link
Member

sgiehl commented Nov 27, 2017

Those failures are related to #12220 I guess

@tsteur tsteur merged commit 1ff4c85 into 3.x-dev Nov 27, 2017
@tsteur tsteur deleted the profilesummaryevents branch November 27, 2017 21:56
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.

None yet

2 participants