opensafely / research-template

The template for new research projects that use the OpenSAFELY framework.
MIT License
16 stars 13 forks source link

Run `opensafely codelists update` to create `codelists.json` #47

Closed evansd closed 3 years ago

evansd commented 3 years ago

The tests pass without this at the moment, but only because a workaround is in place:

→ Checking codelists
  opensafely codelists check

==> WARNING
    Using temporary workaround for Github Actions tests.
    You should run: opensafely codelists update

Fetching opensafely/covid-identification/2020-06-03
Codelists OK
gitpod-io[bot] commented 3 years ago

evansd commented 3 years ago

@StevenMaude Yes, they serve different roles. codelists.txt is user edited and records the codelists needed for the study. codelists.json is generated automatically when opensafely codelists update is run as records exactly which codelists got pulled in along with hashes so we can check that people don't try to modify the codelists by hand after downloading.

For example, compare codelists.txt and codelists.json.