-
Notifications
You must be signed in to change notification settings - Fork 356
[ENG-9854][ENG-10025][ENG-10040][ENG-10095] NR Post-release model migration + model dependent bug-fixes #11540
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
Conversation
e72dbb2 to
1d70ead
Compare
1d70ead to
724cdda
Compare
cslzchen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ⭐
Note: let's take out three hotfix pieces and make a different PR, and I will re-target this PR to feature/notifications-refactor-post-release once 26.1.5 is released.
…fails with permission error
remove datetime
48ed72a to
ab06f57
Compare
cslzchen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good with a few comments. I will take care of a few and leave the rest (if they make sense) for the future PR.
In addition, I will rename the migration name to 0036_notification_refactor_post_release
| return base_q.annotate(_has_task=Exists(existing_no_login)).filter(_has_task=False) | ||
| # Exclude users who have already received a no-login email recently | ||
| return base_q.filter( | ||
| Q(no_login_email_last_sent__isnull=True) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the new check only checks the user field, we need a script to migrate all sent ones to the user model before we clean them up.
f6694d8
into
CenterForOpenScience:feature/notifications-refactor-post-release
Ticket
https://openscience.atlassian.net/browse/ENG-9854
https://openscience.atlassian.net/browse/ENG-10025
https://openscience.atlassian.net/browse/ENG-10040
https://openscience.atlassian.net/browse/ENG-10095
Purpose
Changes
seenfield fromNotificationSide Effects
N/A
QE Notes
N/A
CE Notes
N/A
Documentation
N/A