Skip to content

Conversation

@Johnetordoff
Copy link

@Johnetordoff Johnetordoff commented Nov 13, 2025

…freq defaults

  • Ticket: [https://openscience.atlassian.net/browse/ENG-9758]
  • Feature flag: n/a

Purpose

Make the notification preferences default and change to correct values. Corrosponses with this PR:
CenterForOpenScience/osf.io#11441

Summary of Changes

Simple logic changes to make dropdowns functional

Screenshot(s)

Side Effects

CenterForOpenScience/osf.io#11441

QA Notes

Copy link
Contributor

@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

@brianjgeiger brianjgeiger requested a review from nsemets November 13, 2025 14:16

if (event === SubscriptionEvent.GlobalReviews) {
const subs = this.notificationSubscriptions();
const match = subs.find((s) => (s.event as string) === 'new_pending_submissions');
Copy link
Author

Choose a reason for hiding this comment

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

provider id should new_pending_submissions always is for provider submissions, id pattern for that is <provider_name>_new_pending_submissions so it must be the same as the sub.id

@nsemets
Copy link
Collaborator

nsemets commented Nov 13, 2025

@Johnetordoff I see that this is old code. It will cause conflicts because unit tests have already been added for notifications.component.spec.ts.

@Johnetordoff Johnetordoff force-pushed the fix/notification-prefs branch from c86c264 to 171177b Compare November 13, 2025 18:10
@brianjgeiger brianjgeiger requested a review from nsemets November 13, 2025 18:53
…ular-osf into fix/notification-prefs

# Conflicts:
#	src/app/features/settings/notifications/notifications.component.spec.ts
#	src/app/shared/enums/subscriptions/subscription-event.enum.ts
@nsemets
Copy link
Collaborator

nsemets commented Nov 14, 2025

@Johnetordoff Looks good, just fix one comment.

…t.ts

Co-authored-by: nsemets <nsemets@exoft.net>
@brianjgeiger brianjgeiger merged commit 9aa505d into CenterForOpenScience:feature/notifications-refactor Nov 14, 2025
3 checks passed
@cslzchen cslzchen changed the title [ENG-9758] fix(notifications): change settings page to default to correct notif [ENG-9758] Change settings page to default to correct notifications Nov 19, 2025
brianjgeiger pushed a commit that referenced this pull request Nov 20, 2025
…t to cor…" (#780)

Reverts #761

Reason: this breaks notification settings for `Preprint submissions updated`

This reverts commit 9aa505d.
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.

4 participants