Skip to content add an option for restricting the patching to specific DB types

Marek Szuba requested to merge feature/testdbpatcher_select_types into master

Created by: mkszuba


Extend so that it is possible to specify, from the command line, which database types (e.g. compara, core, funcgen etc.) to patch.

Use case

The current ensembl-rest release policy stipulates that it is up to individual teams to submit PRs patching their respective test databases yet the relevant script was only able to indiscriminately patch all test-DB types present (with the exception of the hard-coded blacklist consisting of "hive" and "web", which types however are not relevant to ensembl-rest). This can be worked around by selective inclusion of files into Git commits but a new command-line flag controlling this has been requested.

See also: ENSCORESW-3259


Will make life easier for teams producing test-database patches for ensembl-rest, along with saving some CPU time which would otherwise be wasted on generating to-be-ignored patches.

Possible Drawbacks



Have you added/modified unit tests to test the changes?


If so, do the tests pass/fail?


Have you run the entire test suite and no regression was detected?

Yes, no regression detected,

Merge request reports