Skip to content

[PM-25937] Simplify get_login_method method#761

Open
dani-garcia wants to merge 4 commits intomainfrom
ps/PM-25937-simplify-get-login-method
Open

[PM-25937] Simplify get_login_method method#761
dani-garcia wants to merge 4 commits intomainfrom
ps/PM-25937-simplify-get-login-method

Conversation

@dani-garcia
Copy link
Member

@dani-garcia dani-garcia commented Feb 12, 2026

🎟️ Tracking

📔 Objective

Update get_login_method to return UserLoginMethod directly. This method was never available to SM so all its callers had to unnecessarly match and unwrap it every single time. Also remove the Arc in preparation of the SDK hydration epic, as that will deserialize/clone the values every time anyway.

🚨 Breaking Changes

@dani-garcia dani-garcia added the ai-review Request a Claude code review label Feb 12, 2026
@claude
Copy link

claude bot commented Feb 12, 2026

Claude finished @dani-garcia's task in 2m 55s —— View job


Pull Request Review: PM-25937 Simplify get_login_method method

Reviewed commit: aa7ed256 (re-review after merge of main)

Previous review: 455c45d0 -- approved with no findings

Re-Review Result

No PR-specific files changed since the previous review. The only new commit (aa7ed256) is a merge of main into the branch, bringing in unrelated changes (criterion dep update, sync for key-rotation, set_communication_type). None of these affect the 6 files modified in this PR.

The previous analysis remains valid:

  • Security: No concerns. Cryptographic operations unchanged.
  • Correctness: Behavior preserved across all 8 call sites.
  • Breaking changes: None. All modified types are pub(crate).
  • Performance: Acceptable trade of Arc clone for UserLoginMethod clone on non-hot paths.

Approved -- no findings. Previous review still applies.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

Logo
Checkmarx One – Scan Summary & Details1e87cb9a-3e4e-4265-b1c1-6b4af9ca3665

Great job! No new security vulnerabilities introduced in this pull request

@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

🔍 SDK Breaking Change Detection Results

SDK Version: ps/PM-25937-simplify-get-login-method (aa7ed25)
Completed: 2026-02-16 15:10:50 UTC
Total Time: 248s

Client Status Details
typescript ✅ No breaking changes detected TypeScript compilation passed with new SDK version - View Details

Breaking change detection completed. View SDK workflow

@codecov
Copy link

codecov bot commented Feb 12, 2026

Codecov Report

❌ Patch coverage is 74.57627% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.27%. Comparing base (c4534ab) to head (aa7ed25).

Files with missing lines Patch % Lines
crates/bitwarden-core/src/client/internal.rs 66.66% 5 Missing ⚠️
...es/bitwarden-core/src/platform/get_user_api_key.rs 0.00% 5 Missing ⚠️
...rates/bitwarden-core/src/auth/password/validate.rs 85.00% 3 Missing ⚠️
crates/bitwarden-core/src/key_management/crypto.rs 88.88% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #761      +/-   ##
==========================================
+ Coverage   81.25%   81.27%   +0.01%     
==========================================
  Files         316      316              
  Lines       36369    36354      -15     
==========================================
- Hits        29553    29545       -8     
+ Misses       6816     6809       -7     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dani-garcia dani-garcia marked this pull request as ready for review February 12, 2026 17:39
@dani-garcia dani-garcia requested review from a team as code owners February 12, 2026 17:39
@dani-garcia dani-garcia changed the title [PM-25937] Simplify get_login_token method [PM-25937] Simplify get_login_method method Feb 12, 2026
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request a Claude code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants