Skip to content

Conversation

@aj-rosado
Copy link
Contributor

🎟️ Tracking

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

📔 Objective

When an item belongs to a collection, should not be displayed the "My items" collection

⏰ 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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2025

Logo
Checkmarx One – Scan Summary & Detailseaa32c08-aa98-4a2a-a737-bfb0b0610db6

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

@codecov
Copy link

codecov bot commented Oct 13, 2025

Codecov Report

❌ Patch coverage is 47.05882% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.55%. Comparing base (912eba1) to head (6e7ca65).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
...toorganization/VaultMoveToOrganizationViewModel.kt 38.46% 7 Missing and 1 partial ⚠️
...tion/util/VaultMoveToOrganizationViewExtensions.kt 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6018      +/-   ##
==========================================
- Coverage   84.59%   84.55%   -0.05%     
==========================================
  Files         722      736      +14     
  Lines       54897    55268     +371     
  Branches     7581     7591      +10     
==========================================
+ Hits        46440    46730     +290     
- Misses       5800     5877      +77     
- Partials     2657     2661       +4     

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

@aj-rosado aj-rosado marked this pull request as ready for review October 13, 2025 17:58
val selectableCollections: List<VaultCollection>
get() {
val collections =
organizations.first { it.id == selectedOrganizationId }.collections
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we chain this:

val collections = organizations
    .first { it.id == selectedOrganizationId }
    .collections

selectedOrganization.collections.any {
it.id == collectionId && it.isDefaultUserCollection
}
} ?: false
Copy link
Collaborator

Choose a reason for hiding this comment

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

Formatting here too:

cipherToMove
    ?.collectionIds
    ?.any { collectionId ->
        selectedOrganization.collections.any {
            it.id == collectionId && it.isDefaultUserCollection
        }
    }
    ?: false

it.id == collectionId && it.isDefaultUserCollection
}
}
?: false
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for updating that

@aj-rosado aj-rosado added this pull request to the merge queue Oct 15, 2025
Merged via the queue into main with commit b8f4129 Oct 15, 2025
9 of 12 checks passed
@aj-rosado aj-rosado deleted the PM-26395/hide-my-items-collection-on-collection-item branch October 15, 2025 10:53
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