Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add notification preferences database & audit support #14100

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

Merged
merged 20 commits into from
Aug 5, 2024

Conversation

dannykopping
Copy link
Contributor

@dannykopping dannykopping commented Aug 1, 2024

Part of coder/internal#19

NOTE: I used Graphite for this, but it's got too many sharp edges. I'm reverting to manually managing these branches.

This implements the foundation of the feature - namely the database changes, along with auditing support and RBAC - all used in upstack PRs. I initially had these 3 elements in separate branches, but it became too much of a PITA to maintain with Graphite. In the future I'll start with one big branch and decompose before review time instead of decomposing ahead of time.

THIS PR MUST BE MERGED LAST!

@dannykopping dannykopping changed the title Implement notification template update auditing feat: notification preferences database & audit support Aug 1, 2024
Copy link

alwaysmeticulous bot commented Aug 1, 2024

✅ Meticulous spotted zero visual differences across 468 screens tested: view results.

Expected differences? Click here. Last updated for commit 5d683d4. This comment will update as new commits are pushed.

@dannykopping dannykopping force-pushed the dk/notification-prefs/db-audit branch 3 times, most recently from 76d4ca5 to 85ec862 Compare August 2, 2024 10:18
@dannykopping dannykopping changed the title feat: notification preferences database & audit support feat: add notification preferences database & audit support Aug 2, 2024
@dannykopping dannykopping force-pushed the dk/notification-prefs/db-audit branch from 85ec862 to 8333dcb Compare August 2, 2024 10:25
@dannykopping dannykopping marked this pull request as ready for review August 2, 2024 13:58
@dannykopping dannykopping force-pushed the dk/notification-prefs/db-audit branch from 8333dcb to 93a92d6 Compare August 2, 2024 14:08
@dannykopping dannykopping force-pushed the dk/notification-prefs/db-audit branch from 2105aa4 to c4b8b31 Compare August 2, 2024 14:39
Copy link
Member

@Emyrk Emyrk left a comment

Choose a reason for hiding this comment

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

User's have NotificationPreference which relates to NotificationTemplate. But only admins/owners can setup NotificationTemplate?

Copy link
Contributor Author

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

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

Thanks for the review @Emyrk 👍

User's have NotificationPreference which relates to NotificationTemplate. But only admins/owners can setup NotificationTemplate?

Correct; notification templates only store system-level templates right now; the design will evolve to allow operators to create their own notification templates.

@dannykopping dannykopping force-pushed the dk/notification-prefs/db-audit branch 3 times, most recently from 6ea0336 to 2cc690c Compare August 5, 2024 08:00
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

Some comments below but I don't need to review again.

Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
@dannykopping dannykopping force-pushed the dk/notification-prefs/db-audit branch from 2cc690c to c744d33 Compare August 5, 2024 11:54
@dannykopping dannykopping merged commit e164b1e into main Aug 5, 2024
33 checks passed
@dannykopping dannykopping deleted the dk/notification-prefs/db-audit branch August 5, 2024 14:18
@github-actions github-actions bot locked and limited conversation to collaborators Aug 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants