Skip to content

feat: Schedule CoC reminders for active students without a CoC - #1468

Open
JeangelLF wants to merge 1 commit into
masterfrom
feat/job-require-coc-for-older-accounts
Open

JeangelLF wants to merge 1 commit into
masterfrom
feat/job-require-coc-for-older-accounts

Conversation

@JeangelLF

Copy link
Copy Markdown
Contributor

What was done?

  • Updated our process-expired-coc job to also include students that don't have a coc at all (and are screened), which mainly should be very old users
  • Added conditions to prevent potential spam of reminders for users that already have the reminders scheduled

let scheduledForMissingCoC = 0;
for (const student of activeStudentsWithoutCoC) {
// Rescheduling cancels the pending deactivation, so students already in the countdown must be skipped
const deactivationAlreadyScheduled = await predictedHookActionDate('coc_reminder', 'deactivate-student', userForStudent(student));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(I think this correctly skips our test users then?)

@JeangelLF JeangelLF Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah I think so. One of them for example is already in the countdown and the deactivation date is set to 2050 and the other one is not screened yet

This branch was successfully deployed

1 active deployment
backend-feat-job-requir-ujzpdd — e06e778d Deployed Oct 15, 2026 by realmayus
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