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-15637] Configure deepLinkGuard in OrganizationsModule for Device Approval Links #12890

Merged

Conversation

r-tome
Copy link
Contributor

@r-tome r-tome commented Jan 15, 2025

🎟️ Tracking

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

📔 Objective

This PR adds deepLinkGuard to the OrganizationsModule to enable deep linking for device approval email notification links. This ensures users can directly navigate to the appropriate page when clicking on the links from their email notifications.

Server PR.

📸 Screenshots

Screen.Recording.2025-01-15.at.15.50.08.mov

⏰ 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

Copy link
Contributor

github-actions bot commented Jan 15, 2025

Logo
Checkmarx One – Scan Summary & Detailsbd35ac41-50ec-4d4a-94e9-ddfd21c4cba4

Great job, no security vulnerabilities found in this Pull Request

Copy link

codecov bot commented Jan 15, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 35.25%. Comparing base (7a51c8a) to head (bf1421b).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...sole/organizations/organizations-routing.module.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12890   +/-   ##
=======================================
  Coverage   35.24%   35.25%           
=======================================
  Files        2997     2997           
  Lines       90886    90887    +1     
  Branches    16973    16973           
=======================================
+ Hits        32034    32041    +7     
+ Misses      56364    56358    -6     
  Partials     2488     2488           

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

@r-tome r-tome marked this pull request as ready for review January 15, 2025 17:36
@r-tome r-tome requested a review from a team as a code owner January 15, 2025 17:36
@r-tome r-tome requested a review from BTreston January 15, 2025 17:36
@@ -18,7 +19,7 @@ const routes: Routes = [
{
path: "organizations/:organizationId",
component: OrganizationLayoutComponent,
canActivate: [authGuard, organizationPermissionsGuard()],
canActivate: [deepLinkGuard(), authGuard, organizationPermissionsGuard()],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eliykat, I couldn't make deepLinkGuard dependent on the device approval emails feature flag. Is it still safe to merge?

Copy link
Member

Choose a reason for hiding this comment

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

This is a pretty minor change, the main feature (the emails) are gated so this doesn't matter so much.

@r-tome r-tome merged commit 9a0c077 into main Jan 27, 2025
23 checks passed
@r-tome r-tome deleted the ac/pm-15637/admin-email-notification-for-device-approval-requests branch January 27, 2025 10: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.

3 participants