Repository navigation
gsm.qtl v1.4.0 Release - #138
Conversation
Main -> dev
* Experiment to get rid of riskmetric package The riskmetric package has pak as a dependency, which is messing with actions. Let's get rid of it if we can. * Test whether riskmetric matters * Fix checks * Use `@main` to avoid `pak` bug. * Temporarily use dev gh For some reason gsm.kri is failing to install because of shared dependencies, and right now specifically gh seems to be the issue. Will fix with a qcthat release. * Install gsm.core from PR and don't specify gh * Test `qcthat@*release` * Use dev gsm
Remotes points at feat/158-vizr-foundation until gsm.vizr v0.1.0 is tagged; flipping the ref is a merge gate on this PR.
Removes the plotly trace helpers; QTL_lineplot() is the only plotly consumer left in the suite.
…134) The report renders bars and the time series on one page, and each bundle declares a top-level var gsmViz, so the vendored 2.2.0 copy had to go. Time series verified under 2.4.1: screenshots byte-identical to the 2.2.0 baseline. Also drops a dead main_default registration in timeSeriesQTL.js that had always thrown a ReferenceError.
gsm.viz takes stack order from the scales$fill$colors key order and ignores the factor-derived scales$fill$order whenever a named colour map is supplied, so the two charts with hardcoded palettes stacked backwards. Reorders both maps to the ggplot fill order without changing any value-to-colour association, and asserts the key order.
This was the one useful change that was only on the RC branch.
# Conflicts: # .Rbuildignore
The dependency test's comment claimed a bare Remotes ref would be caught, but nothing asserted it. Splits that claim into its own test and drops the unsupported half of the comment.
…134) Per review: tooltip.format ('count+percent' on the stacked group charts, 'count' on the single-series ones) replaces the sprintf-built js_hook formatters, so labels and column names no longer pass through generated JavaScript where a quote could break or inject code. The now-unread perc column is gone with its formatter. eligibility_sourceBar and discontinuation_reasonBar stop mapping fill: it duplicated the category axis and forced a redundant legend and position toggle. This also moots the jsonlite blank-fill-key limitation for blank reasons.
…134) The gsm.viz position control on the stacked Site chart already offers the normalized view, so QTL0001 renders one Site chart instead of two tabs. eligibility_groupBar keeps bPercentage; the bundled report just no longer uses it. Playwright counts and the fingerprint baseline follow (14 charts, no pre-normalized variant).
The Rd picks up the author and URL fix that arrived with the dev merge.
Migrate QTL report barcharts to gsm.vizr (#134)
- Bump version to 1.4.0 and retitle the NEWS development section - Add NEWS entries for the riskmetric removal (#124) and the Gilead-Public link/CI updates (#132) - Point the gsm.core Remote at main and pin gsm.vizr to its release-0.1.0 branch (with a >= 0.1.0 floor) until gsm.viz 0.1.0 is released to main
✅ All workflows are up to dateGenerated by this GitHub Action. Updated: 2026-08-27T16:43:36Z |
|
📊 Test coverage: 93.50% Per-file coverage
Generated by this GitHub Action. Updated: 2026-08-27T16:46:31Z |
{qcthat} Report: User AcceptanceNo issues are awaiting UAT. This report was generated by this GitHub Actions job. Last updated: 2026-08-27 16:45:36 UTC |
{qcthat} ReportsPR-Associated Issues✅ A qcthat issue test matrix with 1 milestone, 1 issue, and 19 tests🟢 All issues have at least one test 🙈 2 issues with label "qcthat-nocov" were ignored Milestone✅ A qcthat issue test matrix with 1 milestone, 1 issue, and 19 tests🟢 All issues have at least one test Completed Issues
|
|
🌐 PR pkgdown deployed: https://Gilead-Public.github.io/gsm.qtl/pr/138/dev Generated by this GitHub Action. Updated: 2026-08-27T16:45:48Z |
There was a problem hiding this comment.
Pull request overview
Releases gsm.qtl 1.4.0, migrating six QTL barcharts to gsm.vizr, consolidating the shared visualization bundle, and applying dependency and repository housekeeping.
Changes:
- Replaces Plotly-based barcharts with
gsm.vizr::bars()widgets. - Adds unit and Playwright regression coverage and updates documentation.
- Removes unused dependencies/widgets and updates organization links and workflows.
Reviewed changes
Copilot reviewed 47 out of 51 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
DESCRIPTION |
Bumps version and updates dependencies/remotes. |
NEWS.md |
Documents the 1.4.0 release. |
README.md |
Updates organization links. |
_pkgdown.yml |
Updates the pkgdown URL. |
.Rbuildignore |
Excludes data-raw and Playwright files. |
.gitignore |
Ignores Playwright artifacts. |
.github/CONTRIBUTING.md |
Updates contributor links. |
.github/workflows/R-CMD-check.yaml |
Uses public workflow actions. |
.github/workflows/pkgdown-all.yaml |
Updates reusable workflow source. |
.github/workflows/qcthat.yaml |
Updates qcthat workflow source. |
.github/workflows/r-releaser-caller.yaml |
Updates release workflow source. |
.github/workflows/test-coverage.yaml |
Updates coverage workflow source. |
.github/workflows/workflow-template-check.yaml |
Updates compliance workflow source. |
R/Widget_BarChartQTL.R |
Removes the obsolete widget. |
R/Widget_TimeSeriesQTL.R |
Attaches the shared gsm.viz dependency. |
R/criteria_groupBar.R |
Migrates criteria charts to gsm.vizr. |
R/discontinuation_groupBar.R |
Migrates discontinuation group charts. |
R/discontinuation_reasonBar.R |
Migrates reason-count charts. |
R/eligibility_groupBar.R |
Migrates eligibility group charts. |
R/eligibility_sourcebar.R |
Migrates eligibility source charts. |
R/reasons_groupBar.R |
Migrates grouped reason charts. |
R/utils-bars.R |
Adds shared ordering, sizing, and palette helpers. |
data-raw/Example_QTL.R |
Updates an issue link. |
inst/report/QTL0001.Rmd |
Removes the separate percentage tab. |
inst/htmlwidgets/Widget_BarChartQTL.js |
Removes obsolete widget binding. |
inst/htmlwidgets/Widget_BarChartQTL.yaml |
Removes obsolete widget dependencies. |
inst/htmlwidgets/Widget_TimeSeriesQTL.yaml |
Removes the vendored bundle declaration. |
inst/htmlwidgets/lib/barChartQTL.js |
Removes obsolete chart wrapper. |
inst/htmlwidgets/lib/gsm.viz-2.2.0/gsm.viz.css |
Removes vendored bundle styling. |
inst/htmlwidgets/lib/timeSeriesQTL.js |
Removes invalid bundle registration. |
man/criteria_groupBar.Rd |
Updates return-value documentation. |
man/discontinuation_groupBar.Rd |
Updates return-value documentation. |
man/discontinuation_reasonBar.Rd |
Updates return-value documentation. |
man/eligibility_groupBar.Rd |
Updates return-value documentation. |
man/eligibility_sourceBar.Rd |
Updates return-value documentation. |
man/gsm.qtl-package.Rd |
Updates package links. |
man/reasons_groupBar.Rd |
Updates return-value documentation. |
pkgdown/menus/examples/Example_QTL.Rmd |
Updates the example-site link. |
tests/playwright/baseline.json |
Stores chart fingerprints. |
tests/playwright/fingerprint.spec.js |
Tests chart structure against the baseline. |
tests/playwright/package-lock.json |
Locks Playwright dependencies. |
tests/playwright/package.json |
Defines browser-test scripts. |
tests/playwright/playwright.config.js |
Configures headless browser tests. |
tests/playwright/qtl-report.spec.js |
Tests chart rendering and tab reveal. |
tests/playwright/render-fixture.R |
Generates the browser-test report. |
tests/testthat/helper-exported-fixtures.R |
Adds bars widget inspection helpers. |
tests/testthat/test-exported-discontinuation.R |
Rewrites discontinuation chart tests. |
tests/testthat/test-exported-eligibility.R |
Rewrites eligibility chart tests. |
tests/testthat/test-vizr-dependency.R |
Tests dependency and asset integration. |
vignettes/articles/Qualification.Rmd |
Removes riskmetric and updates repository APIs. |
Files not reviewed (1)
- tests/playwright/package-lock.json: Generated file
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Review feedback on PR #138: - The tab-reveal check read `canvas.toDataURL().length > 1000`. An untouched canvas at the report's chart size encodes to ~33k characters, and a chart with every dataset emptied still encodes to ~117k, so the assertion passed with no bars drawn. Count the laid-out bar elements instead. - `skip_if_not("Remotes" %in% ...)` turned a dropped Remotes field into a passing skip -- the exact regression the test guards. - The barchart count comment said 8 + 7; both reports render 7.
Review feedback on PR #138 -- two behaviours the suite exercised only through the serialized spec: - Percentage mode. The separate "Site (by %)" tab is gone, so the canvas-drawn position toggle is the only route to it. Assert the Site chart still meets gsm.viz's enable contract, then drive it through the same `updateSpec` call the toggle's click handler issues and check every category normalizes to the full plot width, and back again. Guards the position/stat merge: the chart sets stat = "identity", which draws raw counts if it survives. - Time series rendering. Dropping the vendored bundle for gsm.vizr's copy is only covered by dependency metadata, so a widget left blank under the shared bundle would pass. Assert both instances lay out a chart area and plot points.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This PR was drafted by Claude Code using Opus 5 and reviewed by Michał Kamiński (@michkam89)
Release Description
gsm.qtl v1.4.0 migrates the six QTL report barchart functions from
ggplot2+plotly::ggplotly()togsm.vizr::bars()on the sharedgsm.vizJavaScript bundle (#134), and folds in the pending v1.3.1 housekeeping items (#124, #132).QTL report barcharts (#134, PR #137)
eligibility_groupBar(),eligibility_sourceBar(),criteria_groupBar(),discontinuation_groupBar(),discontinuation_reasonBar()andreasons_groupBar()now render throughgsm.vizr::bars()and return abarshtmlwidget instead of aplotlyobject; their arguments are unchanged.SiteandSite (by %)tabs.gsm.vizformats; the two single-series charts drop the fill/legend that duplicated the category axis.gsm.vizbundle is removed — the QTL time-series widget now loads the shared bundle fromgsm.vizr(moving fromgsm.viz2.2.0 to 2.4.1). The unusedWidget_BarChartQTLwidget is removed.Other updates
riskmetricdependency (Completely remove log4r dependency #124).Gilead-Publicorganization move (Audit and update direct links from Gilead-BioStats to Gilead-Public #132) and build-ignoreddata-raw(Ignore data-raw #136).Dependency pins
gsm.coreRemote points at@main(1.3.1); the version floor is unchanged (>= 1.1.2).gsm.vizr (>= 0.1.0), temporarily pinned toGilead-Public/gsm.vizr@release-0.1.0until gsm.vizr v0.1.0 Release gsm.vizr#8 merges 0.1.0 intomain; the pin flips to@mainon this branch before this PR merges.Milestone
Milestone: v1.4.0 — the open v1.3.1 items ride along in this release.
Overall Risk Assessment
Overall Risk: Medium
Notes: the barchart migration changes the rendering engine and return type of six user-facing report functions. Chart content is structurally equivalent and covered by unit tests, review, and rendered-report verification. The housekeeping items are low risk.
QTL barchart migration risk
Overall Risk: Medium
Mitigation Strategy:
Notes: implemented in reviewed PR #137 with unit tests for all six functions and rendered QTL0001/QTL0002 report verification; qualification report and QC checklist to be completed in this release review.
Housekeeping risk
Overall Risk: Low
Mitigation Strategy:
Notes: dependency removal and org-link/CI updates only (#127, #131, #133, #136).
Release Checklist
DESCRIPTIONstyler(not run, to avoid formatting churn)spell_check()README.mdand relevant Vignettespkgdown::build_site()and check that affected examples and the Reference page render correctly