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

[Backport-5.0] [fix] fixes for mau calculations in product analytics (#52581) #52682

Merged
merged 1 commit into from
May 31, 2023

Conversation

kopancek
Copy link
Contributor

Fixes MAU calculation in usage analytics in the product.

Previously we were filtering out the backend events, but as part of
was not part of the BuildCommonUsageConds in the event_logs. However
event_logs also add this condition directly in the query string, which I
did not notice.

Also, our timestamp calculation suffered from an edge case, where the
from time was not calculated right, e.g. on dates like
`2023-04-30T23:59:00Z`.

Tested locally and with customer data + added unit tests.

(cherry picked from commit ee6e66e)
@kopancek kopancek requested a review from a team May 31, 2023 08:59
@kopancek kopancek self-assigned this May 31, 2023
@cla-bot cla-bot bot added the cla-signed label May 31, 2023
@keegancsmith keegancsmith enabled auto-merge (squash) May 31, 2023 09:04
@keegancsmith keegancsmith merged commit 00d83fe into 5.0 May 31, 2023
@keegancsmith keegancsmith deleted the backport-52581-to-5.0 branch May 31, 2023 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants