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

Fix all time view of author analytics for old users #9156

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Will-Howard
Copy link
Collaborator

@Will-Howard Will-Howard commented Apr 23, 2024

Fixes an issue where the "all time" view for users with very old accounts would start before there was any data (reported in slack). This is because we didn't start collecting views/reads data until later, and it was including any range for which there was karma or comment data. Now it only uses the range where there is data for the fields that are selected (out of ["views", "reads", "karma", "comments"])

┆Issue is synchronized with this Asana task by Unito

@Will-Howard Will-Howard marked this pull request as ready for review April 23, 2024 17:24
@Will-Howard Will-Howard requested a review from a team as a code owner April 23, 2024 17:24
@Will-Howard Will-Howard requested review from s-cheng and removed request for a team April 23, 2024 17:24
@@ -191,7 +191,6 @@ addGraphQLResolvers({
const INDIRECTLY_SORTABLE_FIELDS = ["views", "reads"];

const { currentUser } = context;
const analyticsDb = getAnalyticsConnectionOrThrow();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These were unused

@Will-Howard
Copy link
Collaborator Author

Discovered a off by one error in time ranges where there is no date, drafting for now

@Will-Howard Will-Howard marked this pull request as draft April 25, 2024 09:30
@sync-by-unito sync-by-unito bot assigned Will-Howard and unassigned s-cheng Apr 29, 2024
@s-cheng s-cheng removed their request for review May 3, 2024 17:40
@s-cheng
Copy link
Collaborator

s-cheng commented May 3, 2024

@Will-Howard FYI I'm taking myself off of this PR since I'm going on vacation

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.

None yet

2 participants