diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-22 17:04:30 +0000 |
|---|---|---|
| committer | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-22 17:04:30 +0000 |
| commit | 1dab76d396a008d92dcdf43a61ca6877ba3f1780 (patch) | |
| tree | 0312ad9cf1b47d298d71302c3d04e27a13da0f3c /src/json_errors.rs | |
| parent | 67333998a42bd4055dc2011645d6859bf1e24a7c (diff) | |
| download | genenetwork4-1dab76d396a008d92dcdf43a61ca6877ba3f1780.tar.gz | |
baskets: count one revision, and call a taken name a conflict
Two replies were wrong, both found in Rob Williams's test-drive notes of the
release service.
`GET|PATCH /baskets/{name}` reported 186 values for a column of 93 after one
PATCH. `cell` is keyed on (basket_id, revision, sample), so a PATCH leaves the
previous revision's rows in place -- correctly, that is the version history --
but the count summed every revision ever written. It now filters to the
basket's current revision. Mappings were unaffected (the values view already
took the current revision), which is why only the count showed it.
A name already in use answered 422 invalid_basket, i.e. "your request is
malformed", when the body is fine and the name is not free. It is now 409
basket_name_in_use, and the detail still says to PATCH it or pick another name.
The same variant covers matrix and genotype-upload names.
Diffstat (limited to 'src/json_errors.rs')
0 files changed, 0 insertions, 0 deletions
