Skip to content

Conversation

jrmccannon
Copy link
Contributor

@jrmccannon jrmccannon commented Aug 14, 2025

🎟️ Tracking

PM-25167

📔 Objective

Adds conditional code for when wasm feature isn't enabled for get_ancestors.

⏰ 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 Aug 14, 2025

Logo
Checkmarx One – Scan Summary & Details83731180-40e6-4eb0-83b5-471a5823ef6b

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

Copy link

codecov bot commented Aug 14, 2025

Codecov Report

❌ Patch coverage is 0% with 34 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.50%. Comparing base (824c1cf) to head (c22741e).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
crates/bitwarden-uniffi/src/vault/collections.rs 0.00% 24 Missing ⚠️
crates/bitwarden-vault/src/collection_client.rs 0.00% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #386      +/-   ##
==========================================
- Coverage   78.55%   78.50%   -0.05%     
==========================================
  Files         276      276              
  Lines       27483    27500      +17     
==========================================
  Hits        21588    21588              
- Misses       5895     5912      +17     

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

@jrmccannon jrmccannon marked this pull request as ready for review September 19, 2025 20:46
@jrmccannon jrmccannon requested review from a team as code owners September 19, 2025 20:46
@jrmccannon jrmccannon requested a review from Hinton September 22, 2025 14:38
dani-garcia
dani-garcia previously approved these changes Sep 26, 2025
Hinton
Hinton previously approved these changes Sep 29, 2025
) -> Option<Arc<CollectionViewNodeItem>> {
self.tree
.get_item_by_id(collection_id)
.get_item_by_id(collection_view.id.unwrap_or_default().into())
Copy link

@jaasen-livefront jaasen-livefront Sep 29, 2025

Choose a reason for hiding this comment

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

❓ Are we ok with swallowing an empty or invalid id here? Is that the goal of this?

Copy link
Member

@Hinton Hinton Sep 30, 2025

Choose a reason for hiding this comment

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

Long term I think we would split CollectionView similar to folders so that ID is required, and you have a separate DTO for creating them.

I wouldn't be particularly concerned about ID being None here.

@jrmccannon jrmccannon dismissed stale reviews from Hinton and dani-garcia via 789b822 September 30, 2025 19:11
Copy link

@jrmccannon jrmccannon merged commit ae9b8b5 into main Oct 6, 2025
50 checks passed
@jrmccannon jrmccannon deleted the jmccannon/conditional-get-ancestors branch October 6, 2025 13:55
bw-ghapp bot pushed a commit to bitwarden/sdk-swift that referenced this pull request Oct 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.

4 participants