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

Fix few bugs in sparklines visualisation when there is no row #17728

Merged
merged 4 commits into from Jun 30, 2021

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Jun 30, 2021

Description:

Fixes two issues for sparklines visualisation when no row is found. Seems so far we did not have this use case in core:

First error:

  • Call to a member function getComparisons() on bool in plugins/CoreVisualizations/Visualizations/Sparklines.php line 125
  • Call to a member function getColumn() on bool in plugins/CoreVisualizations/Visualizations/Sparklines.php line 275

Before:
image

After:
image

You can reproduce this for example using such a URL:

  • /index.php?forceView=1&viewDataTable=sparklines&module=ExampleUI&action=getTemperaturesEvolution&label=example32323.matomo.org&idSite=1&period=month&date=2021-06-17&segment=&showtitle=1&random=7773&widget=1

image

Review

  • Functional review done
  • Potential edge cases thought about (behavior of the code with strange input, with strange internal state or possible interactions with other Matomo subsystems)
  • Usability review done (is anything maybe unclear or think about anything that would cause people to reach out to support)
  • Security review done see checklist
  • Code review done
  • Tests were added if useful/possible
  • Reviewed for breaking changes
  • Developer changelog updated if needed
  • Documentation added if needed
  • Existing documentation updated if needed

@tsteur tsteur added this to the 4.4.0 milestone Jun 30, 2021
@tsteur tsteur marked this pull request as draft June 30, 2021 00:55
@tsteur tsteur marked this pull request as ready for review June 30, 2021 03:34
@tsteur tsteur added the Needs Review PRs that need a code review label Jun 30, 2021
@diosmosis diosmosis added the Bug For errors / faults / flaws / inconsistencies etc. label Jun 30, 2021
@diosmosis diosmosis merged commit 264407f into 4.x-dev Jun 30, 2021
@diosmosis diosmosis deleted the sparklinesvisnorow branch June 30, 2021 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. 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