Skip to content

Committing codelists.json to the repo #170

Answered by evansd
alexwalkerepi asked this question in Codelists
Discussion options

You must be logged in to vote

Yes, this should be committed alongside all the other files in the codelists directory.

At the moment you can get away with not including it at all because we wanted to avoid breaking existing studies so we put a workaround in place. The test output contains a warning about this but it gets lost in all the other output:

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

The reason we create this file is to make sure that the contents of the codelists directory exactly matches what was downloaded from OpenCodelists, but without having to contact OpenCodelists each time we run the tests which has the potential to make tests …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by alexwalkerepi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants