diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-16 18:55:43 +0000 |
|---|---|---|
| committer | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-16 18:55:43 +0000 |
| commit | d4c7a85a2565997b3878f565af5e5198a4312907 (patch) | |
| tree | d1c87bcca4c2286ea81233a7c6578a4cac584ad0 /scripts/plot-pca.py | |
| parent | 74a5c318163ab4c286e8b8e43bd645c1c4840605 (diff) | |
| download | genenetwork4-d4c7a85a2565997b3878f565af5e5198a4312907.tar.gz | |
listing: the limit_to / ids_only / names_only model, with its tests
The shared type for the three parameters GN2 has and we do not: one value per row (`ids_only`, `names_only`), a case-insensitive `limit_to` over id / name / trait_name / display_name / full_name, the contradiction (both shapes at once) refused rather than resolved by parse order, and a `limit_to` value that matches nothing *reported* instead of silently dropped -- "my trait is missing" is the failure this parameter exists to prevent. Five tests: identity, ids/names shaping, limit_to matching any field and being case-insensitive, its composition with ids_only, and the refusal. Status, recorded in the module docs because it is the interesting part: the handlers are NOT wired yet. A listing handler returns typed rows (`Envelope<Vec<db::Group>>`), so answering `["BXD", ...]` changes its return type to `Envelope<serde_json::Value>` and the `body =` type in its utoipa block, which utoipa checks at compile time -- a mismatch fails as "could not find `__path_groups`", which looks like a macro bug and is not one. Six handlers or none: two would leave the API inconsistent, which is worse than not having the parameter at all. Build green with the module and its tests; nothing deployed, since until a handler uses it the binary is unchanged.
Diffstat (limited to 'scripts/plot-pca.py')
0 files changed, 0 insertions, 0 deletions
