Skip to content

Fix the interval selection in the all time view - #3110

Merged
vinibrsl merged 1 commit into
plausible:masterfrom
krisbuist:fix-interval-all-time-view
Jul 27, 2023
Merged

Fix the interval selection in the all time view#3110
vinibrsl merged 1 commit into
plausible:masterfrom
krisbuist:fix-interval-all-time-view

Conversation

@krisbuist

Copy link
Copy Markdown
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
Copy Markdown
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.

@krisbuist
krisbuist force-pushed the fix-interval-all-time-view branch from 1890596 to 27b5ffe Compare July 12, 2023 07:29
@bundlemon

bundlemon Bot commented Jul 12, 2023

Copy link
Copy Markdown

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
@krisbuist
krisbuist force-pushed the fix-interval-all-time-view branch from 2e1dd81 to a33c663 Compare July 18, 2023 08:32

@vinibrsl vinibrsl left a comment

Copy link
Copy Markdown
Contributor

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
Comment thread CHANGELOG.md
- 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

@ruslandoga ruslandoga Aug 20, 2023

Copy link
Copy Markdown
Contributor

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.

3 participants