Skip to content

cleanup: remove key id annotation from user entity - #8191

Open
quexten wants to merge 1 commit into
mainfrom
key-id-cleanup
Open

cleanup: remove key id annotation from user entity#8191
quexten wants to merge 1 commit into
mainfrom
key-id-cleanup

Conversation

@quexten

@quexten quexten commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Follow-up cleanup.

@quexten
quexten requested a review from mzieniukbw August 12, 2026 04:02
@quexten
quexten marked this pull request as ready for review August 12, 2026 04:02
@quexten
quexten enabled auto-merge (squash) August 12, 2026 04:02
@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

🤖 Bitwarden Claude Code Review

Overall Assessment: APPROVE

This PR removes the [KeyId] validation attribute from the UserKeyId property on the User entity, a follow-up cleanup to the key-id wire-in work in #8164. The attribute was inert on the entity: User is not model-bound in any controller and EF Core does not evaluate ValidationAttributes at runtime, so removal has no behavioral or schema impact. Input validation is still enforced at the API boundary, where [KeyId] remains on the request models (SetUserKeyIdRequestModel, RotateUserKeysRequestModel, MasterPasswordUnlockDataRequestModel, KeysRequestModel, and others), and all internal writes flow through the strongly typed KeyId value object. Remaining using directives in User.cs are still required (CoreHelpers, EncryptionParsing), so no unused-using build warnings are introduced.

Code Review Details

No findings.

@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 15.56%. Comparing base (f956e58) to head (2cf0426).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8191   +/-   ##
=======================================
  Coverage   15.56%   15.56%           
=======================================
  Files        1439     1439           
  Lines       62488    62488           
  Branches     5014     5014           
=======================================
  Hits         9727     9727           
  Misses      52595    52595           
  Partials      166      166           

☔ View full report in Codecov by Harness.
📢 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.

@quexten
quexten disabled auto-merge August 12, 2026 04:50
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.

1 participant