[PR #5497] [MERGED] [PM-19309] Fix search when restrict item policy is enabled #5817

Closed
opened 2025-11-27 00:14:48 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/5497
Author: @andrebispo5
Created: 7/9/2025
Status: Merged
Merged: 7/9/2025
Merged by: @andrebispo5

Base: mainHead: pm-19309/hide-cards-policy-search


📝 Commits (4)

  • ccb0f57 [PM-19309] Fix search when restrict item policy is enabled.
  • 791bcbf [PM-19309] Remove unnecessary import
  • cea6a88 [PM-19309] Apply PR suggestions
  • aae9a08 [PM-19309] Lint

📊 Changes

3 files changed (+142 additions, -0 deletions)

View changed files

📝 app/src/main/kotlin/com/x8bit/bitwarden/ui/platform/feature/search/SearchViewModel.kt (+64 -0)
📝 app/src/test/kotlin/com/x8bit/bitwarden/ui/platform/feature/search/SearchScreenTest.kt (+2 -0)
📝 app/src/test/kotlin/com/x8bit/bitwarden/ui/platform/feature/search/SearchViewModelTest.kt (+76 -0)

📄 Description

🎟️ Tracking

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

📔 Objective

Apply restrict item policy when searching items.

📸 Screenshots

https://github.com/user-attachments/assets/35a9cef2-e414-4473-a5d8-8ca45f796711

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bitwarden/android/pull/5497 **Author:** [@andrebispo5](https://github.com/andrebispo5) **Created:** 7/9/2025 **Status:** ✅ Merged **Merged:** 7/9/2025 **Merged by:** [@andrebispo5](https://github.com/andrebispo5) **Base:** `main` ← **Head:** `pm-19309/hide-cards-policy-search` --- ### 📝 Commits (4) - [`ccb0f57`](https://github.com/bitwarden/android/commit/ccb0f57c3d2b37c54568e17ba97f1dd28ec8a275) [PM-19309] Fix search when restrict item policy is enabled. - [`791bcbf`](https://github.com/bitwarden/android/commit/791bcbfc94a552987f91805436c1beca8e80453e) [PM-19309] Remove unnecessary import - [`cea6a88`](https://github.com/bitwarden/android/commit/cea6a880c71a68a2871ea55a2d2323548b5e5ac1) [PM-19309] Apply PR suggestions - [`aae9a08`](https://github.com/bitwarden/android/commit/aae9a08c83051c32031b4bc744c42c028ded9cbf) [PM-19309] Lint ### 📊 Changes **3 files changed** (+142 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `app/src/main/kotlin/com/x8bit/bitwarden/ui/platform/feature/search/SearchViewModel.kt` (+64 -0) 📝 `app/src/test/kotlin/com/x8bit/bitwarden/ui/platform/feature/search/SearchScreenTest.kt` (+2 -0) 📝 `app/src/test/kotlin/com/x8bit/bitwarden/ui/platform/feature/search/SearchViewModelTest.kt` (+76 -0) </details> ### 📄 Description ## 🎟️ Tracking <!-- Paste the link to the Jira or GitHub issue or otherwise describe / point to where this change is coming from. --> https://bitwarden.atlassian.net/browse/PM-19309 ## 📔 Objective <!-- Describe what the purpose of this PR is, for example what bug you're fixing or new feature you're adding. --> Apply restrict item policy when searching items. ## 📸 Screenshots <!-- Required for any UI changes; delete if not applicable. Use fixed width images for better display. --> https://github.com/user-attachments/assets/35a9cef2-e414-4473-a5d8-8ca45f796711 ## ⏰ 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 <!-- Suggested interactions but feel free to use (or not) as you desire! --> - 👍 (`:+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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-27 00:14:48 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#5817