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

[23.2] Fix tool shed webapp #17597

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Mar 5, 2024

Just make get_or_create_default_history a no-op.

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 and all my past contributions to the core galaxy codebase under the MIT license.

@github-actions github-actions bot added this to the 23.2 milestone Mar 5, 2024
@@ -36,6 +36,10 @@ class ToolShedGalaxyWebTransaction(GalaxyWebTransaction):
def repositories_hostname(self) -> str:
return url_for("/", qualified=True).rstrip("/")

def get_or_create_default_history(self):
# tool shed has no concept of histories
return None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may complicate type annotation when we add it. What about guarding the change in #17557 with a if self.webapp.name == "galaxy": instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume the type checking would fail anyway on attempting to create the history, so this is maybe a bit easier ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can raise NotImplementedError, I suppose?

@mvdbeek mvdbeek mentioned this pull request Mar 5, 2024
4 tasks
Copy link
Member

@dannon dannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't love more webapp.name, but this looks like the right fix.

@mvdbeek mvdbeek merged commit 4752af0 into galaxyproject:release_23.2 Mar 5, 2024
40 of 45 checks passed
@nsoranzo nsoranzo deleted the fix_tool_shed_tests branch March 5, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants