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: for drives not showing if duration < 1 minute and feat: add max speed in drives dashboard #4284

Conversation

swiffer
Copy link
Contributor

@swiffer swiffer commented Oct 20, 2024

this is a fix for drives not showing in the drives dashboard if the duration_min is 0.

fallback to diff of end_date - start_date instead to calculate avg_speed.

this brings number of drives in line with drive stats dashboard.

in addition cherry pick changes from #4267

Copy link

netlify bot commented Oct 20, 2024

Deploy Preview for teslamate ready!

Name Link
🔨 Latest commit 8ca5cc7
🔍 Latest deploy log https://app.netlify.com/sites/teslamate/deploys/6714ac661d0851000892f405
😎 Deploy Preview https://deploy-preview-4284--teslamate.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@swiffer swiffer changed the title fix for drives not showing if duration < 1 minute fix for drives not showing if duration < 1 minute and add max speed in drives dashboard Oct 20, 2024
@JakobLichterfeld JakobLichterfeld added the area:dashboard Related to a Grafana dashboard label Oct 20, 2024
@JakobLichterfeld JakobLichterfeld changed the title fix for drives not showing if duration < 1 minute and add max speed in drives dashboard fix: for drives not showing if duration < 1 minute and feat: add max speed in drives dashboard Oct 20, 2024
@JakobLichterfeld JakobLichterfeld added kind:bug Something isn't working enhancement New feature or request labels Oct 20, 2024
Copy link
Collaborator

@JakobLichterfeld JakobLichterfeld left a comment

Choose a reason for hiding this comment

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

Thanks! And thanks for cherry-picking, makes life way easier. :-)

@JakobLichterfeld JakobLichterfeld merged commit 6249287 into teslamate-org:master Oct 20, 2024
15 checks passed
@swiffer swiffer deleted the fix-drives-not-showing-shorter-1-minute branch October 20, 2024 08:24
swiffer added a commit to swiffer/teslamate that referenced this pull request Oct 29, 2024
swiffer added a commit to swiffer/teslamate that referenced this pull request Oct 31, 2024
swiffer added a commit to swiffer/teslamate that referenced this pull request Nov 1, 2024
swiffer added a commit to swiffer/teslamate that referenced this pull request Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dashboard Related to a Grafana dashboard enhancement New feature or request kind:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants