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-16908] Validate WASM BitwardenClient API is async #173

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

dani-garcia
Copy link
Member

@dani-garcia dani-garcia commented Feb 28, 2025

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-16908

📔 Objective

Created a script that validates that any functions from BitwardenClient or it's subclients are async. This is needed for the POC in bitwarden/clients#13539, that exposes the Client API remotely through IPC.

Note that the script also stores all the functions that return a subclient and saves that in the JS/TS files, for the client code to use it.

As this is only applied to BitwardenClient and any subclients reachable from it, it won't affect separate clients like PureCrypto

I've created a separate temporary PR with some of the test functions I've used on the SDK here, including some subclients and callbacks: #174

⏰ 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 Feb 28, 2025

Logo
Checkmarx One – Scan Summary & Details83abd338-21bc-4281-b740-c8e5a87fca98

Great job, no security vulnerabilities found in this Pull Request

Copy link

codecov bot commented Feb 28, 2025

Codecov Report

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

Project coverage is 66.07%. Comparing base (112049b) to head (391ec99).

Files with missing lines Patch % Lines
crates/bitwarden-wasm-internal/src/crypto.rs 0.00% 5 Missing ⚠️
crates/bitwarden-wasm-internal/src/client.rs 0.00% 3 Missing ⚠️
...rates/bitwarden-wasm-internal/src/vault/folders.rs 0.00% 1 Missing ⚠️
crates/bitwarden-wasm-internal/src/vault/totp.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #173      +/-   ##
==========================================
- Coverage   66.09%   66.07%   -0.02%     
==========================================
  Files         198      198              
  Lines       15504    15507       +3     
==========================================
  Hits        10247    10247              
- Misses       5257     5260       +3     

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

Copy link

sonarqubecloud bot commented Mar 6, 2025

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