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

Don't sum row columns #15042

Closed
wants to merge 1 commit into from
Closed

Don't sum row columns #15042

wants to merge 1 commit into from

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Oct 23, 2019

Not sure what side effects this may have. Was first solving this in MediaAnayltics to prevent notices such as:

WARNING MediaAnalytics[2019-09-23 19:22:13 UTC] [3489 ...] Trying to add two strings in DataTable\Row::sumRowArray: https:/... + https://...) for column url in row # ['label' => -1, 'nb_plays' => 8, 'nb_unique_visitors_plays' => 3, 'nb_impressions' => 80, 'nb_unique_visitors_impressions' => 47, 'nb_finishes' => 5, 'sum_media_length' => 120, 'sum_time_watched' => 87, 'sum_time_to_play' => 10, 'sum_time_progress' => 84, 'nb_plays_with_tip' => 8, 'nb_plays_with_ml' => 8, 'sum_fullscreen_plays' => 0, 'url' => 'https://...'] [] [idsubtable = ]

but then also noticed this problem in other plugins such as Funnels. Maybe that fixes it for all plugins considering url is a common column maybe in Matomo and it shouldn't be summable?

Not sure what side effects this may have. Was first solving this in MediaAnayltics to prevent notices such as:

> WARNING MediaAnalytics[2019-09-23 19:22:13 UTC] [3489 ...] Trying to add two strings in DataTable\Row::sumRowArray: https:/... + https://...) for column url in row # ['label' => -1, 'nb_plays' => 8, 'nb_unique_visitors_plays' => 3, 'nb_impressions' => 80, 'nb_unique_visitors_impressions' => 47, 'nb_finishes' => 5, 'sum_media_length' => 120, 'sum_time_watched' => 87, 'sum_time_to_play' => 10, 'sum_time_progress' => 84, 'nb_plays_with_tip' => 8, 'nb_plays_with_ml' => 8, 'sum_fullscreen_plays' => 0, 'url' => 'https://...'] [] [idsubtable = ]<br />

but then also noticed this problem in other plugins such as Funnels. Maybe that fixes it for all plugins considering `url` is a common column maybe in Matomo and it shouldn't be summable?
@tsteur tsteur added the Needs Review PRs that need a code review label Oct 23, 2019
@tsteur tsteur added this to the 3.13.0 milestone Oct 23, 2019
@tsteur
Copy link
Member Author

tsteur commented Oct 23, 2019

Actually, the url column should be metadata so it shouldn't be summed there

@tsteur tsteur closed this Oct 23, 2019
@mattab mattab modified the milestones: 3.13.0, 3.12.0 Oct 25, 2019
@tsteur tsteur deleted the nosumrowcolumn branch April 15, 2020 04:33
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