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

Hide unavailable metrics in graphs #14996

Merged
merged 1 commit into from Oct 13, 2019
Merged

Hide unavailable metrics in graphs #14996

merged 1 commit into from Oct 13, 2019

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Oct 11, 2019

fixes #14881

@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Oct 11, 2019
@sgiehl sgiehl added this to the 3.12.0 milestone Oct 11, 2019
@tsteur tsteur merged commit b6683b5 into 3.x-dev Oct 13, 2019
@tsteur tsteur deleted the hideunavailmetrics branch October 13, 2019 20:44
tsteur added a commit that referenced this pull request Oct 22, 2019
refs #15033 
it might fix that issue

fixes a regression from #14996

When you have the Visits over time for example in the dashboard, view day period, select unique visitors, then select year period, it will then show visits metric instead of unique visitors because unique visitors is not available for year. The visits metric will not show any data though because it had the `&columns=nb_unique_visitors` param applied and the visits metric was never fetched. That's because in #14996 the metric was replaced after the dataTable was being requested. Trying to do this now before requesting dataTable too. Not sure what other regressions this could potentially introduce...
tsteur added a commit that referenced this pull request Oct 22, 2019
refs #15033 
it might fix that issue

fixes a regression from #14996

When you have the Visits over time for example in the dashboard, view day period, select unique visitors, then select year period, it will then show visits metric instead of unique visitors because unique visitors is not available for year. The visits metric will not show any data though because it had the `&columns=nb_unique_visitors` param applied and the visits metric was never fetched. That's because in #14996 the metric was replaced after the dataTable was being requested. Trying to do this now before requesting dataTable too. Not sure what other regressions this could potentially introduce...
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 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.

Unique Visitors metric appear in Graph metric selector for periods for which the metric is disabled
2 participants