Skip to content

[ENG-11997] Exclude Unconfirmed Accounts from Email Campaigns - #11878

Open
antkryt wants to merge 1 commit into
CenterForOpenScience:feature/post-enter-projectfrom
antkryt:fix/ENG-11997
Open

[ENG-11997] Exclude Unconfirmed Accounts from Email Campaigns#11878
antkryt wants to merge 1 commit into
CenterForOpenScience:feature/post-enter-projectfrom
antkryt:fix/ENG-11997

Conversation

@antkryt

@antkryt antkryt commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Ticket

Purpose

Add "exclude unconfirmed users" option to notification campaign

Changes

Side Effects

QE Notes

CE Notes

Documentation

@cslzchen cslzchen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good but will wait for PO to clarify on "unconfirmed users" before next steps.

@cslzchen cslzchen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Update:

  • PO confirmed we need to exclude all unconfirmed accounts/users.
  • I had a question on null/blank check in my 2nd pass.

Comment on lines +436 to +437
field: "date_confirmed",
lookup: "isnull",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

date_confirmed = NonNaiveDateTimeField(db_index=True, null=True, blank=True)

...

@property
def is_confirmed(self):
    return bool(self.date_confirmed)

Is it possible that date_confirmed is blank instead of null?

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.

date_confirmed is datetime field, postgres timestamptz field cannot be blank ('')

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.

2 participants