[PR #3439] [MERGED] PM-7495 perform client side check for invalid MP before account deletion #79460

Closed
opened 2026-05-19 17:11:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/3439
Author: @dseverns-livefront
Created: 7/10/2024
Status: Merged
Merged: 7/15/2024
Merged by: @dseverns-livefront

Base: mainHead: PM-7495-delete-account-mp-error-correct-dialog


📝 Commits (6)

  • 51b7b07 PM-7495 perform client side check for invalid MP before account deletion
  • dbb381e detekt
  • 17235ed channelling better thread safety
  • baab5ea detekt
  • a64ad3e loading dialog state to cover both MP and network check
  • 4af4020 closer to og order

📊 Changes

2 files changed (+93 additions, -21 deletions)

View changed files

📝 app/src/main/java/com/x8bit/bitwarden/ui/platform/feature/settings/accountsecurity/deleteaccount/DeleteAccountViewModel.kt (+54 -21)
📝 app/src/test/java/com/x8bit/bitwarden/ui/platform/feature/settings/accountsecurity/deleteaccount/DeleteAccountViewModelTest.kt (+39 -0)

📄 Description

🎟️ Tracking

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

📔 Objective

Show the correct verbiage in the dialog if the user enters the wrong master password, we are doing this by using the existing client side check we have used elsewhere in the app, if that returns a result and password is NOT valid, we show the dialog saying so, otherwise use the same logic as before where we just use the server response and message.

📸 Screenshots

https://github.com/bitwarden/android/assets/149429124/ca8c8ce1-6504-411f-bfb8-586392a98f59

Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation 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/3439 **Author:** [@dseverns-livefront](https://github.com/dseverns-livefront) **Created:** 7/10/2024 **Status:** ✅ Merged **Merged:** 7/15/2024 **Merged by:** [@dseverns-livefront](https://github.com/dseverns-livefront) **Base:** `main` ← **Head:** `PM-7495-delete-account-mp-error-correct-dialog` --- ### 📝 Commits (6) - [`51b7b07`](https://github.com/bitwarden/android/commit/51b7b076633251a268e41b41d55d9113095d773c) PM-7495 perform client side check for invalid MP before account deletion - [`dbb381e`](https://github.com/bitwarden/android/commit/dbb381e267b19772949f8246d6e5886d94a4e35c) detekt - [`17235ed`](https://github.com/bitwarden/android/commit/17235edee1b9c4d652f594f0684bb89927a1e49b) channelling better thread safety - [`baab5ea`](https://github.com/bitwarden/android/commit/baab5eae99aa82fe66222c1a624eef268077dd5d) detekt - [`a64ad3e`](https://github.com/bitwarden/android/commit/a64ad3ed1e5c9062d4d377ec2ac95d5e9f32f92b) loading dialog state to cover both MP and network check - [`4af4020`](https://github.com/bitwarden/android/commit/4af40202d6d02071b0810b0f1798d2cf7a153b45) closer to og order ### 📊 Changes **2 files changed** (+93 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `app/src/main/java/com/x8bit/bitwarden/ui/platform/feature/settings/accountsecurity/deleteaccount/DeleteAccountViewModel.kt` (+54 -21) 📝 `app/src/test/java/com/x8bit/bitwarden/ui/platform/feature/settings/accountsecurity/deleteaccount/DeleteAccountViewModelTest.kt` (+39 -0) </details> ### 📄 Description ## 🎟️ Tracking https://bitwarden.atlassian.net/browse/PM-7495 <!-- Paste the link to the Jira or GitHub issue or otherwise describe / point to where this change is coming from. --> ## 📔 Objective Show the correct verbiage in the dialog if the user enters the wrong master password, we are doing this by using the existing client side check we have used elsewhere in the app, if that returns a result and password is *NOT* valid, we show the dialog saying so, otherwise use the same logic as before where we just use the server response and message. <!-- Describe what the purpose of this PR is, for example what bug you're fixing or new feature you're adding. --> ## 📸 Screenshots https://github.com/bitwarden/android/assets/149429124/ca8c8ce1-6504-411f-bfb8-586392a98f59 <!-- Required for any UI changes; delete if not applicable. Use fixed width images for better display. --> ## ⏰ Reminders before review - Contributor guidelines followed - All formatters and local linters executed and passed - Written new unit and / or integration tests where applicable - Used internationalization (i18n) for all UI strings - CI builds passed - Communicated to DevOps any deployment requirements - Updated any necessary documentation 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 2026-05-19 17:11:34 -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#79460