Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop tool migration scripts and related code #13099

Merged
merged 8 commits into from
Dec 21, 2021

Conversation

jdavcs
Copy link
Member

@jdavcs jdavcs commented Dec 20, 2021

This is a follow-up to a discussion we had at a backend WG meeting.
The functionality is no longer used and, due to its reliance on SQLAlchemy Migrate, is a blocker for #12541 (SQLAlchemy 2.0).

I've left the migrated_tools_config config option, but marked it as deprecated and changed its description accordingly. That way, we still check for that file, in case there's a deployment that still has one. I've removed the check_migrate_tools config option and (hopefully) all related functionality.

EDIT: I'm not sure to what extent this might affect #636 (thanks for the reference, @nsoranzo!)

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these contributions under Galaxy's current license.
  • I agree to allow the Galaxy committers to license these and all my past contributions to the core galaxy codebase under the MIT license. If this condition is an issue, uncheck and just let us know why with an e-mail to [email protected].

@jdavcs jdavcs added this to the 22.01 milestone Dec 20, 2021
@jdavcs jdavcs added area/database Galaxy's database or data access layer area/tools kind/refactoring cleanup or refactoring of existing code, no functional changes and removed area/documentation area/testing area/admin area/tool-framework area/util labels Dec 20, 2021
@jdavcs jdavcs changed the title [WIP] Drop tool migration scripts and related code Drop tool migration scripts and related code Dec 20, 2021
@jdavcs
Copy link
Member Author

jdavcs commented Dec 20, 2021

All the red is due to a disruption of service on circleci's end. I'll rerun the tests when that's fixed.

@jdavcs jdavcs marked this pull request as ready for review December 20, 2021 23:02
The from_tool_migration_manager parameter as False as its default value.
The only case where it's called with the value True is when it's called
from the from_tool_migration_manager module - which is now deleted.
Therefore, now the value is always False and, therefore, it is safe to
drop this parameter and adjust the code that checks its value accordingly.
@jmchilton
Copy link
Member

+65 −2,450 😺 🏆 .

Looks wonderful to me!

@jdavcs jdavcs merged commit bf58b5c into galaxyproject:dev Dec 21, 2021
@jdavcs jdavcs mentioned this pull request Dec 30, 2021
27 tasks
jdavcs added a commit to jdavcs/galaxy that referenced this pull request Jan 6, 2022
The edit in lib/tool_shed is intentional: it did not refer to the
TS-based migrate stuff that still exists.

The tangential stuff is on tool migration. The migrate reference was
part of the tool-migration enpoint, which itself is dead code, since
tool migration has been dropped in galaxyproject#13099. The client code contained
references to the endpoint.
jdavcs added a commit to jdavcs/galaxy that referenced this pull request Jan 9, 2022
The edit in lib/tool_shed is intentional: it did not refer to the
TS-based migrate stuff that still exists.

The tangential stuff is on tool migration. The migrate reference was
part of the tool-migration enpoint, which itself is dead code, since
tool migration has been dropped in galaxyproject#13099. The client code contained
references to the endpoint.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/database Galaxy's database or data access layer area/tools kind/refactoring cleanup or refactoring of existing code, no functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants