Skip to content

fix(coderd): fix template insight intervals #8662

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

Merged
merged 4 commits into from
Jul 21, 2023

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Jul 21, 2023

For a range like start_time=2023-07-20T00:00:00Z and end_time=2023-07-21T00:00:00Z, generate_series created an additional range with start_time=2023-07-21T00:00:00Z and end_time=2023-07-22T00:00:00Z (outside the range). We fix this by subracting one second from the end time.

The interval report query also had a bug in how relevant template_ids were being selected.

@mafredri mafredri enabled auto-merge (squash) July 21, 2023 20:13
@mafredri mafredri merged commit e0c1aac into main Jul 21, 2023
@mafredri mafredri deleted the mafredri/fix-coderd-insights-intervals branch July 21, 2023 20:51
@github-actions github-actions bot locked and limited conversation to collaborators Jul 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants