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-12995] Create UI elements for New Device Verification in Admin Portal #5165

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ike-kottlowski
Copy link
Contributor

@ike-kottlowski ike-kottlowski commented Dec 17, 2024

🎟️ Tracking

PM-12995

📔 Objective

If a user is locked out of their email which would be used for new device verification, we want to allow a way for Customer Success to allow an exception, so the user is not locked out of their account accidently.

📸 Screenshots

Exception Process

msedge_61PPOhnNwW.mp4

⏰ 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

Added constant to constants in Bit.Core because the cache key format needs to be shared between the Identity Server and the MVC project Admin.
Updated DeviceValidator class to handle checking cache for user information to allow pass through.
Updated and Added tests to handle new flow.
… Added tests for new methods in UserService.
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 37.73585% with 33 lines in your changes missing coverage. Please review.

Project coverage is 43.16%. Comparing base (2e8f2df) to head (dfbb182).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/Admin/Views/Users/Edit.cshtml 0.00% 19 Missing ⚠️
src/Admin/Controllers/UsersController.cs 0.00% 10 Missing ⚠️
src/Admin/Models/UserEditModel.cs 0.00% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5165   +/-   ##
=======================================
  Coverage   43.16%   43.16%           
=======================================
  Files        1452     1452           
  Lines       66299    66341   +42     
  Branches     6073     6079    +6     
=======================================
+ Hits        28615    28635   +20     
- Misses      36396    36418   +22     
  Partials     1288     1288           

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

Copy link
Contributor

github-actions bot commented Dec 17, 2024

Logo
Checkmarx One – Scan Summary & Detailsa4b62c6f-7035-4301-9939-8f9c97a920d9

No New Or Fixed Issues Found

Copy link

Choose a reason for hiding this comment

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

Looks great! Couple of very tiny linting fixes. Ty for the good tests. 👍

@@ -44,6 +47,8 @@ public UserEditModel(
public string RandomLicenseKey => CoreHelpers.SecureRandomString(20);
public string OneYearExpirationDate => DateTime.Now.AddYears(1).ToString("yyyy-MM-ddTHH:mm");
public string BraintreeMerchantId { get; init; }
public bool ActiveNewDeviceVerificationException { get; init; }

Choose a reason for hiding this comment

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

Nitpick, extra line here

Device Verification</button>
}
</form>

Choose a reason for hiding this comment

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

Nitpick, extra line here

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.

2 participants