-
Notifications
You must be signed in to change notification settings - Fork 23
[ENG-9758] Change settings page to default to correct notifications #761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENG-9758] Change settings page to default to correct notifications #761
Conversation
Ostap-Zherebetskyi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
|
||
| if (event === SubscriptionEvent.GlobalReviews) { | ||
| const subs = this.notificationSubscriptions(); | ||
| const match = subs.find((s) => (s.event as string) === 'new_pending_submissions'); |
There was a problem hiding this comment.
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
|
@Johnetordoff I see that this is old code. It will cause conflicts because unit tests have already been added for |
src/app/features/settings/notifications/notifications.component.ts
Outdated
Show resolved
Hide resolved
…and update SubscriptionEvent
c86c264 to
171177b
Compare
…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
…enterForOpenScience/angular-osf into fix/notification-prefs
src/app/features/settings/notifications/notifications.component.ts
Outdated
Show resolved
Hide resolved
|
@Johnetordoff Looks good, just fix one comment. |
…t.ts Co-authored-by: nsemets <nsemets@exoft.net>
9aa505d
into
CenterForOpenScience:feature/notifications-refactor
…freq defaults
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