-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[PM-14590] Modify Notification database table #5361
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5361 +/- ##
==========================================
- Coverage 44.37% 44.30% -0.07%
==========================================
Files 1487 1497 +10
Lines 68595 69212 +617
Branches 6179 6241 +62
==========================================
+ Hits 30438 30665 +227
- Misses 36838 37224 +386
- Partials 1319 1323 +4 ☔ View full report in Codecov by Sentry. |
New Issues (25)Checkmarx found the following issues in this Pull Request
Fixed Issues (26)Great job! The following issues were fixed in this Pull Request
|
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.
Have the new field / parameter at the end everywhere too.
@@ -7,6 +7,7 @@ CREATE PROCEDURE [dbo].[Notification_Create] | |||
@OrganizationId UNIQUEIDENTIFIER, | |||
@Title NVARCHAR(256), | |||
@Body NVARCHAR(MAX), | |||
@TaskId UNIQUEIDENTIFIER = NULL, |
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.
❌ All parameters should get added to the end. We parameterize our invocations, but if that weren't happening this would cause execution issues.
@@ -8,6 +8,7 @@ CREATE TABLE [dbo].[Notification] | |||
[OrganizationId] UNIQUEIDENTIFIER NULL, | |||
[Title] NVARCHAR (256) NULL, | |||
[Body] NVARCHAR (MAX) NULL, | |||
[TaskId] UNIQUEIDENTIFIER NULL, |
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.
❌ This should have a foreign key.
|
@@ -18,6 +18,7 @@ public class Notification : ITableObject<Guid> | |||
[MaxLength(256)] | |||
public string? Title { get; set; } | |||
public string? Body { get; set; } | |||
public Guid? TaskId { get; set; } |
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.
⛏️ I like these to be in order too.
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-14590
📔 Objective
We need to modify the Notification entity to have an optional TaskId column.
📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes