Skip to content

Expand network backups JSON blob into separate tables#1856

Draft
puddly wants to merge 3 commits into
zigpy:devfrom
puddly:puddly/expanded-network-info-tables
Draft

Expand network backups JSON blob into separate tables#1856
puddly wants to merge 3 commits into
zigpy:devfrom
puddly:puddly/expanded-network-info-tables

Conversation

@puddly

@puddly puddly commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

This PR requires #1835 to be merged first, as otherwise there is too much churn during normal network operation.


In order to fully backup and restore a Ziggurat network, we will need to persist a bit more data in the zigpy database. This PR breaks up the monolithic backup JSON into separate tables, allowing us to update counters, etc. without rewriting the whole JSON blob at once. It allows us to backup and restore active routes, child devices, etc. and quickly restart the stack.

@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.49550% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.43%. Comparing base (925ea3d) to head (0b18aa4).

Files with missing lines Patch % Lines
zigpy/appdb.py 93.50% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1856      +/-   ##
==========================================
- Coverage   99.47%   99.43%   -0.04%     
==========================================
  Files          57       57              
  Lines       12026    12121      +95     
==========================================
+ Hits        11963    12053      +90     
- Misses         63       68       +5     

☔ View full report in Codecov by Harness.
📢 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.

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.

1 participant