Skip to content

Show restored-but-disabled aggregators as ready to enable#107

Merged
d4rken merged 1 commit into
devfrom
fix/aggregator-restored-label
Jun 19, 2026
Merged

Show restored-but-disabled aggregators as ready to enable#107
d4rken merged 1 commit into
devfrom
fix/aggregator-restored-label

Conversation

@d4rken

@d4rken d4rken commented Jun 19, 2026

Copy link
Copy Markdown
Member

Restoring a device backup that includes third-party aggregators seeds each saved identity (sharing keys, feeder IDs) to disk but leaves the adapter disabled — re-enabling is a deliberate manual step, since it triggers the vendor install and resumes feeding your data. The status page rendered that seeded-but-disabled state as "Not set up", indistinguishable from an adapter you never configured, so a successful restore looked like it did nothing.

A restored adapter now reads "Ready to enable" wherever its status badge appears, and the restore checklist tells the operator the identities were restored and just need enabling. The aggregator backup section is also trimmed to the fields it actually needs, dropping a couple of internal RPC envelope fields that were leaking into the saved file; older backups still restore unchanged.

…onfigured

A restored identity is seeded disabled, so it reports not_installed with
configured=true and rendered as "Not set up" — identical to a never-touched
adapter, making a successful restore look like a no-op. Map that state to a
distinct "Ready to enable" badge, and have the restore summary note that
identities were restored and need enabling to resume feeding.

Also trim the aggregator backup section to {kind, schema_version, aggregators},
dropping the RPC envelope fields (result, protocol_version) that leaked in via
verbatim embedding. Mirrors the Wi-Fi reshape; the lenient importer keeps older
backups loadable.
@d4rken d4rken added the bug Something isn't working label Jun 19, 2026
@d4rken d4rken merged commit cababe4 into dev Jun 19, 2026
7 checks passed
@d4rken d4rken deleted the fix/aggregator-restored-label branch June 19, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant