You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We move the initialisation of `FROM_DATE` and `TO_DATE` from deep within
`render_report` to `config`, to make them more visible and to highlight
the redundancy -- their canonical values are available within
*analysis/query.sql* (former) and at runtime (latter). SQL Runner
doesn't accept parametrised queries [1] -- and even if it did, we'd
still have redundancy in *project.yaml* -- and the date and time an
upstream SQL Runner action was executed is not accessible to downstream
actions [2], so the best we can do to prevent drift between the `query`
action and the `render_report` action is to highlight the redundancy.
[1]: opensafely-core/sqlrunner#72
[2]: opensafely-core/sqlrunner#86
Similarly, opensafely/ons-cis-short-data-report could use them such that we don't have to copy the same query each time we want to count the values in a categorical column.
opensafely/winter-pressures could benefit from a parameterized query, to move the values of
@study_start_date
and@study_end_date
into project.yaml.The text was updated successfully, but these errors were encountered: