Conversation
* Use USER_FILE_UPDATED for group global_file_updated * Use REVIEWS_SUBMISSION_STATUS for group global_reviews
…fails with permission error
remove datetime
[ENG-10083] Add type and is_digest "relation" and update subscription
…for functionality
…_sync_task [ENG-10076] Add Celery task to delete removed beat tasks from PeriodicTask entries
…pe-defenitions [ENG-9923] Sync naming of notifications
…actor notification model
…migration [ENG-10496] Fix migration due to postgres limitation
[ENG-9923] Removed comment
[ENG-10535] Update the no_login mail send conditions
…tifications-refactor-with-develop
…EmailTasks and recent no-login emails
[ENG-10535] Update the no_login mail send conditions
…refactor-with-develop [ENG-10530] Merge notifications refactor with develop after ROR release
Ostap-Zherebetskyi
left a comment
There was a problem hiding this comment.
LGTM ⭐
…ifications [ENG-10547] Collections: Project link pointing to api request instead of FE overview for all add/remove to collection notifications
…ifications [ENG-10547] Collections: fix logo url
…e_notification_types_to_admin [ENG-10570] Add management command to sync notification templates in admin
…files to CeleryConfig
[ENG-10611] Add delete_withdrawn_or_failed_registration_files import
…st_logo [ENG-10547] Fix collections digest logo
cslzchen
left a comment
There was a problem hiding this comment.
⭐ LGTM, my comments are for code clean-up only. Let's take care of the code clean-up after release as a separate squash merge commit.
|
|
||
|
|
||
| @celery_app.task(name='scripts.remove_after_use.populate_notification_subscriptions_node_file_updated') | ||
| def populate_notification_subscriptions_node_file_updated(batch_size: int = 1000): |
There was a problem hiding this comment.
No longer needed since we have the create-on-missing fix.
| print('----Creation finished----') | ||
|
|
||
| @celery_app.task(name='scripts.remove_after_use.update_notification_subscriptions_node_file_updated') | ||
| def update_notification_subscriptions_node_file_updated(): |
There was a problem hiding this comment.
No longer needed since our de-duplication v2 command already fix the _id_digest issue.
| from osf.models import OSFUser, NotificationSubscription, NotificationTypeEnum | ||
|
|
||
| @celery_app.task(name='scripts.remove_after_use.populate_notification_subscriptions_user_global_file_updated') | ||
| def populate_notification_subscriptions_user_global_file_updated(per_last_years: int | None= None, batch_size: int = 1000): |
There was a problem hiding this comment.
Same, no longer needed since we have the create-on-missing fix.
| print('----Creation finished----') | ||
|
|
||
| @celery_app.task(name='scripts.remove_after_use.update_notification_subscriptions_user_global_file_updated') | ||
| def update_notification_subscriptions_user_global_file_updated(): |
There was a problem hiding this comment.
Same, no longer needed since our de-duplication v2 command already fix the _id_digest issue.
| print('----Creation finished----') | ||
|
|
||
| @celery_app.task(name='scripts.remove_after_use.update_notification_subscriptions_user_global_reviews') | ||
| def update_notification_subscriptions_user_global_reviews(): |
There was a problem hiding this comment.
Same, no longer needed since our de-duplication v2 command already fix the _id_digest issue.
| Rule( | ||
| '/subscriptions/', | ||
| 'get', | ||
| notification_views.get_subscriptions, | ||
| json_renderer, | ||
| ), | ||
| # Legacy v1 API for notifications, which is no longer used by Angular/Post-NR | ||
| # Rule( | ||
| # '/subscriptions/', | ||
| # 'get', | ||
| # notification_views.get_subscriptions, | ||
| # json_renderer, | ||
| # ), |
There was a problem hiding this comment.
Should be safe to remove now
| Rule( | ||
| [ | ||
| '/project/<pid>/subscriptions/', | ||
| '/project/<pid>/node/<nid>/subscriptions/' | ||
| ], | ||
| 'get', | ||
| notification_views.get_node_subscriptions, | ||
| json_renderer, | ||
| ), | ||
| # Legacy v1 API for notifications, which is no longer used by Angular/Post-NR | ||
| # Rule( | ||
| # [ | ||
| # '/project/<pid>/subscriptions/', | ||
| # '/project/<pid>/node/<nid>/subscriptions/' | ||
| # ], | ||
| # 'get', | ||
| # notification_views.get_node_subscriptions, | ||
| # json_renderer, | ||
| # ), |
| Rule( | ||
| '/subscriptions/', | ||
| 'post', | ||
| notification_views.configure_subscription, | ||
| json_renderer, | ||
| ), | ||
| # Legacy v1 API for notifications, which is no longer used by Angular/Post-NR | ||
| # Rule( | ||
| # '/subscriptions/', | ||
| # 'post', | ||
| # notification_views.configure_subscription, | ||
| # json_renderer, | ||
| # ), |
| from osf.models import NotificationSubscription, NotificationType, NotificationTypeEnum | ||
|
|
||
|
|
||
| class Command(BaseCommand): |
There was a problem hiding this comment.
Not this v2 one. We can remove the old de-duplication command.
Ticket
Purpose
Changes
Side Effects
QE Notes
CE Notes
Documentation