Add Composite Action For Generating Weekly Hub Visualization Data#151
Open
Add Composite Action For Generating Weekly Hub Visualization Data#151
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #151 +/- ##
=====================================
Coverage 9.66% 9.66%
=====================================
Files 12 12
Lines 1180 1180
=====================================
Hits 114 114
Misses 1066 1066 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
sbidari
reviewed
Feb 17, 2026
| pull_nhsn = TRUE, | ||
| pull_nssp = ref_date >= as.Date("2025-06-21") | ||
| ) | ||
|
|
Collaborator
There was a problem hiding this comment.
Please also add write_webtext()
sbidari
reviewed
Feb 17, 2026
| hub_reports_path = hub_reports_path, | ||
| disease = disease, | ||
| pull_nhsn = TRUE, | ||
| pull_nssp = ref_date >= as.Date("2025-06-21") |
Collaborator
There was a problem hiding this comment.
Suggested change
| pull_nssp = ref_date >= as.Date("2025-06-21") | |
| pull_nssp = TRUE |
sbidari
reviewed
Feb 17, 2026
| reference_date: | ||
| description: "Reference date for the forecast (YYYY-MM-DD, must be a Saturday). Defaults to the last day of the current MMWR epiweek." | ||
| required: false | ||
| default: "latest" |
Collaborator
There was a problem hiding this comment.
Once you add write_webtext(), you will also need targets input
sbidari
reviewed
Feb 17, 2026
| } else { | ||
| ref_date <- as.Date(input_date) | ||
| } | ||
| cat("Using reference date:", as.character(ref_date), "\n") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR (from last week) adds a composite action to
hubhelprfor weekly hub visualization data.Previously, the R script for generating the three data files lived inline in the
cfa-forecast-hub-reportsworkflowgenerate-visualization-data-v2.yaml. Now this workflow calls thehubhelpraction, using a few inputs (disease, token, hub path, reference date).