Skip to content

Conversation

@cslzchen
Copy link
Collaborator

@cslzchen cslzchen commented Jan 7, 2026

Ticket

Purpose

Fix link in moderator digest emails

Changes

  • Fix review links in moderation digest for preprints & registrations that were broken due to Angular release
  • Remove a duplicate and unused signal

Side Effects

N/A

QE Notes

  • Test moderation digest emails to make sure it brings moderator/admin to the review page of a preprint or registration

CE Notes

N/A

Documentation

N/A

context['message'] = f'has requested withdrawal of "{resource.title}".'
# Set submission url
context['reviews_submission_url'] = f'{DOMAIN}reviews/registries/{provider._id}/{resource._id}'
context['reviews_submission_url'] = f'{DOMAIN}registries/{provider._id}/{resource._id}?mode=moderator'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Ostap-Zherebetskyi

  • Does this one in notifications/listeners.py duplicates with the one in website/reviews/listeners.py?
  • A follow-up question is why listeners are in two different places?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, these appear to be duplicates. One located in notifications/listeners.py should be removed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe notifications/listeners.py was created to serve as an easily accessible location for notification signals. However, it looks like we decided not to move everything there at some point, yet the duplicates were never removed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Ostap-Zherebetskyi and @bodintsov

It seems our unit tests may have been using the wrong signal or both signals are being used, see failures: https://github.com/CenterForOpenScience/osf.io/actions/runs/20826183331/job/59828027689?pr=11537 so I removed the commit for removing this signal. I had problem with mailhog connection when running unit tests locally, so I will create another ticket for merging/fixing the two duplicate signals.

@cslzchen cslzchen marked this pull request as ready for review January 7, 2026 18:52
Copy link
Collaborator

@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.

Should the "reviews_submission_url" for collections have the same change?

It's LGTM after the comments are resolved.

@cslzchen cslzchen force-pushed the hotfix/fix-link-in-moderator-withdrawal-email branch 2 times, most recently from 2e01adf to afdf68f Compare January 8, 2026 18:24
Copy link
Member

@felliott felliott left a comment

Choose a reason for hiding this comment

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

LGTM!

@cslzchen cslzchen changed the title [ENG-10027] Fix moderator review url in withdrawal request digest [ENG-10027] Fix broken review links in moderation digest for preprints & registrations Jan 8, 2026
@cslzchen cslzchen changed the title [ENG-10027] Fix broken review links in moderation digest for preprints & registrations [hotfix/26.1.5] [ENG-10027] Fix broken review links in moderation digest for preprints & registrations Jan 8, 2026
@cslzchen cslzchen merged commit 7dbae83 into CenterForOpenScience:hotfix/26.1.5 Jan 8, 2026
8 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