Skip to content

PM-23648: All Identities (passport, driving-license, id-doc, name) -> Identity #363

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

Open
wants to merge 5 commits into
base: cxf/sample
Choose a base branch
from

Conversation

abergs
Copy link
Member

@abergs abergs commented Jul 25, 2025

🎟️ Tracking

📔 Objective

This PR maps multiple identity documents to Identity + custom fields. PR was submitted in a rush, forgive me if it fails tests but would be worthwhile to have early reviews on my approach.

⏰ 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

@abergs abergs requested a review from a team as a code owner July 25, 2025 10:26
r#type: FieldType::Text as u8,
linked_id: None,
})
}
Copy link
Member Author

Choose a reason for hiding this comment

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

@Hinton You requested this function in another PR, would it be OK to dissmiss that review and refactor using this method? (will move it in said refactor PR)

Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Detailsc03f253f-7025-4589-aa13-24e02e2ee35f

Great job, no security vulnerabilities found in this Pull Request

Copy link

Copy link

codecov bot commented Jul 25, 2025

Codecov Report

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

Please upload report for BASE (cxf/sample@070349c). Learn more about missing BASE report.

Files with missing lines Patch % Lines
crates/bitwarden-exporters/src/cxf/identity.rs 96.28% 19 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             cxf/sample     #363   +/-   ##
=============================================
  Coverage              ?   73.99%           
=============================================
  Files                 ?      249           
  Lines                 ?    21454           
  Branches              ?        0           
=============================================
  Hits                  ?    15874           
  Misses                ?     5580           
  Partials              ?        0           

☔ 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.

@audreyality

This comment was marked as resolved.

@abergs
Copy link
Member Author

abergs commented Aug 1, 2025

❓ Have you considered that some of these documents may have multiple copies? I have identity documents from 2 different countries. Some jurisdictions issue multiple drivers licenses (e.g. a commercial license and a personal license). Some official positions issue specialized passports...

@audreyality If there are multiple documents in the CXF import then you'll have multiple identities stored in Bitwarden, one for each.

In the future we may tro to de-dupe the incoming data, unless we find it breakes in cases like yours. However, we don't that in this PR so I think we're good?

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