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

Comparing periods: Changing period type for row evolution graph not works #17582

Open
utrautmann opened this issue May 18, 2021 · 1 comment
Open
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@utrautmann
Copy link

Summary: Changing the time period for the row evolution graph not works, when I'm comparing two periods for a single page. It leads to an exception.

Steps to reproduce:

  1. Select period "Month" and compare it to "Previous year" in the Date picker above
  2. Goto Behaviour-->Pages and select one page and open "Open row evolution"
  3. Click "Pick a row to compare" and select the same page with the period for the previous year. Now the row evolution opens again.
  4. If I try to select another "time period" for the graph (I try to select "Day" - see screenshot please) then nothing happens (in the background/ Log I find an exception : Uncaught exception: /is/htdocs/wp11188790_QHUN7F9B27/www/piwik/core/Period/Factory.php(131): Der Zeitraum '' wird nicht unterstützt. Versuchen Sie es stattdessen mit einem der folgenden: day, week, month, year, range

grafik

Comparing periods only works in the graph, if the selected period in the date picker above is the same like for the graph,

  • Matomo Version: 4.2.1, 4.3
@utrautmann utrautmann added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label May 18, 2021
@diosmosis diosmosis added Bug For errors / faults / flaws / inconsistencies etc. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels May 18, 2021
@diosmosis
Copy link
Member

Confirmed this is a bug. Changing the period will only change the current period type, not the period type of the period we are comparing to.

Additionally, changing the period back in the graph, will incorrectly set the date using the end date of the period. So if we have a day, 2021-05-04 compared with 2021-05-03, then change the period to week, 2021-05-04 will change to 2021-05-03,2021-05-09. If we change it back to a day, it becomes 2021-05-09, instead of 2021-05-04.

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.
Projects
None yet
Development

No branches or pull requests

3 participants