[PR #6834] [PM-30625] fix: Filtering empty totp from count on vault screen #48457

Open
opened 2026-04-26 16:09:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/6834
Author: @aj-rosado
Created: 4/24/2026
Status: 🔄 Open

Base: mainHead: PM-30625/filter-out-empty-totp-vault-count


📝 Commits (1)

  • 0256fbb Filtering empty totp from count on vault screen

📊 Changes

4 files changed (+182 additions, -6 deletions)

View changed files

📝 app/src/main/kotlin/com/x8bit/bitwarden/data/vault/datasource/sdk/VaultSdkSourceImpl.kt (+11 -1)
📝 app/src/main/kotlin/com/x8bit/bitwarden/ui/vault/feature/vault/VaultViewModel.kt (+40 -0)
📝 app/src/main/kotlin/com/x8bit/bitwarden/ui/vault/feature/vault/util/VaultDataExtensions.kt (+8 -5)
📝 app/src/test/kotlin/com/x8bit/bitwarden/ui/vault/feature/vault/VaultViewModelTest.kt (+123 -0)

📄 Description

🎟️ Tracking

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

📔 Objective

SDK is now returning a MissingSecret error when the TOTP value is empty. We are dealing with errors properly although we are not validating on Vault screen if the TOTP values are valid so the count does not match the number of items if some of them are invalid. This checks them before in order to display the correct count.

This PR is also not sending the MissingSecret error to crashlytics but keeping them on FlightRecorder


🔄 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/6834 **Author:** [@aj-rosado](https://github.com/aj-rosado) **Created:** 4/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `PM-30625/filter-out-empty-totp-vault-count` --- ### 📝 Commits (1) - [`0256fbb`](https://github.com/bitwarden/android/commit/0256fbb1f2cac03a4c92877f2ad25001d37df6ea) Filtering empty totp from count on vault screen ### 📊 Changes **4 files changed** (+182 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `app/src/main/kotlin/com/x8bit/bitwarden/data/vault/datasource/sdk/VaultSdkSourceImpl.kt` (+11 -1) 📝 `app/src/main/kotlin/com/x8bit/bitwarden/ui/vault/feature/vault/VaultViewModel.kt` (+40 -0) 📝 `app/src/main/kotlin/com/x8bit/bitwarden/ui/vault/feature/vault/util/VaultDataExtensions.kt` (+8 -5) 📝 `app/src/test/kotlin/com/x8bit/bitwarden/ui/vault/feature/vault/VaultViewModelTest.kt` (+123 -0) </details> ### 📄 Description ## 🎟️ Tracking https://bitwarden.atlassian.net/browse/PM-30625 ## 📔 Objective SDK is now returning a `MissingSecret` error when the TOTP value is empty. We are dealing with errors properly although we are not validating on Vault screen if the TOTP values are valid so the count does not match the number of items if some of them are invalid. This checks them before in order to display the correct count. This PR is also not sending the `MissingSecret` error to crashlytics but keeping them on FlightRecorder --- <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 2026-04-26 16:09:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#48457