Skip to content

Commit

Permalink
Fixing problem with sodar-core upgrade (varfish-org#375) (varfish-org…
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Mar 9, 2022
1 parent 034c311 commit cc29127
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions variants/plugins.py
Expand Up @@ -251,13 +251,6 @@ def search(self, search_terms, user, search_type=None, keywords=None):

return {"all": {"title": "Cases", "search_types": ["case"], "items": items}}

def get_extra_data_link(self, extra_data, name):
"""Return link for the given label that started with ``"extra-"``."""
if name == "extra-flag_values":
return extra_data["flag_values"]
else:
return "(unknown %s)" % name

def get_object_link(self, model_str, uuid):
"""
Return URL for referring to a object used by the app, along with a
Expand Down Expand Up @@ -306,6 +299,9 @@ class BackgroundJobsPlugin(BackgroundJobsPluginPoint):
RefreshSmallVariantSummaryBgJob.spec_name: RefreshSmallVariantSummaryBgJob,
}

def get_extra_data_link(self, _extra_data, _name):
"""Return a link for timeline label starting with 'extra-'"""
return None
def get_extra_data_link(self, extra_data, name):
"""Return link for the given label that started with ``"extra-"``."""
if name == "extra-flag_values":
return extra_data["flag_values"]
else:
return "(unknown %s)" % name

0 comments on commit cc29127

Please sign in to comment.