Skip to content

Release 2026.1.2#691

Merged
bencap merged 23 commits intomainfrom
release-2026.1.2
Mar 24, 2026
Merged

Release 2026.1.2#691
bencap merged 23 commits intomainfrom
release-2026.1.2

Conversation

bencap and others added 22 commits March 4, 2026 16:54
The 7 URN search tests sent {"urn": ...} in the search payload, but
ScoreSetsSearch has no `urn` field — Pydantic silently dropped it.
Tests passed coincidentally because each created only one score set,
making unfiltered results match the expected count.

Fix by using {"text": ...} (matching actual frontend behavior) and
adding a second decoy score set to each test so the filter is actually
exercised.
The count query in `search_score_sets` was discarding the return value
of `build_search_score_sets_query_filter`, so the count would reflect
all score sets in the database rather than only those matching the
search filters.
Switch one-to-many experiment relationship loading (keyword_objs,
doi_identifiers, publication_identifier_associations, raw_read_identifiers)
from joinedload to selectinload inside the contains_eager block. This
prevents row multiplication from causing the SQL LIMIT to apply to
multiplied rows rather than unique score sets, which resulted in search
returning fewer results than expected on databases with rich experiment
metadata.
…esults-returns-fewer-than-expected-results

fix: Search results returns fewer than expected results
Add DB_POOL_SIZE and DB_MAX_OVERFLOW environment variables to control
SQLAlchemy connection pool settings per environment. Enable pool_pre_ping
to discard stale connections on checkout. Defaults remain at 5/10 for
local development.
…-sizes

feat: configure database connection pool via environment variables
…ed-search-by-urn-behavior

fix: correct false-positive URN search tests
…e-score-sets-in-get-endpoint

fix: duplicate score sets appearing in GET results
…alibration-me-endpoint

feat: add  endpoint for user created calibrations
@bencap bencap marked this pull request as ready for review March 24, 2026 11:58
@bencap bencap merged commit 380538d into main Mar 24, 2026
6 checks passed
@bencap bencap deleted the release-2026.1.2 branch March 25, 2026 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants