Skip to content

release 0.3.0 - #12

Merged
teian merged 1 commit into
mainfrom
release/v0.3.0
Aug 19, 2026
Merged

teian merged 1 commit into
mainfrom
release/v0.3.0

Conversation

@teian

@teian teian commented Aug 19, 2026

Copy link
Copy Markdown
Owner

Prepares the 0.3.0 release: the smalog crate version and the Debian
changelog. The release workflow refuses a tag that disagrees with the crate
version, so this has to land before the release is published.

A minor bump rather than a patch: the collector gained behaviour (it stops
asking for values an inverter does not have) and the schema gained a table.

What is in 0.3.0

Refused queries are told apart from silent ones, and asked only once. An
inverter that lacks a value answers SMA error 21; both transports swallowed
that into an empty result, so a definitive answer showed as keine Antwort and
every cycle spent a round trip re-asking it. Such an exchange is now
unsupported — "nicht verfügbar" — and is remembered per inverter in the new
inverter_query_support table, so later cycles skip it. Entries expire after
30 days, so a firmware update that adds a value is still picked up.

The dashboard updates in place. The periodic poll used to empty the chart
and the diagnostics tables before refetching, and a failed poll emptied the
status cards, which read as the page reloading itself twice a minute. Views now
keep their content while the next payload is fetched and only clear when the
range, inverter or period actually changes; a failed poll keeps the last
reading and shows an offline badge.

The release artefacts can be built locally. scripts/build-packages.sh
produces the same archives and Debian packages as the release workflow, into
dist/, without publishing anything.

Upgrading

The diagnostics ring's outcome constraint gained a value, so a database
carrying the previous version has that ring recreated on first start. It is a
48-hour buffer: recent transmission rows are lost, nothing canonical is. The
canonical schema gains inverter_query_support through migration 0002.

Testing

cargo test --workspace --locked (291 passed) and
cargo clippy --workspace --all-targets --locked -- -D warnings are clean,
including the PostgreSQL contract tests against postgres:16-alpine.

A query an inverter does not have is now reported as "not available"
instead of "no answer", remembered per inverter and skipped from then on;
the dashboard updates its charts, cards and tables in place instead of
blanking them every 30 seconds; and the release artefacts can be built
locally with scripts/build-packages.sh.

The schema gains inverter_query_support, and the diagnostics ring is
recreated on first start because its outcome constraint gained a value.
@teian
teian merged commit ec95313 into main Aug 19, 2026
12 checks passed
@teian
teian deleted the release/v0.3.0 branch August 19, 2026 13:41
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