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

feat(massEmail): query for identifying inactive users based on login, form activity, and submissions TASK-1581 #5569

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

rajpatel24
Copy link
Contributor

@rajpatel24 rajpatel24 commented Mar 4, 2025

🗒️ Checklist

  1. run linter locally
  2. update all related docs (API, README, inline, etc.), if any
  3. draft PR with a title <type>(<scope>)<!>: <title> TASK-1234
  4. tag PR: at least frontend or backend unless it's global
  5. fill in the template below and delete template comments
  6. review thyself: read the diff and repro the preview as written
  7. open PR & confirm that CI passes
  8. request reviewers, if needed
  9. delete this section before merging

📣 Summary

Detect and return a list of users who have been inactive for a specified period based on login activity, project updates, and submissions.

📖 Description

This update introduces a method to identify inactive users who have not:

  • Logged into their account.
  • Modified their projects or had modifications made by others.
  • Received submissions to their projects.

By default, the inactivity period is set to 365 days but can be configured dynamically.

👀 Preview steps

  1. Run get_inactive_users(days=1) in the shell, users inactive for 1+ days should be listed.
  2. Modify inactivity_threshold = now() - timedelta(minutes=2)
  3. Log in & log out, run get_inactive_users(), user should NOT be listed. Wait 2 mins, run again, user should be listed now.
  4. Log in, create a project, run get_inactive_users(), user should NOT be listed. Wait 2 mins, run again, user should be listed now.
  5. Add a submission, run get_inactive_users(), user should NOT be listed. Wait 2 mins, run again, user should be listed.

@rajpatel24 rajpatel24 self-assigned this Mar 4, 2025
@rajpatel24 rajpatel24 removed request for jnm and noliveleger March 4, 2025 19:30
@rajpatel24 rajpatel24 changed the title feat(massEmail): Query for identifying inactive users based on login, form activity, and submissions feat(massEmail): Query for identifying inactive users based on login, form activity, and submissions TASK-1581 Mar 4, 2025
@rajpatel24 rajpatel24 force-pushed the task-1581-implement-account-inactive-query branch from 97deb18 to 7ef5d6a Compare March 4, 2025 19:34
@rajpatel24 rajpatel24 changed the title feat(massEmail): Query for identifying inactive users based on login, form activity, and submissions TASK-1581 feat(massEmail): query for identifying inactive users based on login, form activity, and submissions TASK-1581 Mar 4, 2025
@rajpatel24 rajpatel24 force-pushed the task-1581-implement-account-inactive-query branch from 7ef5d6a to bb7a8f2 Compare March 4, 2025 19:38
@rajpatel24 rajpatel24 requested a review from rgraber March 5, 2025 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant