[PR #4238] [CLOSED] PM-14433: Handle a null domains object in the sync response and database #4795

Closed
opened 2025-11-26 23:49:52 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/4238
Author: @david-livefront
Created: 11/5/2024
Status: Closed

Base: mainHead: PM-14433-null-domain-data


📝 Commits (1)

  • 7e66db2 PM-14433: Handle a null domains object in the sync response and database

📊 Changes

10 files changed (+275 additions, -17 deletions)

View changed files

app/schemas/com.x8bit.bitwarden.data.vault.datasource.disk.database.VaultDatabase/5.json (+256 -0)
📝 app/src/main/java/com/x8bit/bitwarden/data/vault/datasource/disk/VaultDiskSource.kt (+1 -1)
📝 app/src/main/java/com/x8bit/bitwarden/data/vault/datasource/disk/VaultDiskSourceImpl.kt (+3 -3)
📝 app/src/main/java/com/x8bit/bitwarden/data/vault/datasource/disk/dao/DomainsDao.kt (+1 -1)
📝 app/src/main/java/com/x8bit/bitwarden/data/vault/datasource/disk/database/VaultDatabase.kt (+1 -1)
📝 app/src/main/java/com/x8bit/bitwarden/data/vault/datasource/disk/entity/DomainsEntity.kt (+1 -1)
📝 app/src/main/java/com/x8bit/bitwarden/data/vault/datasource/network/model/SyncResponseJson.kt (+1 -1)
📝 app/src/main/java/com/x8bit/bitwarden/data/vault/repository/util/DomainsExtensions.kt (+3 -3)
📝 app/src/test/java/com/x8bit/bitwarden/data/vault/datasource/disk/VaultDiskSourceTest.kt (+6 -3)
📝 app/src/test/java/com/x8bit/bitwarden/data/vault/datasource/disk/dao/FakeDomainsDao.kt (+2 -3)

📄 Description

🎟️ Tracking

PM-14433

📔 Objective

This PR allows for the domains data to be nullable in the sync response JSON and handles all the downstream affects that change has.

📸 Screenshots

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/4238 **Author:** [@david-livefront](https://github.com/david-livefront) **Created:** 11/5/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `PM-14433-null-domain-data` --- ### 📝 Commits (1) - [`7e66db2`](https://github.com/bitwarden/android/commit/7e66db226c273eb58c8f33ec75ef09b233103b5c) PM-14433: Handle a null domains object in the sync response and database ### 📊 Changes **10 files changed** (+275 additions, -17 deletions) <details> <summary>View changed files</summary> ➕ `app/schemas/com.x8bit.bitwarden.data.vault.datasource.disk.database.VaultDatabase/5.json` (+256 -0) 📝 `app/src/main/java/com/x8bit/bitwarden/data/vault/datasource/disk/VaultDiskSource.kt` (+1 -1) 📝 `app/src/main/java/com/x8bit/bitwarden/data/vault/datasource/disk/VaultDiskSourceImpl.kt` (+3 -3) 📝 `app/src/main/java/com/x8bit/bitwarden/data/vault/datasource/disk/dao/DomainsDao.kt` (+1 -1) 📝 `app/src/main/java/com/x8bit/bitwarden/data/vault/datasource/disk/database/VaultDatabase.kt` (+1 -1) 📝 `app/src/main/java/com/x8bit/bitwarden/data/vault/datasource/disk/entity/DomainsEntity.kt` (+1 -1) 📝 `app/src/main/java/com/x8bit/bitwarden/data/vault/datasource/network/model/SyncResponseJson.kt` (+1 -1) 📝 `app/src/main/java/com/x8bit/bitwarden/data/vault/repository/util/DomainsExtensions.kt` (+3 -3) 📝 `app/src/test/java/com/x8bit/bitwarden/data/vault/datasource/disk/VaultDiskSourceTest.kt` (+6 -3) 📝 `app/src/test/java/com/x8bit/bitwarden/data/vault/datasource/disk/dao/FakeDomainsDao.kt` (+2 -3) </details> ### 📄 Description ## 🎟️ Tracking [PM-14433](https://bitwarden.atlassian.net/browse/PM-14433) ## 📔 Objective This PR allows for the domains data to be nullable in the sync response JSON and handles all the downstream affects that change has. ## 📸 Screenshots <!-- 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 [PM-14433]: https://bitwarden.atlassian.net/browse/PM-14433?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --- <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-26 23:49:52 -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#4795