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 the interval selection in the all time view #3110

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

krisbuist
Copy link
Contributor

Previously, the interval was always overwritten with the default value, which is determined based on the age of the site. It should not be overwritten when the interval is explicitly passed by the user

Fixes issue #2982

Changes

The way the query is build for the given params has been edited so that the default interval for the "all" period is only set when there is no interval in the passed params

Tests

  • Automated tests have been added

Changelog

  • Entry has been added to changelog

Documentation

  • This change does not need a documentation update

Dark mode

  • The UI has been tested both in dark and light mode

@krisbuist
Copy link
Contributor Author

Not sure if this will cause issues (again?) like described in #2713 because the daily view of all time can be quite hefty to load.

@bundlemon
Copy link

bundlemon bot commented Jul 12, 2023

BundleMon

Unchanged files (7)
Status Path Size Limits
static/css/app.css
492.34KB -
static/js/dashboard.js
318.21KB -
static/js/app.js
40.1KB -
static/js/embed.host.js
5.58KB -
static/js/embed.content.js
5.08KB -
tracker/js/plausible.js
742B -
static/js/applyTheme.js
314B -

No change in files bundle size

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@krisbuist krisbuist force-pushed the fix-interval-all-time-view branch 2 times, most recently from 70aa75e to 2e1dd81 Compare July 17, 2023 07:53
Previously, the interval was always overwritten with the default value, which is determined based on the age of the site.
It should not be overwritten when the interval is explicitly passed by the user
Copy link
Contributor

@vinibrsl vinibrsl left a comment

Choose a reason for hiding this comment

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

Thank you, @krisbuist! There's still the performance issue with all time + daily interval, but this could happen with custom periods or even the year period. Let's track that in a separate issue and merge your fix. Thanks again! ✨

@vinibrsl vinibrsl merged commit 7c5ebab into plausible:master Jul 27, 2023
3 of 6 checks passed
@@ -40,6 +40,7 @@ All notable changes to this project will be documented in this file.
- Fix bug when using multiple [wildcard goal filters](https://github.com/plausible/analytics/pull/3015)
- Fix a bug where realtime would fail with imported data
- Fix a bug where the country name was not shown when [filtering through the map](https://github.com/plausible/analytics/issues/3086)
- Fix [broken interval selection](https://github.com/plausible/analytics/issues/3086) in the all time view
Copy link
Contributor

@ruslandoga ruslandoga Aug 20, 2023

Choose a reason for hiding this comment

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

This should've probably gone under "Unreleased"

Reference: #2982 (comment)
Fix: #3280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants