Skip to content

Release 0.15.0 - #124

Open
khoroshevskyi wants to merge 30 commits into
masterfrom
dev
Open

Release 0.15.0#124
khoroshevskyi wants to merge 30 commits into
masterfrom
dev

Conversation

@khoroshevskyi

@khoroshevskyi khoroshevskyi commented Aug 16, 2026

Copy link
Copy Markdown
Member

Changes:

  • Added Alembic migration support, including alembic.ini, migration script templates, and configuration files in bbconf/alembic/, with clear instructions in the README.md for generating and applying migrations.
  • Updated the pull request template to require confirmation of completed migration steps when schema changes are made.
  • Implemented a TTL-based cache (with locking) for the get_stats() method in bbconf/bbagent.py to avoid repeated expensive COUNT queries on hot API paths.
  • Updated binning functions to handle empty input lists gracefully, preventing errors when there is no data.
  • Refactored get_detailed_stats() to gather numeric statistics in a single optimized query, filter out null values, and avoid loading unnecessary objects, increasing efficiency and accuracy.
  • Added missing imports and properties for snapshot support in bbconf/bbagent.py
  • Minor workflow YAML formatting fix.
  • Updated database indexes, making data query faster
  • Updated bedhost endpoints, making them more efficient
  • Added jsonb columns for genomic distribution data storage

TODO:

  • Version of pepdbagent updated in __version__.py file
  • Changelog updated

sanghoonio and others added 23 commits March 27, 2026 12:53
Add ConfigAnalysis model with backend: "r" | "gtars" (defaults to "r")
to support switching analysis engines via config. Add nullable JSONB
columns (distributions on BedStats, bedset_stats on BedSets) and
BedSetDistributions model for gtars output. Existing code and behavior
unchanged — pure additive schema and config additions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The stddev/avg loop over BedStatsModel.model_fields was hitting
the new JSON `distributions` column, causing PostgreSQL to fail
with "function stddev(json) does not exist". Filter to float fields only.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@khoroshevskyi khoroshevskyi linked an issue Aug 16, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add alembic database migration

3 participants