Skip to content

Release/v8.6.0 - #501

Open
kttkjl wants to merge 40 commits into
masterfrom
release/v8.6.0
Open

Release/v8.6.0#501
kttkjl wants to merge 40 commits into
masterfrom
release/v8.6.0

Conversation

@kttkjl

@kttkjl kttkjl commented Jul 29, 2026

Copy link
Copy Markdown
Member

Release Notes - IPR - Version API v8.6.0

Bugfixes
[DEVSU-2931] - updated_by is not getting populated during user creation
[DEVSU-2953] - TO table reodering should remove signatures from report

New Feature
[DEVSU-2310] - make pathway_legend choosable/uploadable in the client (part 1, next patch coming close behind)

Tasks
[DEVSU-2914] - add 'exon' column to IPR api
[DEVSU-2928] - datafix/migration - move current reports.seqQC contents into reports_seqqc

bnguyen-bcgsc and others added 30 commits April 22, 2026 15:19
- Add migrations to add new legends table and rework pathway analysis legend column
- Add new table to store pathway analysis legends
- Rework association column between pathway analysis and legends
- Add unit tests for new legends endpoints
- Update swagger documentation for new legends endpoints
- Update mockReportData json with test legend image
…-to-IPR-api

feature/DEVSU-2914-add-exon-column-to-IPR-api
…t-getting-populated

bugfix/DEVSU-2931 updated_by is not getting populated during user creation
…ove-on-rerank

[DEVSU-2953] add hook to therapueticTargets on update to remove signatures
…elonging to a report

- Legend records include default value that is enforced by unique index and util functions to ensure only 1 record can have True value
- Update uploadLegendImage middleware function
- Update legend router and routes
- Update legend unit tests
- Update model associations
- Update unique constraint index field to default
- Code lint
- Additional default: true filter for other legends in beforeUpdate hook to update only records with default: true to prevent excessive updates
- Create legend images sequentially to ensure that default true constraint apply properly
- Update uploadLegendImage documentation params
- Update swagger
- Code lint
- Update pathwayAnalysis unit tests
- Convert ensureDefaultExists to static function
- Wrap crud functions in routes in the same transaction as ensureDefaultExists
- Update swagger json
- Update error messages displaying in routes
- Add updateLegendImage helper that processes an uploaded file and updates
  the legend's data/format/filename (plus any metadata) within a transaction
- Use it from the PUT route when a file is attached; otherwise fall back to a
  metadata-only update
- Reload the instance after commit so the response reflects persisted state
  (fixes stale default flag in the response)
- Add tests for image replacement and metadata-only update

DEVSU-2310
@kttkjl kttkjl self-assigned this Jul 29, 2026
@github-actions

This comment has been minimized.

@codecov-commenter

codecov-commenter commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 76.08696% with 33 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.94%. Comparing base (1e8a112) to head (84b9f3c).

Files with missing lines Patch % Lines
app/routes/legend/index.js 67.90% 25 Missing and 1 partial ⚠️
app/routes/report/images.js 76.47% 4 Missing ⚠️
app/models/legend/legend.js 92.85% 2 Missing ⚠️
app/routes/report/summary/pathwayAnalysis.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #501      +/-   ##
==========================================
- Coverage   77.23%   76.94%   -0.30%     
==========================================
  Files         186      188       +2     
  Lines        6760     6891     +131     
  Branches      858      879      +21     
==========================================
+ Hits         5221     5302      +81     
- Misses       1445     1491      +46     
- Partials       94       98       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kttkjl

kttkjl commented Jul 29, 2026

Copy link
Copy Markdown
Member Author

demo db dump needs to be made, doing

bnguyen-bcgsc
bnguyen-bcgsc previously approved these changes Jul 31, 2026
@kttkjl

kttkjl commented Jul 31, 2026

Copy link
Copy Markdown
Member Author

updated demo dump with help from @sshugsc

  1. ran migration on ipr_demo from this branch
  2. removed two tables related to DEVSU-2594 backups
  3. dumped updated ipr_demo db
  4. commited

@github-actions

Copy link
Copy Markdown

Unit Test Results

    1 files  ±  0    64 suites  +1   4m 21s ⏱️ +22s
653 tests +12  652 ✔️ +12  1 💤 ±0  0 ❌ ±0 
647 runs  +  9  646 ✔️ +  9  1 💤 ±0  0 ❌ ±0 

Results for commit 84b9f3c. ± Comparison against base commit 1e8a112.

npx sequelize-cli db:migrate --migrations-path "$dir" --url "postgres://$IPR_SERVICE_USER:$IPR_SERVICE_PASS@$IPR_DATABASE_SERVER/$IPR_DATABASE_NAME"
# Handle latest migrations (check for batch subdirectories first)
if [ -d "$parent_folder/latest" ]; then
latest_batches=$(find "$parent_folder/latest" -maxdepth 1 -type d ! -name "latest" | sort)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The migration execution order looks a bit unusual. It currently runs the latest folder before older versioned folders, which could cause issues when migrating a legacy database state. This is probably not a blocker right now since our database is already up to date, but it would be safer to run migrations in this order: legacy, versioned directories, then latest.

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.

5 participants