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-13371] Repository split - Avoid depdending on Bitwarden #1124

Merged
merged 7 commits into from
Oct 11, 2024

Conversation

Hinton
Copy link
Member

@Hinton Hinton commented Oct 10, 2024

🎟️ Tracking

Epic: https://bitwarden.atlassian.net/browse/PM-13370
Phase: https://bitwarden.atlassian.net/browse/PM-13371

📔 Objective

Decouples our internal crates from depending on the public bitwarden crate. uniffi, wasm-internal and bw now depends directly on feature crates.

⏰ 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 Oct 10, 2024

Logo
Checkmarx One – Scan Summary & Details26d5c356-57eb-4162-bfc4-248763b7edd2

No New Or Fixed Issues Found

Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Project coverage is 58.37%. Comparing base (7e663e9) to head (f4393d6).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
crates/bitwarden-uniffi/src/lib.rs 0.00% 3 Missing ⚠️
crates/bitwarden-uniffi/src/platform/fido2.rs 0.00% 3 Missing ⚠️
crates/bw/src/main.rs 0.00% 3 Missing ⚠️
crates/bitwarden-uniffi/src/error.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1124      +/-   ##
==========================================
+ Coverage   58.31%   58.37%   +0.05%     
==========================================
  Files         193      193              
  Lines       13553    13541      -12     
==========================================
  Hits         7904     7904              
+ Misses       5649     5637      -12     

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

@Hinton Hinton changed the title Repository split - phase 1 [PM-13371] Repository split - Avoid depdending on Bitwarden Oct 10, 2024
@Hinton Hinton marked this pull request as ready for review October 10, 2024 09:03
# Conflicts:
#	crates/sdk-schemas/Cargo.toml
dani-garcia
dani-garcia previously approved these changes Oct 10, 2024
@@ -16,8 +16,7 @@ repository.workspace = true
license-file.workspace = true

[features]
internal = ["bitwarden/internal"] # Internal testing methods
secrets = ["bitwarden/secrets"] # Secrets manager API
secrets = ["bitwarden/secrets"] # Secrets manager API
Copy link
Member

Choose a reason for hiding this comment

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

If bitwarden-json is going to be a secrets manager only crate now, we can probably remove the secrets feature as well right?

E(bitwarden::error::Error),
}
#[error(transparent)]
Core(#[from] bitwarden_core::Error),
Copy link
Member

Choose a reason for hiding this comment

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

This will probably be a breaking change for the mobile apps, we will need to notify them before we make a new release.

Copy link
Member Author

Choose a reason for hiding this comment

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

True, I reverted it we should find some time to resolve the external error issue in uniffi.

@Hinton Hinton merged commit 7e90f52 into main Oct 11, 2024
97 of 100 checks passed
@Hinton Hinton deleted the ps/split-phase1 branch October 11, 2024 11:09
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