Repository navigation
SolarLens v2.8.0
Coverage above 90% on every measure, branches included - and a bug found on the
way there.
Fixed
- A device record with no station id was stored under the plant id
"null",
the four-character string.pickanswersnullfor a key that is missing,
and the code tested its result againstundefined, so the fallback was always
taken. It never showed, because every caller passes the plant in - which is
exactly the kind of wrong that only a test walking the arm can find.
Changed
-
Coverage thresholds rise to 97% statements, 90% branches, 97% functions and
99% lines, from 95/82/95/97, and the suite measures 98.0 / 90.5 / 98.5 /
99.4 over all ofsrc/. 314 unit tests, up from 275.Branches came up by walking the arms rather than by lowering the bar: each
fallback in the vendor normalisers was given a payload that takes it. Four new
suites -device-shapes,fallbacks,series-rulesand the earlier
sparse- cover the shapes a device record arrives in, a Worker deployed
without its ingest token, a curve nested insidedata, an inverter that
already knows its own name, the three ways a vendor states a timezone, a live
sample beating a backfilled one for the same instant, and where a plant's day
begins when the vendor never said where the plant is.
The full entry is in CHANGELOG.md.