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

Billing Enums & Filter fixes #663

Merged
merged 2 commits into from
Jan 25, 2024
Merged

Billing Enums & Filter fixes #663

merged 2 commits into from
Jan 25, 2024

Conversation

milo-hyben
Copy link
Contributor

When we refactor Billing models and extracted Billing enums to enum folder, the imports were not updated.
When running locally it was still working properly. A bit of annoying as linting did not report this as an issue either.
Bug only discovered when deployed to production.

The other fix is related to showing more than selected days on the chart. Issue is related to the way gcp billing records are digested and partitioned. GCP BQ table is partition by datetime it was loaded, however we need to display data based on usage_end_time, which could be off by a few days. To address it two filters needs to be used (one for usage_end_time and one for _PARTITIONTIME) when selecting from gcp table.

@milo-hyben milo-hyben changed the title Billing Enums fixes Billing Enums & Filter fixes Jan 25, 2024
@milo-hyben milo-hyben merged commit e63bda6 into dev Jan 25, 2024
2 checks passed
@milo-hyben milo-hyben deleted the billing-enum-fix branch January 25, 2024 05:13
milo-hyben added a commit that referenced this pull request Jan 25, 2024
Release: Billing Enums & Filter fixes (#663)
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.

2 participants