Skip to content

[ENG-10538] Post-NR Project PR#11623

Merged
cslzchen merged 126 commits intodevelopfrom
feature/notifications-refactor-post-release
Mar 13, 2026
Merged

[ENG-10538] Post-NR Project PR#11623
cslzchen merged 126 commits intodevelopfrom
feature/notifications-refactor-post-release

Conversation

@Ostap-Zherebetskyi
Copy link
Collaborator

@Ostap-Zherebetskyi Ostap-Zherebetskyi commented Mar 5, 2026

Ticket

Purpose

Changes

Side Effects

QE Notes

CE Notes

Documentation

cslzchen and others added 30 commits January 19, 2026 11:29
* Use USER_FILE_UPDATED for group global_file_updated
* Use REVIEWS_SUBMISSION_STATUS for group global_reviews
[ENG-10083] Add type and is_digest "relation" and update subscription
cslzchen and others added 15 commits February 27, 2026 10:15
…_sync_task

[ENG-10076] Add Celery task to delete removed beat tasks from PeriodicTask entries
…pe-defenitions

[ENG-9923] Sync naming of notifications
…migration

[ENG-10496] Fix migration due to postgres limitation
[ENG-10535] Update the no_login mail send conditions
[ENG-10535] Update the no_login mail send conditions
…refactor-with-develop

[ENG-10530] Merge notifications refactor with develop after ROR release
Copy link
Collaborator Author

@Ostap-Zherebetskyi Ostap-Zherebetskyi left a comment

Choose a reason for hiding this comment

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

LGTM ⭐

@Ostap-Zherebetskyi Ostap-Zherebetskyi marked this pull request as ready for review March 9, 2026 10:58
cslzchen and others added 10 commits March 10, 2026 09:35
…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
[ENG-10611] Add delete_withdrawn_or_failed_registration_files import
…st_logo

[ENG-10547] Fix collections digest logo
@cslzchen cslzchen changed the title [ENG-10538] Post-NR with Migration [ENG-10538] Post-NR Project PR Mar 13, 2026
Copy link
Collaborator

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

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

⭐ 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):
Copy link
Collaborator

Choose a reason for hiding this comment

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

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():
Copy link
Collaborator

Choose a reason for hiding this comment

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

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):
Copy link
Collaborator

Choose a reason for hiding this comment

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

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():
Copy link
Collaborator

Choose a reason for hiding this comment

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

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():
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same, no longer needed since our de-duplication v2 command already fix the _id_digest issue.

Comment on lines -1715 to +1720
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,
# ),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be safe to remove now

Comment on lines -1722 to +1731
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,
# ),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same, safe to remove

Comment on lines -1742 to +1749
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,
# ),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same, safe to remove

from osf.models import NotificationSubscription, NotificationType, NotificationTypeEnum


class Command(BaseCommand):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not this v2 one. We can remove the old de-duplication command.

@cslzchen cslzchen merged commit 31048c7 into develop Mar 13, 2026
16 checks passed
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