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

Track a user's last activity #5781

Merged
merged 2 commits into from
Jul 20, 2023
Merged

Track a user's last activity #5781

merged 2 commits into from
Jul 20, 2023

Conversation

stnguyen90
Copy link
Contributor

@stnguyen90 stnguyen90 commented Jul 7, 2023

What does this PR do?

A user will have an accessedAt timestamp that will update at most once per day if they make some API call. This timestamp can then be used find active users and calculate daily, weekly, and monthly active users.

Test Plan

Automated tests

Related PRs and Issues

Blocks:

Depends on:

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@stnguyen90 stnguyen90 marked this pull request as ready for review July 7, 2023 04:37
@stnguyen90 stnguyen90 force-pushed the feat-last-user-activity branch 4 times, most recently from 2d3a4f3 to 98ce832 Compare July 8, 2023 02:38
@stnguyen90 stnguyen90 force-pushed the feat-last-user-activity branch from 98ce832 to 31e8e81 Compare July 11, 2023 17:13
@stnguyen90 stnguyen90 force-pushed the feat-last-user-activity branch from 31e8e81 to c8f09f4 Compare July 13, 2023 00:55
composer.json Outdated Show resolved Hide resolved
@stnguyen90 stnguyen90 force-pushed the feat-last-user-activity branch from c8f09f4 to 0ce3969 Compare July 17, 2023 20:55
@stnguyen90 stnguyen90 requested a review from eldadfux July 17, 2023 21:31
@stnguyen90 stnguyen90 force-pushed the feat-last-user-activity branch 2 times, most recently from 733b6e5 to 8e5a554 Compare July 18, 2023 23:24
@stnguyen90 stnguyen90 force-pushed the feat-last-user-activity branch 5 times, most recently from 515b959 to 9aa168e Compare July 20, 2023 03:24
A user will have an accessedAt timestamp that will update at most once
per day if they make some API call. This timestamp can then be used
find active users and calculate daily, weekly, and monthly active users.

To ensure consistent updates to the user the $user from the resource
is always updated to the user making the request, including requests
like Create Account, Update Team Membership Status, and Create Phone
Session (confirmation). This ensures the shutdown can update the
accessedAt timestamp if there was a $user set.
@stnguyen90 stnguyen90 force-pushed the feat-last-user-activity branch from 9aa168e to 2befa60 Compare July 20, 2023 05:23
@eldadfux eldadfux merged commit 4e6e3a0 into 1.4.x Jul 20, 2023
@stnguyen90 stnguyen90 deleted the feat-last-user-activity branch July 20, 2023 07:28
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.

3 participants