diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-10-03 14:01:01 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-10-03 14:01:01 +0000 |
| commit | 19640851a4c26e2398781c1713b908ac711b2db5 (patch) | |
| tree | 34df9ae40916f9f512ec7d724910106eb67bebb4 /test/python/test_version.py | |
| parent | 7c1bdb98a569d8b6389b222af746155c53aa3761 (diff) | |
| download | genenetwork4-19640851a4c26e2398781c1713b908ac711b2db5.tar.gz | |
Match group by numeric Id, use Group alias for InbredSet fields.
* src/db.rs (get_group_by_name): Also match CAST(Id AS CHAR), so a
numeric Id works like GeneNetwork2's wqflask.api.router.get_group_info
plus gn-guile's gn.data.population:population-info, which looks a
group up by Id only.
(GroupDetail): Rename inbred_set_id, inbred_set_name, inbred_set_code
fields to group_id, display_name, group_code, adding
#[mysql(rename = "...")] overrides so FromRow still matches the
InbredSetId, InbredSetName, InbredSetCode MariaDB columns; InbredSet
stays a MariaDB-only name, not a Rust identifier.
* src/lib.rs (group_by_name): Update the "group" path parameter
description to mention matching by numeric Id too.
* tests/group_by_name.rs (group_by_name_bxd_returns_group_row): Update
assertion for the display_name field rename.
(group_by_name_numeric_id_returns_same_group_row): New test.
* test/python/test_group_by_name.py: Likewise.
* README.md (GET /groups/{group}): Document matching by numeric Id and
the group_id/display_name/group_code field names.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XDDpXvZBQat9uSgDeEMJ8d
Diffstat (limited to 'test/python/test_version.py')
0 files changed, 0 insertions, 0 deletions
