# Logbook of code changes

**URL:** <https://community.panodata.org/t/logbook-of-code-changes/16>\
**Category:** The workbench\
**Created:** [October 2, 2019, 11:00pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16 "2019-10-02T23:00:58Z")\
**Posts on this page:** 20\
**Page:** 363

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 29, 2026, 10:42am UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7248 "2026-09-29T10:42:44Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/8e6e1d87da34e11aed4af5ad330f10faf7cdfbb5>
>
> The entry ran to eleven lines -- past the ten the \[Unreleased\] entries stay unde…r -- and most of
> it was the reasoning and the unit test behind the fix, which belong in the commit (1bae2c65), not
> the changelog. It also ended in a bare GH-1919 rather than (GH-1919). It now says which labels
> borrowed the English word and what they say instead.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 29, 2026, 11:19am UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7249 "2026-09-29T11:19:44Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/663c53d12a8f5ec72bb62978ac2a6ca21b1fce1b>
>
> \`pnpm update\` within the existing ranges and the three-day cooldown fixes nine o…f the eleven:
> js-yaml 4.3.2, svgo 4.1.0, qs 6.16.0, devalue 5.9.2, undici 8.10.2 and vitest 4.1.11, and moves
> the direct dependencies to their latest minor -- @nuxt/ui 4.11.2, vue 3.5.43, zod 4.6.5, eslint
> 10.11, oxlint 1.85 among them. Majors (vitest 5, @vueuse 15, plotly.js 4, typescript 7) are left
> for their own change.
> 
> The other two are in @tiptap/core, an auto-installed peer of @nuxt/ui declared as \`^3\`. pnpm
> keeps a peer it has already locked while it satisfies the range, so the whole Tiptap family sat
> at 3.26 even though @nuxt/ui 4.11 depends on ^3.31.3. An override on @tiptap/core alone moves it
> past @tiptap/pm and leaves unmet peers; adding the seventeen peers @nuxt/ui names at ^3.31.3 and
> removing them again re-resolves the family together, all 39 packages at 3.31.3, with no override
> left behind and no unmet Tiptap peer.
> 
> @antfu/eslint-config 9.5 lints pnpm-workspace.yaml for key order, blank lines around multi-line
> entries and \`minimumReleaseAgeExcludePrune: true\`; \`eslint --fix\` applied them, comments intact.
> .nuxtrc records the @nuxt/test-utils version its setup ran with.
> 
> \`pnpm audit\` reports no known vulnerabilities. Lint, typecheck, the unit tests (273 passed) and
> the build pass locally.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 29, 2026, 11:19am UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7250 "2026-09-29T11:19:53Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/859cf758bddbff4c5c1dc5664cd83a4cbe1ce467>
>
> \`uv lock --upgrade\` within the declared ranges and the three-day cooldown moves …40 packages and
> adds msgspec, a new transitive dependency: fastmcp 4.0.3 -\> 4.0.10, fsspec 2026.7 -\> 2026.9,
> starlette 1.7, uvicorn 0.54, ruff 0.16.9, ty 0.0.84 among them.
> 
> Three releases dropped old Pythons, so the lock now forks by version: SQLAlchemy 2.1.1 requires
> 3.11 and zarr 3.4.0 requires 3.12, and 3.10 keeps SQLAlchemy 2.0.54 (3.11 keeps zarr 3.1.6).
> cyclopts 5 and fonttools 4.66 fork the same way. aiofile, a transitive dependency of fastmcp's
> key-value store, resolves to 3.8.8 on 3.10 where it was 3.9.0; 3.11 and later get 3.12.3.
> 
> \`uv audit\` is clean but for the diskcache advisory, which has no fix and stays ignored. Lint,
> typecheck, the offline selection (1337 passed) and the SQL tests (8 passed, on SQLAlchemy 2.1.1)
> pass locally.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 29, 2026, 11:26am UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7251 "2026-09-29T11:26:46Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/4c7728ed9c63ed3a452018edd503dd9e57f7bb6b>
>
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 29, 2026, 11:32am UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7252 "2026-09-29T11:32:13Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/3cb338ee098a943885d380c648cae5024645e9ca>
>
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 29, 2026, 2:49pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7253 "2026-09-29T14:49:21Z")

</div>

> <https://github.com/grafana-toolbox/grafana-client/commit/ef062b355f22b88e113b27892e1e1c76b23bd5c8>
>
> Bumps prom/prometheus from v3.14.0 to v3.15.0.
> 
> \---
> updated-dependencies:
> \- depe…ndency-name: prom/prometheus
> dependency-version: v3.15.0
> dependency-type: direct:production
> ...
> 
> Signed-off-by: dependabot\[bot\] \<support@github.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 29, 2026, 2:51pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7254 "2026-09-29T14:51:13Z")

</div>

> <https://github.com/grafana-toolbox/grafana-client/commit/bfc7448cbd85f1f4dcbe181e80a1607bdd724532>
>
> Bumps \[ty\](https://github.com/astral-sh/ty) from 0.0.83 to 0.0.84.
> \- \[Release no…tes\](https://github.com/astral-sh/ty/releases)
> \- \[Changelog\](https://github.com/astral-sh/ty/blob/main/CHANGELOG.md)
> \- \[Commits\](https://github.com/astral-sh/ty/compare/0.0.83...0.0.84)
> 
> \---
> updated-dependencies:
> \- dependency-name: ty
> dependency-version: 0.0.84
> dependency-type: direct:development
> update-type: version-update:semver-patch
> ...
> 
> Signed-off-by: dependabot\[bot\] \<support@github.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 29, 2026, 6:23pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7255 "2026-09-29T18:23:30Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/7f0fd62aa1572590f38ca4004d1de86079d01c4b>
>
> \* fix(cli): look up radar --wmo\_code as the integer the sites hold (GH-2023)
> 
> \`-…-wmo\_code\` was declared \`click.STRING\`, and \`OperaRadarSites.by\_wmo\_code\`
> compares it with \`==\` against \`wmocode\`, which the bundled sites carry as an
> int. A string never equals an int, so \`wetterdienst radar --wmo\_code 11038\`
> failed for Rauris, a site that exists. The option is now \`click.INT\`, which
> also turns \`--wmo\_code abc\` into a usage error rather than a miss.
> 
> The lookups raise \`KeyError\` for a code, ODIM code or country no site has.
> That reached the user as a traceback; it is now a \`click.ClickException\`
> naming the miss, exit status 1. The lookup moves into \`\_radar\_sites\` so the
> command can catch it, and the \`wmo\_code\` branch tests \`is not None\` so a code
> of 0 is looked up rather than falling through.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(cli): apply history --sections, as the REST API does (GH-2022)
> 
> The CLI validated \`--sections\` into \`HistoryRequest.sections\` and then
> dumped every history whole, so \`--sections geography\` answered the same
> document as no \`--sections\` at all. The REST endpoint filtered, but by
> iterating \`request.sections\`, a set, so a request for \`geography,name\`
> answered its keys in whatever order the set hashed them.
> 
> Both now go through \`select\_history\_sections\` in \`ui/core.py\`, which
> iterates the dumped history instead: the sections come back in \`History\`'s
> field order whatever order they were asked in, and the two front ends cannot
> drift apart again. The REST handler's branch went with it, so its C901
> suppression is no longer needed.
> 
> The CLI also built the request with \`HistoryRequest.model\_validate\` directly,
> so an unknown section such as \`geo\` surfaced as a pydantic traceback. It now
> goes through \`\_validate\_request\` like the other commands and exits 2 with the
> list of valid sections.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* docs(cli): name only the options and commands that exist (GH-2021)
> 
> The top-level help is a hand-written copy of every command's options, and
> it had drifted: \`--si\_units\` (the option is \`--convert\_units\`), \`--tidy\`
> (replaced by \`--shape\`, long being the default), \`--country-name\` and
> \`--wmo-code\` (both use underscores), and a \`warming\_stripes\` command that
> is \`stripes values --kind=temperature\` now, with a \`--name\_treshold=70\` that
> is spelt \`--name\_threshold\` and takes a fraction. Five examples also lacked
> the trailing backslash before their continuation line, so pasting one ran
> the command without its \`--station\`.
> 
> \`--convert\_units\` and the REST/MCP \`convert\_units\` field promised SI units
> "(e.g. °C → K)". Conversion goes to the unit targets, whose temperature
> default is \`degree\_celsius\`, so both now say that. \`docs/usage/python-api.md\`
> named a \`ts\_si\_units\` setting that is \`ts\_convert\_units\`.
> 
> The glossary help gave the vocabulary as 504 parameters and settings.py as
> 514; \`PARAMETER\_TABLE\` holds 589, and "temperature" matches 196, not 184.
> The issue suggested deriving the count, but a docstring cannot interpolate
> and the help is built at import, so the numbers go instead.
> 
> \`CoverageParameter.unit\_original\` goes from the app's API types: the
> backend's coverage never sends it and nothing in the app reads it.
> 
> Two tests in test\_cli.py guard the help: every option it names is declared
> by some command, and each \`wetterdienst ...\` example resolves to a command
> that declares the options it uses. Both fail on the text before this commit
> (11 failures). Neither catches a missing continuation backslash, since an
> unjoined line simply drops the options after it.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(cli): the review findings on the help, radar and history (GH-2021)
> 
> A review of this branch found the help still wrong where the tests could
> not see it.
> 
> The Overview and Options sections restated each command's options by hand,
> under synopses shared by two commands: \`{stations,values}\` gave stations
> values' \`--shape\`, \`--humanize\` and \`--skip\_\*\`, \`{interpolate,summarize}\`
> gave both \`--shape\` and \`--drop\_nulls\`, which neither takes, and gave
> summarize the \`--interpolation\_station\_distance\*\` options where it takes
> \`--summary\_station\_distance\*\`. Both showed \`\[--convert\_units\]\`,
> \`\[--humanize\]\`, \`\[--drop\_nulls\]\` and \`\[--skip\_empty\]\` as bare flags though
> each takes a value, so copying the synopsis failed. Every option's own help
> already says all of this correctly, so the two sections go rather than being
> corrected by hand once more. The examples stay.
> 
> Two examples were wrong as well. The database \`alias fetch=\` still passed
> \`--parameters=kl --resolution=daily --period=recent\`, which the example
> check skipped because the line starts with \`alias\`. And the first
> \`--sql\_values\` example filtered on a \`wind\_gust\_max\` column, which exists
> only in the wide shape, so it failed with a DuckDB binder error under the
> default long one, below a comment about maximum temperature. It now asks for
> \`--shape=wide\`; both SQL examples run and return the gusts.
> 
> The example check now reads the command inside an alias, and a new check
> fails an indented continuation line that does not follow a backslash.
> Against the text before this commit both fail, as does each test below.
> 
> \`radar --odim-code=de\` raised by\_odim\_code's ValueError for a code of the
> wrong length as a traceback; it is a usage error now. \`history\` with neither
> \`--all\` nor \`--station\` fell through to get\_stations' KeyError, logged as a
> traceback with exit status 1; it is a usage error too. The \`sections\`
> parameter is annotated as the string click passes, not a list.
> 
> README.md still counted 514 canonical parameters; there are 589.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* revert(app): keep CoverageParameter.unit\_original out of this backend PR
> 
> The GH-2021 commit removed \`unit\_original\` from the app's CoverageParameter
> type, one of the five items that issue lists. The app is released on its
> own line, so its change belongs in an app PR rather than in this CLI one;
> the line is restored here and the cleanup tracked on its own.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(cli): the help's hourly precipitation and alerts date examples (GH-2021)
> 
> The "multiple given parameters" example asked for
> hourly/precipitation\_more/precipitation\_amount. DWD has precipitation\_more
> only at daily, monthly and annual resolution, and parse\_parameters only
> logs a dataset it cannot find, so the example ran and returned temperature
> alone. It asks for hourly/precipitation now. A new test resolves every
> example's --parameters against its network's metadata; it fails on the old
> example.
> 
> The alerts example carried --date=2026-07-26T10:00:00, outside DWD's rolling
> ~48-hour window since two days after it was written. It shows a placeholder
> now, and its comment says to use a time from the last two days.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 29, 2026, 6:27pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7256 "2026-09-29T18:27:06Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/1d0aed48b6bd0d267716fa15f799c96a4f0bb0ef>
>
> \* fix(core): check the station selection in the request models (GH-2056)
> 
> \`get\_s…tations\` takes the first station selection it finds. The CLI refused
> a request that made two, or none, or half of one, but only through cloup
> constraints on its options; the REST API and MCP build the same request
> models without them. So \`/api/stations?station=01048&name=Hamburg-Fuhlsbüttel\`
> answered 200 with Dresden-Klotzsche and dropped the name without a word, and
> a missing selection surfaced as get\_stations' KeyError, a 400.
> 
> The rules now live in model validators: \`\_check\_station\_selection\` for
> \`StationsRequest\` and \`ValuesRequest\`, one of all/station for
> \`HistoryRequest\`, and \`\_check\_reference\_point\` (station or a point) for
> \`InterpolationRequest\` and \`SummaryRequest\`. FastAPI reports a failed model
> as 422, like every other invalid query parameter. \`rank\` stays valid beside
> \`name\`, where get\_stations uses it to cap the fuzzy matches and the MCP tool
> description tells a model to pass it; cloup refused that combination.
> 
> \`get\_interpolate\` and \`get\_summarize\` tested \`request.latitude and
> request.longitude\` for truth, so latitude 0 or longitude 0 fell through to
> "Either latitude and longitude or station must be provided". They test
> \`is not None\` now; the validator is what guarantees one reference.
> 
> The stations and values endpoint docstrings, which are also the MCP tool
> descriptions, say a request makes exactly one selection. Three tests that
> built a \`StationsRequest\` with no selection to exercise period handling pass
> \`all=True\`.
> 
> tests/ui/test\_core.py covers each rule at the model; the equator test fails
> on the truthiness check (2 failures) and passes on this one. The REST tests
> show both endpoints refuse two selections with 422.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* refactor(cli): drop cloup for plain click options (GH-2056)
> 
> cloup gave the CLI three things. Option groups made \`stations --help\` nine
> headings over about 25 options, five of them over a single option, with
> \`--parameters\`, \`--periods\` and \`--date\` left in "Other options" at the
> bottom; and the station\_options\_\* helpers applied their options through
> functools.reduce, so no command's options could be read off its own
> definition. Constraints enforced the station selection, which the previous
> commit moved into the request models. Sections grouped the top-level
> command list.
> 
> Each option several commands take is now one module-level click.option,
> and each command stacks the ones it takes in the order its help shows them:
> what is requested, which stations, what is done to the values, the output.
> Options a single command takes stay inline, and every option has a help
> text. The three rules with no request model become checks in the command:
> radar's one site selector and stripes values' --station or --name raise
> UsageError, and about fields marks --resolution, --dataset and --period
> required, which is what cloup's require\_all over a group with a defaulted
> \--language amounted to. \`\_validate\_request\` reports one line per problem
> rather than pydantic's str(), which echoed every option the command took
> as input\_value.
> 
> The top-level help was about 430 hand-written lines restating every
> option, and GH-2021 found it naming options that did not exist. It is now a
> short overview. The examples, the part worth keeping, move into each
> command's epilog, where they print after the options they use. Moving them
> turned up more drift: an alias using the retired \`--parameters=kl
> \--resolution=daily --period=recent\`, a comment about maximum temperature
> over a query on wind gusts, \`--date\` listed as a stations filter and
> \`--language\` as a general output option. docs/usage/cli.md renders every
> command's --help at build time instead of printing the old text.
> \`docstring\_format\_verbatim\` has no users left and goes.
> 
> Every example in the help but restapi's two was run against the live services, and each
> exits 0 except \`alerts --date=2026-07-26T10:00:00\`, which is outside DWD's
> 48-hour window as any fixed date soon is; its comment now says to use a
> recent time. test\_cli.py checks that each example names a command and only
> that command's options, that each continuation line follows a backslash,
> and that each rule refuses a request before anything is fetched.
> 
> Two inconsistencies stay because changing them breaks invocations:
> \`--pretty\` takes a value on stations/values/history and is a flag on
> interpolate/summarize, and stations/values spell \`--name-threshold\` where
> stripes values has \`--name\_threshold\`.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(cli): the second review's findings on the cloup removal (GH-2056)
> 
> The continuation-backslash check never saw a command's examples.
> \`\_examples\` dedents each block, so a continuation line sits at four spaces,
> and the check wanted six or more: it matched none of them. It matches any
> indentation now and runs over the example texts only, since a wrapped
> docstring line may start with an option. Dropping the backslash before a
> stations example's \`--latitude\` line fails it, which it did not before.
> 
> The GH-2021 changelog entry says the \`--sql\_values\` example on a column
> runs in the wide shape it needs; that example had not survived the move
> into the values epilog. It is back, beside the long-shape one.
> 
> \`rank\`'s field description, which the OpenAPI schema and so the MCP tool
> show, still said it was for a point only. It names both uses now.
> 
> \`radar\` counted \`--odim-code ""\` as a selection and then matched nothing,
> answering "No valid option provided"; an empty code or country selects
> nothing, so the command asks for one.
> 
> /api/history's own 400 for a missing station or all could no longer run:
> the model refuses that first, as a 422, which a test now pins.
> 
> interpolate and summarize each defined \`--station\`, \`--elevation\`,
> \`--use\_nearby\_station\_distance\`, the flag \`--pretty\` and three
> \`--\<kind\>\_station\_distance\*\` options inline. They are module-level options
> now, the three through \`station\_distance\_opts(kind)\`.
> 
> \`\_validate\_request\`'s docstring said bad parameter where it raises a usage
> error; \`--start-date\` says again that alone it is a single date, and
> \`--end-date\` no longer states its one condition twice. get\_stations'
> fallback message lists \`sql\` among the selections.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(cli): name the options a refused request got wrong (GH-2056)
> 
> With the station-selection rules moved into the request models, the CLI
> printed their messages as the REST API reads them: "Select stations by
> exactly one of all, station, name ...", "rank applies to latitude/longitude
> or name", "sections.0: Input should be ...". A CLI user has no \`all\` or
> \`rank\` to give, only \`--all\` and \`--rank\`, and the sections error named
> neither the option nor the value it refused, only a position within a set.
> 
> The rules now spell each field through the validation context: the CLI's
> \_validate\_request passes \`field\_names\`, each field mapped to the option that
> sets it, taken from the running command's parameters, so \`format\` comes from
> \--format though its parameter is \`fmt\`. Without a context, as the REST API
> and MCP validate, a field is named as itself, so their messages and the
> 422s they return are unchanged. There is one copy of each rule and its
> wording.
> 
> A single field's error names the option and ends with the value refused:
> "--sections: Input should be 'name', ... (got 'foo')". A position within a
> list or set is left out, as the value it points at is shown; a key within a
> mapping stays, as in "--unit\_targets\[temperature\]".
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(api): report the station-selection rules as FastAPI and click report their own (GH-2056)
> 
> The rules over several fields raised a ValueError, so FastAPI answered each
> with one \`value\_error\` located at the query as a whole, its message prefixed
> "Value error, ", and the CLI could only reprint that message with field
> names swapped for options. Neither reads like the framework's own errors.
> 
> The models now raise a ValidationError of their own, which pydantic passes on
> as it is: one error per field involved, located at that field as pydantic
> locates one field's error, of a type naming the rule, with the other fields
> in \`ctx\`:
> 
> \- missing\_one\_of no selection loc () one\_of
> \- mutually\_exclusive two selections loc each conflicts\_with
> \- missing\_with half of one loc missing required\_with
> \- requires rank or distance alone loc it requires
> 
> So /api/stations?station=01048&name=... answers 422 with an error at
> \["query", "station"\] and one at \["query", "name"\], each "Cannot be combined
> with ...", as FastAPI answers a distance below 0 with one at \["query",
> "distance"\]. The messages are worded as pydantic words its own, sentence
> case without a full stop: "Field required with latitude".
> 
> The CLI renders each error from its type and ctx in click's terms, naming
> every field by its option's error hint: MissingParameter for missing\_with
> ("Missing option '--longitude'. Required with '--latitude'."), BadParameter
> for a single value ("Invalid value for '--distance': ... (got -1.0)."), and
> for the rest the wording click would use: "Missing option: one of ...",
> "Options '--station' and '--name' cannot be used together.", "Option
> '--rank' requires ...". A conflict reported at each option is told once.
> radar and stripes values, which have no request model, say theirs the same
> way through \_require\_one\_of.
> 
> This replaces the \`field\_names\` validation context of the previous commit:
> the models no longer need to know how the CLI spells a field.
> 
> core.py now imports pydantic\_core at runtime (PydanticCustomError,
> InitErrorDetails, which pydantic does not re-export), so pydantic-core is
> declared, from the version pydantic 2.7.3 pins.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): tell the backend's validation errors, and do not save them as a download (GH-2056)
> 
> The data viewer read \`detail\` of an error response as a string. That holds
> for the errors an endpoint raises itself, a 400 or 404, but a request that
> fails validation is a 422 whose \`detail\` is FastAPI's list of entries, and
> the toast showed \`\[object Object\]\`. With the station-selection rules now in
> the request models, every refused selection is such a 422.
> 
> describeApiError (utils/api-error.ts) tells either shape: a string as it is,
> a list an entry at a time by the parameter it is located at, dropping the
> \`query\` in front of it -- "station: Cannot be combined with name". A rule
> about no parameter in particular is located at \`query\` alone and told by its
> message.
> 
> downloadValues never looked at the response: an error answer was saved as
> values.csv, and the toast said it was downloaded. It now shows the error
> toast for a response that is not ok. It also sent \`station=\` empty with no
> station selected, which fetchData guards with canFetchData and it did not;
> it is guarded the same way now. canFetchData moves above it, as eslint
> refuses a use before its definition.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* refactor(core): leave the selection rules to the request models (GH-2056)
> 
> get\_stations ended in a KeyError listing every way to select stations, and
> get\_interpolate and get\_summarize in a ValueError asking for a point or a
> station. The request models refuse any request that does not make exactly
> one of those selections, so none of the three can be reached, and each was
> a second copy of a rule the models state, free to drift from it:
> get\_stations' list gained \`sql\` only in the second review.
> 
> Each now raises an AssertionError naming the model, which states no rule;
> the unreachable branch stays in interpolate and summarize only so the type
> checker sees \`station\` set in the last one. A request that did reach one
> would be a bug, which the REST API answers as a 500 rather than a 400 that
> blames the caller.
> 
> get\_stations' annotation drops InterpolationRequest, which no caller
> passes and which gives no rank or distance to select stations with.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(cli): about fields applies --debug and refuses what it cannot describe (GH-2056)
> 
> \`about fields\` took \`\*\*kwargs\` where the other commands take \`debug\`, so
> \--debug went into it and was never applied. Its check that the network is
> DWD observation looked up \`kwargs.get("fields")\`, a key no option gives, so
> it never refused: \`--provider=noaa --network=ghcn\` went on to
> \`api.describe\_fields\` and ended in an AttributeError traceback.
> 
> It now takes \`debug\` and applies it first, as the others do, and checks for
> DwdObservationRequest, the one request class with describe\_fields. That
> refuses any other network with a usage error naming the one it describes,
> and lets the type checker see the method, so its \`ty: ignore\` goes.
> \`language\` is annotated as the literal describe\_fields takes, which the
> option's Choice already guarantees.
> 
> Two offline tests, both failing before: the refusal for NOAA GHCN, and
> \--debug reaching set\_logging\_level with describe\_fields stubbed out.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(api): the third review's findings on the selection rules (GH-2056)
> 
> A blank station id counted as a station selection. FastAPI reads an empty
> \`station=\` as \`\[""\]\`, validate\_station passed it on, and the rule saw a list
> with an item in it, so \`/api/stations?all=true&station=\` was refused as two
> selections where \`all\` used to answer. The three copies of validate\_station
> become one \_read\_station\_ids, which reads each item of a list as the
> comma-separated string a single item is, drops blank ids, and returns None
> when none are left. \`station=,\` is no selection now, and refused as such.
> 
> The "not reached" AssertionError of get\_stations, get\_interpolate and
> get\_summarize never reached the caller as a server error: each endpoint's
> \`except Exception\` answered it with a 400, or a 404 for interpolate and
> summarize, blaming the caller for our bug. The previous commit and the PR
> said it would be a 500, which was not checked. The four catch-alls now let
> an AssertionError through, and FastAPI answers it with a 500. The stations
> endpoint's own StartDateEndDateError clause, which did exactly what its
> catch-all does, goes to keep the handler within the complexity limit.
> 
> The CLI told a field validator's ValueError with pydantic's "Value error, "
> in front of it, as in \`Invalid value for '--unit\_targets': Value error,
> Expecting property name ...\`; that prefix is dropped in the field branch too.
> 
> get\_stations kept a comment about the KeyError it no longer raises.
> 
> The Breaking changelog entry said half a selection, \`rank\` without a point
> included, is a 422 where it was a 400. A \`rank\` or \`distance\` beside a
> station, \`all\`, \`sql\` or a bounding box was answered, and ignored; it now
> says those requests are refused, and to drop a leftover rank or distance.
> 
> Tests: blank ids in each of the three models and ids read from every list
> item; a 500 from each of the five endpoints when the lookup raises the
> AssertionError, all five failing before; the CLI's --unit\_targets message.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 29, 2026, 7:59pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7257 "2026-09-29T19:59:39Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/c74534c25ce567481359ac7ba5ff4fd1370d1815>
>
> \* fix(dwd): read the DMO F9 elevations DWD gives in feet in metres (GH-2017)
> 
> DW…D's icon runs of 2026-09-28 12 UTC onwards describe 137 new \`F9\`
> stations. None is in dmo\_stationsliste\_txt.asc, so since GH-1966 each is
> described from its run's placemark, whose third coordinate is the elevation.
> For 32 of them that coordinate is in feet: F9051 QUERETARO/GUTIERREZ gives
> 6296.0 for an airport at 1919 m, and the ratio to NOAA's isd-history.csv
> elevation is 3.1 to 3.5 for all 32 (the table in GH-2017).
> 
> \_ELEVATION\_IN\_FEET lists those 32 ids, each with the exact value its
> placemark gives. \_placemark\_row converts a listed station's elevation to
> metres only while the placemark still gives that value, so the correction
> stops by itself once DWD fixes its data rather than dividing a corrected
> value a second time. A station not listed, a missing elevation or one that
> is not a number passes through as before.
> 
> test\_dwd\_dmo\_stations compared each column's maximum and minimum across the
> whole network, which any station a new run adds can move: the F9 stations
> made the highest elevation 6296 m, and a run without Y0353 MONT BLANC had
> made it 4670 m the day before. It now pins named stations -- 10637 from the
> catalogue, Y0353 from a placemark -- and checks F9051 lies between 1900 and
> 1940 m, which holds whether wetterdienst converts it or DWD corrects it.
> 
> Offline tests pin the conversion, the value DWD would give once corrected,
> unlisted stations and missing or malformed elevations, and that the table
> lists only F9 ids, each once and sorted.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(dwd): the review's findings on the DMO feet correction (GH-2017)
> 
> A placemark elevation that is not a number was passed on as given. The base
> request casts every station's elevation to Float64 at once, so one run's
> \`n/a\` would fail the whole DMO station list, and the new test pinned that
> as correct. \_elevation\_in\_metres now parses the value once and returns None
> for one that does not read as a number.
> 
> A listed station giving a value other than the one recorded -- re-surveyed,
> or corrected by DWD -- was taken as metres without a word, leaving the table
> to list stations it no longer converts. \_placemark\_metadata now names them
> in one warning per run.
> 
> test\_dwd\_dmo\_stations lost every check across the network when it stopped
> pinning the network's extremes. It now bounds them: every latitude and
> longitude on the globe, every elevation between -450 and 8849 m. The named
> stations it pins need the run and its listing, which fall back to the
> catalogue alone when DWD refuses them; a missing one now fails with a
> message saying so rather than a KeyError or a failed \`.item()\`.
> 
> The table test no longer claims to check each id is listed once, which a
> dict literal cannot show at runtime; ruff's F601 refuses a repeated key.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(dwd): the second review's findings on the DMO feet correction (GH-2017)
> 
> \_elevation\_in\_metres checked a value with \`float\` and then gave on the text.
> \`float\` takes more than polars' strict cast in the base request does -- the
> ' 4806.0' a KML placemark may write after its comma, or \`1\_000\` -- so one such
> placemark still failed every station, and \`nan\` and \`inf\` came through as
> numbers. It now gives on the parsed number, and None for one not finite.
> 
> Drift was inferred afterwards, by comparing a row's elevation with what the
> conversion would have made of the recorded value. That missed a station DWD
> corrects to exactly those metres (F9051 given as 1919.0), and reported one
> with no elevation as drifted and "taken as metres" when it is null. The
> decision is now made where the conversion is: \_elevation\_in\_metres returns
> whether a listed station gave another finite number, and \_placemark\_row
> collects it into the list \_placemark\_metadata passes.
> 
> The warning repeated for every request, and for each product, as each reads
> the run afresh; it is now given once per process for each station.
> 
> test\_dwd\_dmo\_stations pinned whole rows of 10637 and Y0353, so a re-survey or
> respelling at DWD would fail it with nothing changed here. It pins exactly
> only the fields that say where a row came from -- product, and the ICAO id
> the catalogue alone gives -- and the rest only to the place they describe.
> The table test no longer restates the table's length.
> 
> The changelog entry says what changed for a caller, and that the whole
> station list failing was the behaviour before.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* refactor(dwd): the third review's small findings on the DMO feet correction (GH-2017)
> 
> \_placemark\_row took an optional list to append a drifted station to, a side
> channel a caller could leave out and lose the drift by. It now returns the
> row together with whether it drifted, and \_placemark\_metadata collects
> them; the report moves into \_report\_drift to keep it within the complexity
> limit.
> 
> The station id is stripped: a pretty-printed run padding \`\<name\>\` would miss
> \_ELEVATION\_IN\_FEET and give 6296 as metres without a word.
> 
> \_placemark\_row's own check for an empty elevation went; \_elevation\_in\_metres
> already answers None for one.
> 
> The drift warning said a station was "taken as metres", though it may name
> one whose elevation the catalogue gives, or one the product does not cover.
> It now says what is known: the station gives another value than the one
> recorded, and the table should drop it if DWD corrected it.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 29, 2026, 8:26pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7258 "2026-09-29T20:26:23Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/076fa178f45f9cab512ac67edf2f15de34552b6d>
>
> \* fix(api)!: check the stripes requests in a request model, as the other endpoin…ts do (GH-2060)
> 
> /api/stripes/values and /api/stripes/image had no request model. Each
> checked four rules by hand -- station or name required, station and name
> exclusive, start\_year before end\_year, name\_threshold within 0..1 -- the
> same four twice, and answered a refusal with a 400 whose detail is a
> string. Since GH-2056 every other endpoint answers the same selection rule
> with FastAPI's 422, typed entries located at each parameter, so a client or
> an MCP model got two shapes for one rule. \_get\_stripes\_data repeated three
> of the checks, and the CLI's stripes values a third copy through
> \_require\_one\_of, answering the rest from \_get\_stripes\_data with exit 1.
> 
> StripesRequest states them once: station or name through \_check\_one\_of,
> name\_threshold through \_NameThresholdField, and an end\_year not after
> start\_year as a \`greater\_than\_field\` error at end\_year with the start year
> in \`ctx\`. StripesValuesRequest and StripesImageRequest add each endpoint's
> output options. Both endpoints take theirs as a query model, as /api/values
> takes ValuesRequest, with the same query parameters as before, \`format\`
> included. The CLI validates through \_validate\_request, which tells the new
> error type in click's terms: "Invalid value for '--end\_year': Input should
> be greater than '--start\_year' (2000) (got 1990)."
> 
> \_get\_stripes\_data and \_plot\_stripes take the checked model rather than its
> fields, and drop the checks it makes; the station branch ends in the
> "not reached" AssertionError, which both endpoints let through as a 500.
> 
> Like the other request models these forbid unknown fields, so an unknown
> query parameter is a 422 where it was ignored; the app sends none.
> 
> The four remote REST tests and two remote CLI tests of these refusals ran
> against DWD for nothing: the refusal comes before any fetch. They are now
> offline -- one parametrized REST test over both endpoints pinning the whole
> 422 body, the CLI's messages and exit status 2 -- with the model's rules in
> tests/ui/test\_core.py.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(examples): build the warming stripes example's request as \_plot\_stripes now takes it (GH-2060)
> 
> The previous commit narrowed \_plot\_stripes to one StripesImageRequest, and
> the Hohenpeissenberg example, which also draws the README's header image,
> still passed the fields as keywords: a TypeError on running it. The offline
> selection never runs the examples, so nothing caught it. It now builds the
> request, with the 0.8 name threshold the old function defaulted to rather
> than the model's 0.9, so the name matches as it always has
> (Hohenpeißenberg).
> 
> The changelog entry said each 422 is located at a parameter involved; the
> one for neither station nor name is located at \["query"\] alone, as the PR's
> test pins. It says so, and to match on the entries' type.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 29, 2026, 8:58pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7259 "2026-09-29T20:58:31Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/cc458947dc61bc2496f049b5903c255f3b03d881>
>
> \* fix(api): scale climate stripes over the years asked for, and send images as t…heir media type (GH-2063)
> 
> \_get\_stripes\_data scaled \`value\_scaled\` over the station's whole record and
> filtered to start\_year/end\_year afterwards, so a window never reached either
> end of the colour map: 1990-2020 at 01048 ran from 0.102 to 0.894 of it,
> scaled to 1934-2025. It now filters first and scales over the years kept.
> 
> It refused only a range holding exactly one row, so a range beyond the
> station's record -- start\_year=2090, end\_year=2095 -- answered 200 with no
> values and drew an empty image. It now refuses fewer than two years with
> data, which also covers a range whose years are all missing but one. The
> year filter tests \`is not None\`, as StripesRequest's rule does.
> 
> StripesRequest defaulted name\_threshold to 0.9, the REST endpoints' old
> default, where the CLI, docs/usage/stripes.md and the stations and values
> requests use 0.8, so a name could match through one and not the other. It
> is 0.8; the example no longer passes it.
> 
> Every endpoint that renders an image derived its media type as
> \`image/{format}\`: \`image/jpg\` and \`image/svg\`, neither registered, for
> stations, values, interpolate and summarize charts, and \`image/pdf\` as well
> for the stripes image. \_MEDIA\_TYPES maps each format once -- image/jpeg,
> image/svg+xml, application/pdf -- and replaces the four identical if-chains.
> 
> Offline tests serve a station's annual values through a stand-in request:
> the scaling over a window, and both refused ranges; each fails before this
> change. The media-type test covers the stripes image with a stub figure;
> jpg, svg and pdf fail before it. docs/usage/stripes.md says what the colours
> are scaled over.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(api): the review's findings on the stripes follow-ups (GH-2063)
> 
> The remote image tests of stations, interpolate, summarize and values still
> asserted \`image/{fmt}\`, and would have failed for jpg and svg; only the
> stripes and example remote tests had been run. They assert the registered
> type now, from a table the test module spells out rather than reads from
> restapi. A new offline test holds every image format the request models
> allow to that table, and the stripes image looks its type up with a
> fallback, as the chart endpoints do.
> 
> Precipitation stripes were drawn the wrong way round: \`value\_scaled\` puts
> the highest value at 0, which RdBu reads as red for the warmest year, and
> BrBG as brown for the wettest. Precipitation now uses BrBG\_r, so the colours
> flip and \`value\_scaled\`, which /api/stripes/values returns, keeps its
> meaning.
> 
> The guard counted years with data but not whether they differ, and years
> all of one value divided by a range of zero into NaN; they take the middle
> of the map now. A start or end year in a gap of the record kept the empty
> years at the edges, labelling the image with a year no stripe shows; the
> stripes now run from the first year with data to the last.
> 
> The threshold's change is a Breaking entry of its own, saying to pass
> name\_threshold=0.9 to match as before, and the docs and changelog say
> lowest and highest rather than coolest and warmest, precipitation being the
> other kind.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* docs(stripes): say which colour each end of the map is, and where value\_scaled is returned (GH-2063)
> 
> The paragraph the previous commits added paired the lowest year with red and
> teal, the reverse of what is drawn: the highest value is red for temperature
> and teal for precipitation. It names each end by the year it colours now --
> coolest blue, warmest red, driest brown, wettest teal -- and the page's
> opening, which said stripes run from blue (drier) to red (wetter), gives
> each kind its own colours.
> 
> The docs and changelog presented value\_scaled as what callers get; the JSON
> of /api/stripes/values leaves it out, and only its CSV carries it. Both say
> so.
> 
> The refusal of a range with too few years said "warming stripes" for
> precipitation as well, and gave no hint why a range was empty. It says
> climate stripes and the years the station has data for: "station 01048 has
> data from 1927 to 2025".
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 30, 2026, 8:20am UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7260 "2026-09-30T08:20:16Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/d92681eac96e110e4769a5977a13fda9ff85d561>
>
> \* fix(app): disable the values downloads while there is nothing to download (GH-…2065)
> 
> selected no longer sends \`station=\` empty and saves the 422 as the file. It
> returns before asking, though, and the download menu went on offering CSV,
> JSON and GeoJSON as if they worked: choosing one did nothing, with no file
> and no message. A values download asks the backend again for the current
> selection, so this happens whenever the selection is cleared, even with a
> table still on screen.
> 
> The three items are now disabled while canFetchData is false, as the
> button is while values load. The chart-image items export the chart on
> screen and are left as they are. downloadMenuItems is exposed beside
> canFetchData, for the new component test that mounts DataViewer and reads
> the items with no station and with one; the first fails before this change.
> 
> The review's other point, that canFetchData lets a latitude cleared to null
> through, cannot occur: numberFromBox answers undefined for a cleared box.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): describe the download case that can happen, and test it (GH-2065)
> 
> The previous commit, #2065 and the changelog said the values downloads are
> disabled while no station or point is selected. That state has no download
> menu: explorer.vue mounts DataViewer only while hasLocationSelection holds,
> so clearing the station removes the viewer, table and menu with it. The case
> the change covers is a station or point chosen with every parameter
> deselected, which the parameter selection allows. The GH-2056 entry made the
> same claim about the guard in downloadValues; both entries now name the case.
> 
> The component test mounted DataViewer with no station, a state the explorer
> never renders, and cast the whole selection to hide the fixture's gaps. It
> now mounts the two states the explorer shows -- a station, a point -- each
> with no parameter and with one, typed as StationSelectionState with only the
> station object cast. With the items' \`disabled\` removed, all four fail.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): download what the table shows, not a fresh answer for the selection (GH-2065)
> 
> A values download asked the backend again, for whatever was selected when
> the menu was used, and saved the answer. The table shows what the last
> fetch returned, so the two parted whenever the selection changed after it:
> another station, other parameters, or other units, as the download also left
> out humanize, convert\_units and unit\_targets, which the fetch sends. With no
> parameter it did nothing. Two review rounds found a gate to add for each way
> they part -- no parameter, a missing date range -- and each gate left rows on
> screen that could not be saved.
> 
> CSV and JSON are now written from the rows the table shows, after the query
> panel and the sorting, in its columns, by valuesToCsv and valuesToJson
> (utils/values-export.ts). JSON is \`{ "values": \[...\] }\`, as the REST API
> answers. The CSV quotes a field holding a comma or a quote: taken\_station\_ids
> holds several ids and spilled into the columns after it, in the copy buttons
> too, which now share the writer.
> 
> GeoJSON needs the station positions and metadata the backend adds, so it is
> still asked for, but with the request that filled the table: fetchData keeps
> the endpoint and query it sent once they answer, and clearData forgets them.
> That also replaces some seventy lines that rebuilt the query by hand.
> 
> The menu offers CSV and JSON while the table shows rows, and GeoJSON while it
> also shows what that request answered, not while the query panel has
> rewritten it. downloadMenuItems is no longer exposed: the tests open the real
> menu, as a keyboard does, and read what it offers. fetchData now resolves
> when the answer is in, which the tests await.
> 
> Tests: the export writers, including the quoting; the menu before and after
> a fetch; a CSV download saving the table's row without a request; and a
> GeoJSON download asking for the fetched station after the selection moved to
> another, with the fetch's settings. All four component tests fail against
> the previous download code.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): the review's findings on downloading what the table shows (GH-2065)
> 
> CSV and JSON kept only the columns the table shows, a fixed set. A wide
> shape, which the Explorer offers, puts each parameter in a column of its
> own and has no \`value\`: the download wrote empty columns and no measurement,
> where main's saved the backend's whole answer. A query panel's own columns
> (\`avg\_value\`) went the same way. exportColumns now keeps the shown columns
> first, then every other column the rows carry.
> 
> Two fetches overlapping could leave the request of the one started first
> as the one GeoJSON asks for again, when it finished last; fetchData counts
> the fetches it starts and only the latest records its request.
> 
> The GeoJSON request is made with $fetch, as the table's own is, so the query
> reads the same, and a failure of any kind -- a refusal, no answer at all --
> is told in the error toast; a network failure went unhandled. Asked for as
> text, a refusal's body comes as text too, and is read as JSON before it is
> described, so the toast names the parameter and the problem.
> 
> The JSON is compact, as the REST API answers by default. The file is named
> after the request that filled the table only. The tests wait for the menu's
> items rather than a fixed 20 ms.
> 
> New tests: a wide-shaped table's measurement in the CSV; the later of two
> overlapping fetches kept; a refused GeoJSON request told and nothing saved.
> With the column set back to the shown columns, and with the fetch count
> ignored, the wide and the overlap test each fail.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): fetch the table's values with the request downloads use (GH-2065)
> 
> The table's values were fetched with useFetch bound to the live selection,
> and the request behind the table was kept as a copy beside it, which the
> previous commit held in step with a count of fetches. It still parted: the
> fetch reads its error from the entry of the current key, so a selection
> changed mid-fetch recorded a request that never reached the table, or a
> failed one as a success; and Clear during a fetch let the answer come back
> and fill the cleared table.
> 
> useFetch now reads its endpoint and query from fetchedRequest, which only
> Fetch sets and Clear empties. The table, its error and a GeoJSON download
> answer to one request by construction; the count and the check after the
> await are gone. GeoJSON is also not offered while that request failed.
> 
> The export's columns follow the table: the columns it shows, in its order,
> then any the rows carry that it has no column for (a wide shape's
> parameters, a query panel's aggregates). A column hidden in the picker stays
> out; it did not, and the order was the picker's. The copy buttons use the
> same columns, where they dropped a wide table's measurements.
> 
> A query panel's COUNT(\*) comes back from DuckDB as a BigInt, which
> JSON.stringify refuses: the JSON download threw inside the menu, saving
> nothing and saying nothing. valuesToJson writes a BigInt as a number.
> 
> describeFetchError (utils/api-error.ts) tells a failed request, reading a
> body that came as text, for both the fetch's toast and the GeoJSON
> download's, which each had their own copy. The columns are worked out only
> for CSV and JSON. The changelog entry says what changed, not how.
> 
> Tests: Clear during a fetch leaves the table empty and nothing offered; a
> selection moved during a fetch leaves the table and GeoJSON on the fetched
> station -- both fail against the previous component. Unit tests for the
> column rule (hidden, wide, query panel), the BigInt, and describeFetchError.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): export every column the rows carry, whatever the picker shows (GH-2065)
> 
> The export followed the column picker, whose defaults hide \`resolution\` and
> \`dataset\`: a JSON download lacked fields the REST API's answer always had.
> The picker also follows the mode selected now, not the one the rows were
> fetched in, so switching mode after a fetch reset it and dropped
> \`taken\_station\_ids\` from an interpolated download, with no way to add it
> back. Downloads and copies now write every column the rows carry, the
> table's known columns in its order first; the picker changes the view only.
> 
> The CSV header went unescaped while every field was quoted where needed: a
> query panel's unaliased \`round(avg("value"), 2)\` split into three columns.
> It is written through csvField too.
> 
> The copy buttons are disabled on an empty table, where they copied nothing
> and reported it copied, as the download items already are. Each mode's
> endpoint and file name are one table, ENDPOINTS, which fetchData records
> with the request; DOWNLOAD\_FILENAMES and apiEndpoint go. The GeoJSON item's
> \`Boolean(valuesError.value)\` is gone: an error resets the rows to none, which
> disables it already.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): the review's findings on keyed fetches, copies and GeoJSON (GH-2065)
> 
> The table's values were kept apart from an overtaken fetch only because
> useFetch keys an entry by a hash of its request by default, and Nuxt drops
> the old entry's request when the key moves. The comment on clearData said
> the fetch still answered its request; it is aborted. Anything that kept an
> entry past its key -- a cache, an explicit key -- would have let an answer
> overtaken by Clear or a newer Fetch be written back, and two Fetches of one
> request shared an entry. The fetch now has a key of its own, which Fetch
> and Clear both move on, so each fetch answers into an entry the table
> leaves as soon as it is overtaken.
> 
> The copy buttons follow the column picker again: a copy is of what the
> table shows. A download still writes every column the rows carry.
> 
> A GeoJSON download is not offered again while one is under way; a second
> choice sent a second request and saved a second file.
> 
> exportColumns reads the columns from the first row, as the rows of one
> answer or one query share them, rather than every key of every row on each
> download. The fallback file name and the GeoJSON guard fold into one check
> of the request at the top of the download.
> 
> The GH-2056 changelog entry said any download the backend refuses shows the
> toast; CSV and JSON no longer ask the backend, so it names GeoJSON.
> 
> Tests: a copy writes the picker's default columns; GeoJSON is not offered
> while one is downloading. Each fails with its change taken out.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): save no GeoJSON the table has moved on from, and name a failure by its status (GH-2065)
> 
> A GeoJSON download kept the request it was started with. Clear, or a new
> Fetch, while it was being asked for still saved the old request's file and
> reported it downloaded, for a table that no longer held it. The download now
> notes the fetch generation it started in and saves nothing if Fetch or Clear
> has moved it on by the time the answer comes.
> 
> describeFetchError fell back to the error's message where the answer had no
> \`detail\`, and ofetch's message spells out the whole request -- a plain-text
> 500 showed \`\[GET\] "/api/interpolate?provider=...&latitude=...": 500 ...\` in
> the toast. It now gives the status and its text, and the message only where
> there was no answer at all. The table's own error toast uses it too.
> 
> fetchData's branch for an empty selection repeated clearData, less the page
> reset; it calls clearData. The visible columns are one computed that both
> the table and the copy buttons read, where the table filtered them twice.
> The GeoJSON item's \`!fetchedRequest.value\` went: every path that empties the
> request empties the rows, which disables it already.
> 
> dataviewer-logic.test.ts tested a CSV writer of its own, the unquoted one
> this PR replaced, whatever the shipped one did; values-export.test.ts covers
> the real one, and the copy is gone.
> 
> Tests: a GeoJSON download overtaken by Clear saves nothing, which fails with
> the generation check taken out; the status stands in for a detail-less body.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): the review's findings on failures and overtaken GeoJSON downloads (GH-2065)
> 
> describeFetchError told a status in place of a missing \`detail\`, and
> useFetch wraps every failure with h3's createError, whose status is 500
> unless an answer said otherwise: a request that never reached the backend
> was reported as "500". The status is told only with the text an answer
> gives it; otherwise the error's message, without the \`\[GET\] "/api/...":\`
> ofetch puts first. The tests of that path build the error with createError,
> as useFetch does, where the unit tests had a plain object that passed
> whatever the wrapping did.
> 
> A GeoJSON download ran to its end whatever happened meanwhile: a query panel
> run while it loaded left it saving the untransformed rows' file, and Clear
> or a new Fetch left the backend working on an answer that was then dropped.
> fetchGeojson aborts it as soon as the table moves on -- a Fetch, a Clear,
> the query panel -- and saves nothing from an aborted request, however late
> the answer comes. It asks once: $fetch retries a failed GET by default,
> which sent an expensive request twice and delayed the toast.
> 
> The copy buttons read one computed of the visible keys; the CSV and JSON
> branches work out the export's columns once. A comment says why watch:false
> must stay: a key that moves on, as Clear's does, would otherwise send an
> empty request.
> 
> The component tests unmount what they mounted and restore the clipboard
> after each test, where they left both to the next.
> 
> Tests: a request nothing answered is not a 500, and an answer without a
> detail is told by its status, both with createError; a failed GeoJSON
> request is asked for once, which fails with the retry left at ofetch's
> default.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): one fetch key, and the review's other findings (GH-2065)
> 
> The query panel's plain values moved to their own PR (GH-2068), which this
> one builds on: downloads write query-panel rows, and valuesToJson no longer
> carries the BigInt replacer that ran over every value of every table.
> 
> The table's values had a key per Fetch and per Clear, and every one left an
> entry in the app's data for the rest of the session. They have one key now:
> a newer Fetch cancels one under way (useFetch's \`dedupe: 'cancel'\`), and
> Clear aborts it and empties the table (\`clear\`), so an answer they overtook
> still never reaches the table. With Clear emptying the table by hand
> instead, the test of a Clear during a fetch fails.
> 
> A GeoJSON download under way is aborted when the viewer is unmounted as
> well, where leaving the page let it save a file on another. Its state is
> one shallowRef, the controller, from which "downloading" is derived. The
> object URL is revoked some seconds after the click, as some browsers start
> a large download after the click returns.
> 
> exportColumns takes every row's columns, not the first row's: a row set
> need not give each row every column. valuesToJson writes rows that hold
> exactly the export's columns as they are, rather than copying a large table
> first.
> 
> The rebase onto GH-2068 left the changelog's \[Unreleased\] entries tangled
> where earlier commits rewrote the GH-2056 entry; they are set right here.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): abort a GeoJSON download as the table changes, and the review's other findings (GH-2065)
> 
> A watcher aborted the GeoJSON download on Fetch, Clear or the query panel,
> and a watcher runs only once they have returned: an answer that arrived in
> between was saved for a table already replaced. abortGeojson is called
> directly by fetchData, clearData and handleDataTransformed, and on unmount.
> The fetch generation it watched is gone with it.
> 
> valuesToJson wrote the rows as they are when the first row held every
> column, so a later row lacking one wrote no key where the copy path writes
> null. It now writes them as they are only when every row holds every
> column, counted without building a key list per row.
> 
> describeFetchError told a status only with its text, and an HTTP/2 answer
> has none: a 502 without a detail fell to ofetch's message, stripped to
> "502 ". The code is told alone where an answer came with a body but no
> status text; a request nothing answered, which has neither, is still told by
> its message.
> 
> \`dedupe: 'cancel'\` is useFetch's default and goes; the comment says so. A
> duplicated comment line is gone.
> 
> Tests: an HTTP/2 answer is told as "502"; a row lacking a column writes it
> as null.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): the review's findings on #2066's own diff (GH-2065)
> 
> fetchGeojson cleared the controller in its \`finally\` whatever it held: an
> aborted download finishing after a newer one had started cleared the newer
> one's, which then could not be aborted and was offered again while it ran.
> It clears only its own.
> 
> handleDataTransformed aborted the GeoJSON download on every emit from the
> query panel, and an aborted download says nothing: leaving query mode,
> which hands back the table's own rows, or a query that found none, dropped
> a download for a table that had not changed. It aborts only when a query's
> own rows replace the table's.
> 
> valuesToJson wrote rows as they are when each held as many keys as there
> were columns, without checking they were those columns: \[{a, b}\] asked for
> \[b, c\] wrote a and no c. It checks the columns themselves, and that none is
> undefined, which JSON would leave out rather than write as null.
> 
> describeFetchError gave an empty text for an error whose message is empty,
> as h3 makes one given nothing; it falls through to the error itself.
> 
> The test's clipboard restore did nothing: the clipboard is a getter on
> Navigator's prototype, so there was no own property to put back, and the
> fake one stayed for every later test. It is removed.
> 
> The rebase onto GH-2068's review fixes left the changelog's \[Unreleased\]
> section as that branch had it; it is set right, and the GH-2065 entry says
> what a user will notice: downloads are offered once Fetch has filled the
> table, and GeoJSON not while the query panel has rewritten it.
> 
> Tests: leaving query mode keeps a GeoJSON download under way and a query's
> own rows abort it; valuesToJson writes the columns asked for and an
> undefined value as null; an empty-message error gives a text. The first and
> the second each fail with the change taken out.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): tell a cancelled download, one JSON field order, and the review's other findings (GH-2065)
> 
> A GeoJSON download aborted because Fetch, Clear or a query changed the
> table was dropped without a word: the user saw it start and got nothing.
> The abort carries its reason; where the table changed, a warning says
> "Download cancelled: the table changed" (dataViewer.downloadCancelled, in
> every locale, the format left out of it). An abort on unmount says nothing,
> there being no one to tell.
> 
> valuesToJson wrote rows that held every column as they were, in each row's
> own key order, and the others by the columns: the same table's JSON and
> CSV disagreed on field order, and the JSON's order changed with whether the
> rows were uniform. Every row is written by the columns now, and the second
> scan over all rows that decided which way is gone with it.
> 
> describeFetchError took an answer to have come when it had a body or a
> status text. h3's createError, which wraps useFetch's errors, copies no
> empty body, and HTTP/2 sends no status text, so an empty 502 fell through to
> "502 " with a trailing space. An answer is known by its response, which
> ofetch's error carries, and useFetch's wrapping of it as its cause; checked
> against both in the Nuxt test environment, with a 502 of empty body and a
> request to a closed port.
> 
> The component tests wait for what they depend on -- the request reaching
> the endpoint, the menu closing, the answer, the cancelled notice -- where
> they slept a fixed 20, 50, 150 or 250 ms.
> 
> Rebased onto GH-2068's switch to DuckDB's casts; the changelog's
> \[Unreleased\] section is set right after the rebase.
> 
> Tests: an empty HTTP/2 answer is told as "502", built with createError as
> useFetch builds it; a GeoJSON download cancelled by Clear or a query is
> told as cancelled.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* chore(app): the review's two findings on #2066's own diff (GH-2065)
> 
> The comment describing abortGeojson sat above TABLE\_CHANGED, with the
> constant's own comment between them; each is above what it describes now.
> 
> tests/unit/api-error.test.ts repeated, with hand-built objects, the cases
> tests/nuxt/utils/api-error.test.ts tests with errors built by h3's
> createError as useFetch builds them: a status with and without its text,
> and a request nothing answered. The hand-built ones could go on passing
> after they stopped matching what useFetch holds; they are gone, and the
> unit tests keep the reading of a body's detail.
> 
> Rebased onto GH-2068's review fixes; the changelog's \[Unreleased\] section
> is set right after the rebase.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): write a query panel's BigInt, and keep the table's request until the next answers (GH-2065)
> 
> GH-2068's PR, on which this one was stacked, is closed unmerged, and this
> branch is rebased onto main without it. What these downloads needed from
> it is here instead: a query panel's COUNT(\*) comes from DuckDB as a BigInt,
> which JSON.stringify refuses, so valuesToJson writes a BigInt as a number,
> or as its digits past 2^53.
> 
> fetchData made the request it sent the table's at once, before it answered:
> the table still showed the last answer, but the file name and a GeoJSON
> download already followed the new request. The request sent now lives
> apart, as sentRequest, which the table's values are fetched with; it
> becomes fetchedRequest only once it has answered, and only if no newer
> Fetch or Clear has sent another since. Both are shallowRefs, so the one
> sent compares as itself rather than as Vue's proxy of it.
> 
> fetchGeojson starts none while one is under way: a second chosen before the
> menu updated overwrote the first one's controller, which Fetch and Clear
> then could not abort. handleDataTransformed's comment said a query that
> found nothing leaves the table as it is; it falls back to the fetched rows,
> and no GeoJSON download runs while a query's rows are shown.
> 
> Tests: a query's BigInt written as a number and as digits; a GeoJSON
> download made while a newer Fetch is under way asks for the table shown,
> which fails with the request made the table's at once.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): abort a GeoJSON download from one watcher, and the review's other findings (GH-2065)
> 
> The previous commit kept the table on the last answer until a newer Fetch
> answered, but a GeoJSON download was aborted only as Fetch was pressed: one
> chosen after that, while the newer Fetch was loading, went on when its
> answer replaced the table, and was saved for a table no longer shown. The
> hand-placed calls in fetchData, clearData and handleDataTransformed are one
> watcher on displayData now, with \`flush: 'sync'\` so it runs as the change
> happens rather than after it, which is why a watcher had been avoided. Any
> change to what the table shows aborts the download; leaving query mode,
> which shows the same rows, aborts nothing. With the watcher taken out, the
> new test and those for Clear and a query each fail.
> 
> CSV and JSON bailed out without a word where no request was recorded,
> though the menu offered them for the rows on screen; they take only the
> file's name from the request, and fall back to a default one.
> 
> describeFetchError left ofetch's own \`\<no response\>\` token in the text the
> toast shows for a request nothing answered; it is left out with the request
> before it: "Failed to fetch".
> 
> A query panel's struct or list was written to the CSV as \`\[object Object\]\`,
> where the JSON kept it; the CSV writes its JSON text, as the JSON does.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): write taken\_station\_ids to the CSV with commas, as the REST API's CSV does (GH-2065)
> 
> The previous commit wrote any non-primitive CSV field as its JSON text, for
> a query panel's struct. But the REST API answers an interpolation's
> taken\_station\_ids as a list, and the table holds it so: the CSV download
> wrote \`\["00011","00012"\]\`, where the backend's CSV writes \`00011,00012\`
> (\_join\_list\_columns in io/export.py). The test had used a comma-joined
> string, which is not the shape the table holds.
> 
> A list of plain values is joined with commas, as the backend joins a list
> column; only a value nested deeper, a struct, is written as its JSON text.
> The test uses the list the REST API answers.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): check the table once more before saving a GeoJSON, and the copy-page gate (GH-2065)
> 
> fetchGeojson checks its abort before handing back the answer, and
> downloadValues saves it after one more await: a table change settling in
> that same tick found no controller left to abort, and the GeoJSON of the
> table just replaced was saved and reported downloaded. downloadValues
> looks at the table once more, that its request is still the one asked
> with and no query rewrote it, and says the download was cancelled if not.
> 
> Copy page was enabled while the table held rows, but copies the current
> page: after a query shrank the rows while a later page was shown, it wrote
> nothing to the clipboard and reported it copied. It is enabled while the
> page holds rows.
> 
> downloadValues' comment still said the shown columns come first; every
> column the rows carry is written, the table's own in its order first.
> 
> Neither the same-tick settle nor a page left past the end is set up by the
> component tests; both are guarded by a check read straight off the state.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): hold the ordering tests' answers on gates, and offer GeoJSON only with a request (GH-2065)
> 
> The component tests ordered two answers by delays (50 to 300 ms), which a
> slow runner can outlast. Each held answer now waits on a gate the test
> opens at the point where the order matters.
> 
> With the displayData watcher removed, every test still passed: the check
> after the answer caught each case, so none showed the request being
> aborted. The three abort tests now read the reason AbortController.abort
> was called with, and fail without the watcher.
> 
> The test "keeps the request of the fetch started last, whichever finishes
> last" described a race useFetch does not run: its dedupe cancels the
> first fetch. Renamed, and it checks the table shows the second.
> 
> The watcher's comment said leaving query mode aborts nothing; where the
> query's own rows were showing, leaving swaps the table back and aborts.
> 
> GeoJSON is offered only once a Fetch's request is recorded, not merely
> when rows are showing.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): save a GeoJSON as its abort is looked at, and no CSV of an emptied table (GH-2065)
> 
> Whether the table had moved on was decided twice: by the abort reason in
> fetchGeojson, and by a second look at fetchedRequest and the query panel
> in downloadValues, each with its own cancelled toast. The second look
> covered the tick between fetchGeojson returning and the file being saved.
> downloadGeojson now saves in the same tick it finds the download not
> aborted, so the abort alone decides and one toast says so. Every change
> to what the table shows aborts at once (the displayData watcher), the
> query panel's included: isDataTransformed changes only with displayData.
> 
> CSV and JSON lost their guard when the download stopped asking the
> backend: chosen after Clear, before the menu updates, they saved an
> empty file with a success toast. They now save nothing where the table
> is empty.
> 
> The CSV test's spy on fetch could not fail through $fetch, which holds
> the fetch it was built with; it now counts requests at the endpoint.
> 
> Toasts are the app's, not a viewer's, so one left over from a test was
> shown, and could be found, in the next. They are cleared after each.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): ask for no GeoJSON of a table the query panel rewrote before the menu updated (GH-2065)
> 
> The menu stops offering GeoJSON once the query panel has rewritten the
> table, but a choice made before it re-renders still reached
> downloadGeojson. The displayData watcher had already run, so nothing
> aborted it, and the fetched request's GeoJSON was saved while the table
> showed the query's rows. downloadValues now checks, as it does for an
> emptied table, before asking.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 30, 2026, 12:25pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7261 "2026-09-30T12:25:44Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/3375eb2410a2da96214043333e488c0d3b07916f>
>
> \* fix(app): offer Fetch again after a failed fetch (GH-2073)
> 
> The explorer recor…ded the parameters a fetch was sent with before it
> answered, and disabled Fetch while the selection matched them. A fetch
> that failed was recorded like one that succeeded, so the same selection
> could be retried only by Reset or by changing a setting and back. Since
> GH-2065 the downloads save what the table holds, so they stayed disabled
> too.
> 
> DataViewer's fetchData now resolves to whether its request fills the
> table, and the explorer forgets the parameters it recorded when it does
> not. The parameters stay recorded while the fetch is under way, so Fetch
> is still disabled for them meanwhile. A fetch a newer Fetch or Reset
> overtook leaves their parameters alone: lastFetchedParams is a
> shallowRef, so the ones this fetch stored compare as themselves rather
> than as Vue's proxy of them.
> 
> The explorer test's setup moves into a helper. Two tests are added: a
> 502 leaves Show enabled and a retry fills the table; an overtaken fetch
> leaves Show disabled for the newer one. The first fails without the
> reset and with a deep ref; the second without the identity check. The
> existing test also checks Show is disabled after a successful fetch.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): ask the viewer whether the selection is fetched, not a record beside it (GH-2073)
> 
> Review of the previous commit: the explorer's lastFetchedParams was a
> second record of what was fetched beside DataViewer's own, kept in step
> through fetchData's answer. It went out of step where a fetch ended
> without that answer: a request aborted as the viewer unmounted resolved
> as filled, and a viewer removed with the station and mounted again
> empty kept Show disabled for the same selection.
> 
> DataViewer now exposes holdsSelection: whether the selected request is
> the one under way, or else the one the table holds, compared by endpoint
> and query. canFetch is disabled where it holds; a failed fetch, Reset
> and a fresh viewer hold none. lastFetchedParams, its 13-field copies
> and fetchData's answer are gone, and fetchData is synchronous again. A
> setting that does not reach the request, the stations in interpolation
> mode say, no longer offers Show again for the same request.
> 
> The overtaken-fetch test said the cancelled fetch's answer arrives after
> the newer one's; it now checks Show is disabled while the first is under
> way and after the newer one filled the table, and releases the
> cancelled handler only to show nothing follows. A new test removes the
> station and chooses it again. Taking the pending branch out fails the
> under-way test, reading the sent request alone fails the failed-fetch
> test, and against main the failed-fetch and remount tests fail.
> 
> A 422 also offers Show again, as the issue proposed: retrying is
> harmless, and the toast says what is wrong.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): read whether the selection is held from the fetch's own state (GH-2073)
> 
> Review of the previous commit. holdsSelection switched from sentRequest
> to fetchedRequest as the fetch left pending, but fetchedRequest is set a
> few microtasks later, after fetchData resumes. A render in between
> showed Show enabled for the request that had just answered, or compared
> a failed fetch with the table before it. It now reads the request Fetch
> sent last while it is under way or once it answered without error, and
> none once it failed. The error stays until the next answer, so a retry
> under way still counts as holding its request.
> 
> The request the selection makes is one computed, selectedRequest, which
> fetchData sends and holdsSelection compares with, where each built it.
> 
> Tests: the Reset test checks Show is offered again; the failed-fetch
> test holds the retry and checks Show is disabled while it is under
> way; the two overlapping answers differ, so the test checks the table
> keeps the newer one after the cancelled one's handler finishes. Taking
> the pending branch out, the error check out, or Clear's reset of the
> sent request out each fails a test.
> 
> The changelog says a change that leaves the request as it was no
> longer offers Show again.
> 
> Not changed: unit targets and per-parameter distances are sent as JSON
> in the order they were set, so removing one and setting it again offers
> Show for what is then a different request text; main's record, which
> serialised the settings, compared the same way. Re-serialising the held
> request per recompute is left as is.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): hold the selection only while its fetch is pending or answered (GH-2073)
> 
> Review of the previous commit. holdsSelection counted every state but
> an error as holding the sent request, so a fetch useAsyncData aborted
> of its own accord -- it leaves the status idle and no error -- held a
> request that never answered. It now reads useFetch's status: pending
> or success.
> 
> The explorer tests unmount what they mount and clear the app's toasts,
> which the failed-fetch test left behind. The overtaken-fetch test no
> longer asserts after releasing the cancelled handler: useAsyncData
> rejects a cancelled fetch as it is aborted, so its answer cannot reach
> the table whenever it comes. Taking Nuxt's own guards out of
> asyncData.js left the test green, which is how that was found. It is
> released only to let the handler finish.
> 
> fetchData copies the selected request without copying its query again;
> apiQuery builds a new one each time. The comment on requestKey says
> values compare as they are, not as the URL writes them.
> 
> Not changed: the rule for offering Fetch stays split between the page's
> checks and the viewer's, and the sent request is still serialised per
> recompute.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): record the table's request only on a successful answer (GH-2073)
> 
> Review of the previous commit. The changelog named the stations in
> interpolation mode as a setting that no longer offers Show again, but
> main compared stations only in station mode already. What changed is
> the rest: main compared every setting and the interpolation point in
> every mode, so a setting the current mode does not send, the shape
> outside station mode or the interpolation point in it, offered Show
> again. The entry says so, and a test pins it: changing the point in
> station mode keeps Show disabled, changing the shape does not. It fails
> against main.
> 
> fetchData recorded its request as the table's wherever no error was
> set, including a fetch useAsyncData aborted of its own accord, which
> leaves the table as it was. It reads the status, as holdsSelection now
> does, so the two agree on whether a request answered.
> 
> The four earlier explorer tests unmount their pages too, and the
> cancelled-fetch test waits for its held handler to finish rather than
> leaving it to the next test. fetchData says why it copies the request.
> 
> Not changed: key order in the JSON-valued settings, and serialising the
> sent request per recompute, as before.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): keep the table's request when its fetch ends idle (GH-2073)
> 
> Review of the previous commit. fetchData cleared fetchedRequest on any
> status but success, including idle, which useAsyncData leaves a fetch
> in when an AbortError not of its own ends it; the table keeps its rows
> then, so the file name and GeoJSON lost the request that filled them.
> It now records the request on success, clears it on error, which
> empties the table, and leaves it on idle.
> 
> Neither branch can be failed by a test here. idle needs an AbortError
> thrown in the browser, which a mocked endpoint cannot send, and a
> failed fetch empties the table, so nothing that reads fetchedRequest is
> offered afterwards; the whole app suite passes without the error branch.
> It keeps GH-2065's rule that a failed fetch leaves no request behind.
> 
> The comment on the request copy says its query is apiQuery's, built
> afresh on each change and not written to.
> 
> Not changed: the explorer test helper's two 50 ms sleeps, moved there
> unchanged. The first waits out ParameterSelection's dataset watcher,
> which resets the parameters a tick later and leaves no state to wait on.
> Also key order in JSON settings, serialising per recompute and the
> explorer's pass-throughs, whose guard narrows the ref for TypeScript.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* docs(app): say what canFetch checks, not that it reads the table (GH-2073)
> 
> Review of the previous commit: the comment said Fetch is withheld where
> the selection is under way or in the table, but holdsSelection checks
> the request Fetch sent last, under way or answered.
> 
> Not changed: the review's findings on a fetch that ends idle. Nothing
> in the app reaches it: the viewer's fetch is aborted only by its own
> controller (a newer Fetch, Clear), which useAsyncData handles before
> the idle branch, and no timeout or signal of another's is passed. Nor
> the earlier declines: the query shared with apiQuery, key order and
> value type in requestKey, serialising per recompute.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): tell NaN and the infinities apart from an empty setting (GH-2073)
> 
> Review of the previous commit. requestKey compared queries as JSON,
> which writes NaN and the infinities as null, so a setting sent empty
> (a cleared number input, null) and the same setting turned NaN, sent as
> "NaN", compared as one request, and Show stayed disabled for one never
> sent. They are written as the URL writes them. A test clears the skip
> threshold, fetches, sets it to NaN and expects Show; it fails without
> the change.
> 
> The changelog no longer says a setting the current mode does not send
> keeps Show disabled: the explorer shows each setting only in the mode
> that sends it, so a user cannot change one and see it.
> 
> Not changed: a fetch ending idle (unreachable here, see the previous
> commit), the guard living in the explorer rather than the viewer, the
> per-recompute serialising, the request copy that gives each Fetch its
> identity (commented), and the explorer guard that narrows the ref.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): give each Fetch a query of its own again (GH-2073)
> 
> Review of the previous commit. fetchData sent apiQuery's own object as
> the query, where main copied it, so anything written to the query sent
> would reach the selection holdsSelection compares it with, and the two
> would still agree. It is copied again.
> 
> The remount test checks the viewer is gone once the station is removed,
> so it cannot pass by some other path.
> 
> Not changed: the history page's copy of the bug is #2077. Choosing the
> table's selection again while a newer Fetch is under way offers Show,
> as main did; pressing it fetches what is chosen. Also the earlier
> declines: comparing by JSON rather than the URL builder, serialising
> per recompute, and the guard living in the explorer.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): drop the idle branch fetchData never reaches (GH-2073)
> 
> Review of the previous commit. fetchData left the table's request alone
> where its fetch ended idle, but useAsyncData never settles the refresh
> it returned in that case -- its catch resolves the chain with itself --
> so fetchData never gets past the await. The branch and its comment
> described an outcome it cannot see. It records the request on success
> and clears it otherwise, as before.
> 
> The explorer tests remove the endpoints they register after each test,
> where each test's handlers stayed behind and only the latest won.
> 
> Not changed: a failed fetch's error staying on screen while the retry is
> under way is older than this change, filed as #2078. The query copy
> stays, as main had it. A shared composable for #2077 is for that
> change to decide. Also the earlier declines: comparing by JSON,
> serialising per recompute, a fetch ending idle.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 30, 2026, 1:45pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7262 "2026-09-30T13:45:29Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/b88987bdd5a6b5a5c042415bdb64834da7aa7721>
>
> \* fix(app): offer Show again on the history page after a failed fetch
> 
> The histo…ry page recorded the selection as fetched before the fetch
> answered, so a fetch that failed kept Show disabled for the same
> selection. As #2076 did for the explorer, Show is now disabled only
> where the selection is what Fetch sent last and that fetch is under
> way or answered, read from useFetch's \`status\`; a failed fetch, and
> Reset, offer it again.
> 
> The fetch's query is the one Fetch sent rather than the selection:
> useFetch keys a fetch by its query, so reading the selection moved it
> to another entry on every change, which aborted a fetch under way and
> left \`status\` idle, and picking the fetched selection again found a
> rebuilt, idle entry.
> 
> Recording the fetch sorted the chosen sections in place, reordering
> the user's selection. The sections are sorted in a copy, so the order
> they were picked in still doesn't make a new request.
> 
> The tests unmount the pages they mount: a page left mounted can share
> its fetch with the next test's.
> 
> Closes GH-2077
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): give the history fetch one key, and let its tests wait as long as the rest
> 
> Keyed by its query, as useFetch is by default, every distinct request
> Show sent left an entry behind for the rest of the session. One key,
> as DataViewer has, keeps one.
> 
> The new tests waited on the rendered result with vi.waitFor's default
> 1 s, where the page's other Show test allows 5 s for a parallel run;
> and that test's /api/history endpoint is now removed after it too.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 30, 2026, 2:32pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7263 "2026-09-30T14:32:21Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/3b20d3c1be7f03edfedc05004502fae50a93c1af>
>
> \* fix(app): hide the history page's fetch error while a retry is under way
> 
> useF…etch keeps \`error\` until the next answer arrives: a refresh sets only
> \`status = 'pending'\`. The history page showed the error with \`v-if="error"\`,
> so after a failed fetch, pressing Show again left the old error beside the
> loading indicator until the retry answered. It now shows the error only
> while \`status\` is 'error'.
> 
> The explorer, also named in the issue, needs nothing: DataViewer renders
> the error in the \`v-else\` of \`valuesPending\`, so a retry under way already
> replaces it with the spinner.
> 
> Closes GH-2078
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): say Reset removes the history error too
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* test(app): say which fetch the history error test means
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 30, 2026, 2:47pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7264 "2026-09-30T14:47:29Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/b1416b82e9b244c84a9015bd98a69935cafd79de>
>
> \* fix(app): tell the history page's fetch error as the explorer does
> 
> The histor…y page showed a failed /api/history fetch as ofetch's own
> message, \`\[GET\] "/api/history?provider=...&station=...": 502 Bad Gateway\`,
> and never the backend's \`detail\`, the reason FastAPI answers a 400 or 404
> with. It now goes through describeFetchError, as DataViewer does: the
> detail when there is one, the status when an answer came without one, the
> error's own message when none came.
> 
> The \`&& error\` guard is dropped: it was there only to narrow \`error\` for
> \`error.message\`, and describeFetchError takes any value; useFetch sets
> \`error\` together with \`status = 'error'\`.
> 
> Closes GH-2082
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): work out the history error once, in a computed, as DataViewer does
> 
> Formatting it in the template re-ran describeFetchError on every render of
> the page, and the dropped \`&& error\` guard left the page to rely on useFetch
> setting \`error\` together with \`status\`. The computed checks both, and the
> changelog no longer leaves out a fetch nothing answered.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 30, 2026, 3:11pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7265 "2026-09-30T15:11:50Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/161e7b059fe712ce53991bc615bec0b2c2f0a4ce>
>
> \* fix(app): tell the meteogram's and widget's fetch error by the backend's reaso…n
> 
> Both pages fetch /api/values with the browser's fetch and describe a
> failed answer themselves. The meteogram appended the body as text, so a
> refused request read \`Backend error 422: {"detail":\[...\]}\`, and a proxy's
> error page came out as HTML; the widget gave the status alone. Both now
> read the body as JSON and add describeApiError's reading of its \`detail\`
> after the status, as the explorer and history page tell it; a body without
> one is left out.
> 
> Closes GH-2084
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): keep the status text of a forecast error without a detail
> 
> A plain-text answer, such as uvicorn's \`Internal Server Error\`, lost its
> only reason when the meteogram stopped appending the body; the status text
> now follows the status, as describeFetchError tells an answer without a
> detail. The changelog no longer says the explorer reads the same: it gives
> the detail alone.
> 
> The tests answer every fetch with a fresh Response, wait for the error
> rather than a fixed tick, and the widget's no-detail test now fails on
> the widget before this change.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): tell a forecast error's status text only where there is no detail
> 
> The status text followed the status in every message, so a refused request
> read \`Backend error 422 Unprocessable Entity: station: ...\`, where the
> comment and changelog give \`Backend error 422: station: ...\`. The detail
> tests now answer with a status text, as a real answer carries one.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* test(app): pin the widget's forecast error exactly; say HTTP/2 gives no status text
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 30, 2026, 3:38pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7266 "2026-09-30T15:38:07Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/21478324e9e89bc0ea3ad77f501c18cc0e4c916d>
>
> \* fix(app): list the stations the history page's results were fetched for
> 
> The S…elected stations overview in the results card rendered the live station
> selection, so after showing 00001 and choosing 00044 it listed 00044 above the
> history of 00001. It now lists the stations of the Show whose answer is shown:
> they are recorded as Show sends, and take effect when \`data\` changes, which
> only the latest fetch's answer (or failure, or Clear) does.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* docs(app): changelog for GH-2080
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): keep the history page's sent request and its stations in one snapshot
> 
> Show set the query and the stations it was sent for in two places, one of them
> a plain variable, which a later change could update apart from the other. The
> changelog entry is wrapped at 100 columns and says what a user saw.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \* fix(app): carry the fetched stations on the history answer itself
> 
> The stations were copied into their own ref by a watcher on \`data\`, bound to
> the answer only by when \`data\` changes, and left set after Clear or a failure.
> useFetch's transform now attaches the last Show's stations to its answer, so a
> cleared or failed fetch falls back to a default without any. The page test
> checks the name column too, and changes the selection while a fetch is under
> way.
> 
> Co-Authored-By: Claude Opus 5.5 \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5.5 \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 30, 2026, 4:14pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7267 "2026-09-30T16:14:00Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/925cc42030bc1239a5d7bae250e75862165aa330>
>
> fetchData set the page to 1 when Fetch was pressed, before the answer came, and …not again when it
> did. The table is hidden while the fetch is under way, but the pager is not, and a page moved to
> meanwhile was kept against the new rows: the last page of 500 rows is page 10, and against an
> answer of 40 rows it sliced nothing, so the table looked empty until the pager was used. A query's
> result had the same trouble, and leaving query mode kept a page chosen in the query's rows, as
> nothing reset the page for either.
> 
> The page now also resets on a watcher on the rows the table shows (displayData), next to the page
> size, which covers a Fetch's answer, a failed fetch, Clear, a query's rows and leaving query mode.
> fetchData still resets it as Fetch is pressed, so the pager does not keep a page of rows that are
> no longer shown; clearData's own reset goes, as the watcher covers it. A query that hands back the
> fetched rows themselves changes nothing shown, so the page stays.
> 
> Closes #2075
> 
> Co-authored-by: Claude Opus 5.5 \<noreply@anthropic.com\>

[Previous page](https://community.panodata.org/t/logbook-of-code-changes/16.md?page=362)

[Next page](https://community.panodata.org/t/logbook-of-code-changes/16.md?page=364)
