Skip to content
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-10563] Notification Center API #4852

Merged
merged 24 commits into from
Dec 18, 2024
Merged

[PM-10563] Notification Center API #4852

merged 24 commits into from
Dec 18, 2024

Conversation

mzieniukbw
Copy link
Contributor

@mzieniukbw mzieniukbw commented Oct 4, 2024

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-10563

📔 Objective

Notification API:

  • List notifications for user.
    • Optional pagination by continuation token and page size, including validation.
    • Updated Dapper, EF and Sql migrations.
  • Mark notification as read and deleted
    • fixed bug, where incorrect date time was populated in MarkNotificationDeletedCommand and MarkNotificationReadCommand during create operation - now UTC format

📸 Screenshots

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 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

@mzieniukbw mzieniukbw changed the title km/pm-10563 PM-10563: Notification Center API Oct 4, 2024
@mzieniukbw mzieniukbw changed the title PM-10563: Notification Center API [PM-10563] Notification Center API Oct 4, 2024
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

Attention: Patch coverage is 84.03361% with 19 lines in your changes missing coverage. Please review.

Project coverage is 43.39%. Comparing base (de2dc24) to head (ba8c06c).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ationCenter/Repositories/NotificationRepository.cs 0.00% 19 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4852      +/-   ##
==========================================
+ Coverage   43.15%   43.39%   +0.23%     
==========================================
  Files        1452     1456       +4     
  Lines       66301    66412     +111     
  Branches     6073     6078       +5     
==========================================
+ Hits        28615    28817     +202     
+ Misses      36398    36304      -94     
- Partials     1288     1291       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

github-actions bot commented Oct 4, 2024

Logo
Checkmarx One – Scan Summary & Detailsc7e1bb3d-990b-45ad-a4d3-d0fbf269d7a1

New Issues

Severity Issue Source File / Package Checkmarx Insight
MEDIUM CSRF /src/Api/AdminConsole/Controllers/OrganizationsController.cs: 241 Attack Vector
MEDIUM CSRF /src/Api/NotificationCenter/Controllers/NotificationsController.cs: 67 Attack Vector
MEDIUM CSRF /src/Api/NotificationCenter/Controllers/NotificationsController.cs: 61 Attack Vector
MEDIUM CSRF /src/Api/Auth/Controllers/TwoFactorController.cs: 406 Attack Vector

Thomas-Avery
Thomas-Avery previously approved these changes Oct 14, 2024
Copy link
Contributor

@Thomas-Avery Thomas-Avery left a comment

Choose a reason for hiding this comment

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

LGTM

@mzieniukbw mzieniukbw marked this pull request as ready for review October 17, 2024 12:40
@mzieniukbw mzieniukbw requested a review from a team as a code owner October 17, 2024 12:40
rkac-bw
rkac-bw previously approved these changes Oct 17, 2024
Copy link
Contributor

@rkac-bw rkac-bw left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@Thomas-Avery Thomas-Avery left a comment

Choose a reason for hiding this comment

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

Great work on this. The integration tests are awesome. 🚀

A few minor things to look at.

Thomas-Avery
Thomas-Avery previously approved these changes Oct 18, 2024
Copy link
Contributor

@Thomas-Avery Thomas-Avery left a comment

Choose a reason for hiding this comment

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

LGTM

withinfocus
withinfocus previously approved these changes Oct 18, 2024
Copy link
Contributor

@withinfocus withinfocus left a comment

Choose a reason for hiding this comment

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

DB changes already approved.

@mzieniukbw
Copy link
Contributor Author

The change is ready to be picked up by QA.
@Thomas-Avery @withinfocus @rkac-bw Updating PR with newest main to the branch. Renamed the db migration script date (file name change) to today's.
No other changes, please approve.

withinfocus
withinfocus previously approved these changes Nov 19, 2024
Thomas-Avery
Thomas-Avery previously approved these changes Nov 19, 2024
# Conflicts:
#	src/SharedWeb/Utilities/ServiceCollectionExtensions.cs
@mzieniukbw
Copy link
Contributor Author

Ready to be merged.
Updated the database migration script date to today.

@mzieniukbw mzieniukbw enabled auto-merge (squash) December 18, 2024 14:04
@mzieniukbw mzieniukbw merged commit 21fcfcd into main Dec 18, 2024
56 checks passed
@mzieniukbw mzieniukbw deleted the km/pm-10563 branch December 18, 2024 14:59
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