-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(notifications): finish migrating gql functionality (#3821)
- move settings ownership from account to user - complete notification mutations migration - add notification settings to user
- Loading branch information
1 parent
ac43ce0
commit 93a01a0
Showing
27 changed files
with
694 additions
and
424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
mutation userDisableNotificationCategory( | ||
$input: UserDisableNotificationCategoryInput! | ||
) { | ||
userDisableNotificationCategory(input: $input) { | ||
notificationSettings { | ||
push { | ||
enabled | ||
disabledCategories | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
mutation userDisableNotificationChannel( | ||
$input: UserDisableNotificationChannelInput! | ||
) { | ||
userDisableNotificationChannel(input: $input) { | ||
notificationSettings { | ||
push { | ||
enabled | ||
disabledCategories | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
mutation userEnableNotificationCategory( | ||
$input: UserEnableNotificationCategoryInput! | ||
) { | ||
userEnableNotificationCategory(input: $input) { | ||
notificationSettings { | ||
push { | ||
enabled | ||
disabledCategories | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
mutation userEnableNotificationChannel( | ||
$input: UserEnableNotificationChannelInput! | ||
) { | ||
userEnableNotificationChannel(input: $input) { | ||
notificationSettings { | ||
push { | ||
enabled | ||
disabledCategories | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
query userNotificationSettings { | ||
me { | ||
id | ||
notificationSettings { | ||
push { | ||
enabled | ||
} | ||
} | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
...cations/.sqlx/query-0d5f56e2f99fb2d8e60e63d1bc16342b53b6aff5793ea99caac3c7cb09139762.json
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...3f3a3ef55c10681f8d4e0606e4c24c8259f4.json → ...8610b5278cb86bd649474d4eb663e98f4497.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
...cations/.sqlx/query-529104c49014a0c003388fb84a45073a1b9178a3da720708b860c2c3a626bd8b.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
core/notifications/migrations/20240111102028_notifications_setup.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.