-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[23.2] Fix tool shed webapp #17597
Conversation
lib/tool_shed/webapp/buildapp.py
Outdated
@@ -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 |
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.
This may complicate type annotation when we add it. What about guarding the change in #17557 with a if self.webapp.name == "galaxy":
instead?
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 assume the type checking would fail anyway on attempting to create the history, so this is maybe a bit easier ?
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.
You can raise NotImplementedError
, I suppose?
c7b80fb
to
feb38af
Compare
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.
Don't love more webapp.name, but this looks like the right fix.
Just make
get_or_create_default_history
a no-op.How to test the changes?
(Select all options that apply)
License