Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

[Backport 5.0] [fix] use same where condition in user analytics as in pings for mau#52608

Merged
coury-clark merged 2 commits into
5.0from
backport-52306-to-5.0
May 31, 2023
Merged

[Backport 5.0] [fix] use same where condition in user analytics as in pings for mau#52608
coury-clark merged 2 commits into
5.0from
backport-52306-to-5.0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Previously we used a different condition to calculate the MAU and other stats in user analytics page. Now we use the same condition as we use for pings. We also calculate everything using UTC now, so both should give the same value.

Test plan

Tested locally and also with data from Tinder. The new query for MAU seems to be returning the correct data for us, I manually cross-referenced the old query vs the new. Apart from the timezone difference, the new query is more precise as in it filters the sourcegraph-operator users and non-user events in the same way as we do for the pings.

Backport 8d04aa1 from #52306

@coury-clark coury-clark enabled auto-merge (squash) May 30, 2023 16:36
…52306)

Previously we used a different condition to calculate the MAU and other
stats in user analytics page. Now we use the same condition as we use
for pings. We also calculate everything using UTC now, so both should
give the same value.

## Test plan

Tested locally and also with data from Tinder. The new query for MAU
seems to be returning the correct data for us, I manually
cross-referenced the old query vs the new. Apart from the timezone
difference, the new query is more precise as in it filters the
sourcegraph-operator users and non-user events in the same way as we do
for the pings.

(cherry picked from commit 8d04aa1)
@kopancek kopancek force-pushed the backport-52306-to-5.0 branch from b7b302f to 5d2e7a3 Compare May 31, 2023 06:28
@coury-clark coury-clark merged commit 15c6359 into 5.0 May 31, 2023
@coury-clark coury-clark deleted the backport-52306-to-5.0 branch May 31, 2023 08:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants