about summary refs log tree commit diff
path: root/scripts/example-genotype-upload.py
diff options
context:
space:
mode:
authorPjotr Prins <pjotr.public01@thebird.nl>2026-11-17 12:40:20 +0000
committerPjotr Prins <pjotr.public01@thebird.nl>2026-11-17 12:40:20 +0000
commit1fa28faac92bd206cca46b6987c4973360ddadbe (patch)
tree3eb2ff11ad8004932daf77e6e913a260ade573dd /scripts/example-genotype-upload.py
parentd480e89997eb44c7867756ce2d8716a63fe2feaa (diff)
downloadgenenetwork4-1fa28faac92bd206cca46b6987c4973360ddadbe.tar.gz
datasets/{dataset}/probesets: limit_to / ids_only / names_only
Fifth of the six. 45 101 probesets in HC_M2_0606_P, so this is the listing where
the slim answer matters most: names_only turns a multi-megabyte array of
objects into a list of probe names.

Verified on the deployed build:

  GET /datasets/HC_M2_0606_P/probesets                      45 101 objects, as before
  GET ...?names_only=true&limit_to=1427571_at,NOPE          ["1427571_at"] + note: nope

Two mechanical notes that cost a build each: the handler had no Query
extractor, so it takes crate::listing::ListingParams and needs
axum::extract::Query in scope; and the Found branch built its envelope inline
(Ok(Json(ctx.envelope(...)))), so shaping the rows meant opening the branch into
a block. Read tier: 24 ok, 0 failed.
Diffstat (limited to 'scripts/example-genotype-upload.py')
0 files changed, 0 insertions, 0 deletions