-
Notifications
You must be signed in to change notification settings - Fork 967
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
[16.04] backport of model tool dependencies fix #2959
[16.04] backport of model tool dependencies fix #2959
Conversation
…ect#2950) * Fix the cause of toolshed test 1400 failing. * Fix handling of repositories without tool dependencies. * Fix tool dependency retrieval. In some cases, a process might attempt to fetch tool dependencies for revision 1:7334f6d0ac17, but the repository has been updated, and tool dependency metadata has been reassigned to e.g. 7:ce22ceec214a. This commit resolves that issue. * Correct the logic that returns an empty string for an empty dict. * Fix getting latest revision with tool dependencies. * Use self.app instead of trans.app Conflicts: lib/galaxy/webapps/tool_shed/controllers/repository.py
… into release_16.04
@@ -1713,8 +1713,8 @@ def get_tool_dependencies( self, trans, **kwd ): | |||
owner = kwd.get( 'owner', None ) | |||
changeset_revision = kwd.get( 'changeset_revision', None ) | |||
repository = suc.get_repository_by_name_and_owner( trans.app, name, owner ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to change this to suc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was expected: #2950 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nsoranzo that's why I had no problems doing it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heh, seems I had a problem doing it :D
def get_tool_dependencies( self, changeset_revision ): | ||
def get_tool_dependencies( self, app, changeset_revision ): | ||
repo = hg.repository( ui.ui(), self.repo_path( app ) ) | ||
changeset_revision = metadata_util.get_next_downloadable_changeset_revision( self, repo, changeset_revision ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually that's the one that should be changed: s/metadata_util/suc/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting, that one was not in conflict...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because these are new lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch
The TS test is still failing https://jenkins.galaxyproject.org/job/docker-toolshed/4140/testReport/shed_functional.functional.test_1400_review_migration_stages/TestToolMigrationStages/test_0005_load_migration_stages_page/ , but I think this should be fixed by updating the freebayes version in |
Confirmed. @martenson, can you add the following to this PR ? I have to go home.
|
Forward merged. |
xref: #2950
ping @nsoranzo @davebx