Skip to content

fix(ENG-9810): wire up provider subscription notification settings#928

Open
Vlad0n20 wants to merge 3 commits intoCenterForOpenScience:feature/pbs-26-6from
Vlad0n20:fix/ENG-9810
Open

fix(ENG-9810): wire up provider subscription notification settings#928
Vlad0n20 wants to merge 3 commits intoCenterForOpenScience:feature/pbs-26-6from
Vlad0n20:fix/ENG-9810

Conversation

@Vlad0n20
Copy link
Copy Markdown
Contributor

  • Ticket: [ENG-9810]
  • Feature flag: fix

Purpose

Summary of Changes

Moderators of Collections, Registries, and Preprints need to control
how they receive notifications about moderation activity (new pending
submissions, withdrawal requests) — instant, daily, or none.
Previously, the Settings/Notifications tabs in the moderation pages
were empty placeholders that just pointed users away to their global
user settings. That was insufficient because these are provider-level
subscriptions (scoped to a specific provider), not global ones.

The changes wire up the real OSF API
(/v2/providers/{type}/{id}/subscriptions/) so each moderation portal's
notification tab now:

  1. Loads the actual per-provider subscription preferences for the
    logged-in moderator
  2. Lets them change the frequency via dropdowns, saved immediately via
    PATCH

Screenshot(s)

Side Effects

QA Notes

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