patch_test_databases.pl: add an option for restricting the patching to specific DB types
Created by: mkszuba
Description
Extend patch_test_databases.pl 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
Benefits
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
None.
Testing
Have you added/modified unit tests to test the changes?
No.
If so, do the tests pass/fail?
N/A
Have you run the entire test suite and no regression was detected?
Yes, no regression detected,