Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: use tz_offset when doing deployment dau query#7736

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 7 commits intomainfromstevenmasley/dau_fe_timezone
Jun 1, 2023

Conversation

Emyrk
Copy link
Member

Fixes#7275

@EmyrkEmyrk requested a review fromjohnstcnMay 31, 2023 16:53
@@ -453,7 +453,7 @@ func (q *fakeQuerier) GetTemplateDAUs(_ context.Context, arg database.GetTemplat
continue
}

date := as.CreatedAt.UTC().Add(time.Duration(arg.TzOffset) * time.Hour).Truncate(time.Hour * 24)
date := as.CreatedAt.UTC().Add(time.Duration(arg.TzOffset) * time.Hour * -1).Truncate(time.Hour * 24)
Copy link
Member

@johnstcnjohnstcnMay 31, 2023
edited
Loading

Choose a reason for hiding this comment

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

🤔 This change didn't break anything... which means that our unit tests probably aren't checking something that they should.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

You are half right.

I forgot to change it in the Dau dbfake function, which does break the unit test.

The template test does not break because I reverted the Template DAU to only useUTC again for performance reasons. So this is always0 as the offset.


tl;dr fixing it in the spot that is useddoes break the test

@EmyrkEmyrk requested a review fromjohnstcnMay 31, 2023 18:53
@ammarioammario changed the titlefeat: Have FE use tz_offset when doing deployment dau query.feat: have FE use tz_offset when doing deployment dau queryMay 31, 2023
@ammarioammario changed the titlefeat: have FE use tz_offset when doing deployment dau queryfeat: Have FE use tz_offset when doing deployment dau queryMay 31, 2023
@EmyrkEmyrk changed the titlefeat: Have FE use tz_offset when doing deployment dau queryfeat: use tz_offset when doing deployment dau queryJun 1, 2023
@EmyrkEmyrk merged commitcf8d2bc intomainJun 1, 2023
@EmyrkEmyrk deleted the stevenmasley/dau_fe_timezone branchJune 1, 2023 13:23
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 1, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@EmyrkEmyrk

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

bug: daily active users modal in Deployment tab is incorrect
2 participants
@Emyrk@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp