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 timeseries for the 7d period with hour interval #3363

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

krisbuist
Copy link
Contributor

When bucketing on hour, the current day needs to be taken into account for as well. The query executed on the database already contained the correct results, but they were omitted because too few buckets were selected

Changes

Please describe the changes made in the pull request here.

Below you'll find a checklist. For each item on the list, check one option and delete the other.

Tests

  • Automated tests have been added
  • This PR does not require tests

Changelog

  • Entry has been added to changelog
  • This PR does not make a user-facing change

Documentation

  • Docs have been updated
  • This change does not need a documentation update

Dark mode

  • The UI has been tested both in dark and light mode
  • This PR does not change the UI

@bundlemon
Copy link

bundlemon bot commented Sep 22, 2023

BundleMon

Unchanged files (7)
Status Path Size Limits
static/js/dashboard.js
318.59KB -
static/js/app.js
40.32KB -
static/css/app.css
14.46KB -
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
Copy link
Contributor Author

I'm wondering if this is actually a relevant fix or that the previous behaviour was intentional.
For me, the behaviour from this PR feels more intuitive, so that the "7d" period also shows the current day. But I might be overlooking something

When bucketing on hour, the current day needs to be taken into account for as well.
The query executed on the database already contained the correct results, but they were omitted because too few buckets were selected
@CLAassistant
Copy link

CLAassistant commented Mar 22, 2024

CLA assistant check
All committers have signed the CLA.

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