Commit Graph
9 Commits
Author SHA1 Message Date
John Davis df0c6b6292 Move migration exception classes into their own module 2023-02-08 12:12:21 -05:00
John Davis 1f5b0e6bba Drop LegacyScripts: no longer used 2022-09-16 00:39:03 -04:00
John Davis def882932d Add verify_db_is_initialized function; tests 2022-07-13 16:10:58 -04:00
John Davis 1e75d85fd4 Prevent accessing LegacyScripts.database before processing script args 2022-07-13 15:40:42 -04:00
Sergey Golitsynskiy 1a1ae8d3d2 Adapt manage_db.py for usegalaxy playbook; add tests 2022-03-09 18:41:50 -05:00
Sergey Golitsynskiy 92b2e67145 Apply black, isort (squashed)
Squashed:
- pick 8a26c3c7af Fix import order in config
- squash ebe36de5fc Apply black, isort
2022-03-09 18:41:49 -05:00
Sergey Golitsynskiy 6ef54eb3af Stub out config call in test_scripts; fixes package test 2022-03-09 18:41:03 -05:00
Sergey Golitsynskiy f32b220cf8 Modify behavior of legacy wrapper, add tests, refactor
If the database is combined, running `./manage_db.sh upgrade` should upgrade
BOTH models: gxy and tsi. However, if tsi uses a separate database, only
the galaxy model should be updated.

Also, see this for context: https://github.com/galaxyproject/galaxy/pull/13108#discussion_r789108576

See inline comments for more details.

The new tests are examples of new behavior.

All refactoring is directly related to the changes in this commit.
2022-03-09 18:41:03 -05:00
Sergey Golitsynskiy 537cf5d2aa Preserve manage_db.sh, but do not hide alembic
- Preserves usage of legacy script while not hiding the Alembic script.
    (see manage_db.sh and run_alembic.sh)
- Adds documentation (see top of script files)
- Includes misc. relevant refactorings
- Includes unit tests for testing legacy script handling
2022-03-09 18:41:03 -05:00