diff --git a/lib/galaxy/tools/error_reports/plugins/slack.py b/lib/galaxy/tools/error_reports/plugins/slack.py index ee819b6f2669..10e3c69128b4 100644 --- a/lib/galaxy/tools/error_reports/plugins/slack.py +++ b/lib/galaxy/tools/error_reports/plugins/slack.py @@ -8,7 +8,6 @@ import requests -from galaxy import web from galaxy.util import string_as_bool from .base_git import BaseGitPlugin @@ -38,7 +37,7 @@ def _fill_issue_cache(self, *args, **kwargs): def submit_report(self, dataset, job, tool, **kwargs): history_id_encoded = self.app.security.encode_id(dataset.history_id) - history_view_link = web.url_for("/histories/view", id=history_id_encoded, qualified=True) + history_view_link = self.app.url_for("/histories/view", id=history_id_encoded, qualified=True) error_report_id = str(uuid.uuid4())[0:13] title = self._generate_error_title(job) diff --git a/lib/galaxy/tools/errors.py b/lib/galaxy/tools/errors.py index a2ee14a69ddf..a9a74e0a3de1 100644 --- a/lib/galaxy/tools/errors.py +++ b/lib/galaxy/tools/errors.py @@ -8,7 +8,6 @@ from galaxy import ( model, util, - web, ) from galaxy.security.validate_user_input import validate_email_str from galaxy.util import unicodify @@ -159,11 +158,11 @@ def _can_access_dataset(self, user): def create_report(self, user, email="", message="", redact_user_details_in_bugreport=False, **kwd): hda = self.hda job = self.job - host = web.url_for("/", qualified=True) + host = self.app.url_for("/", qualified=True) history_id_encoded = self.app.security.encode_id(hda.history_id) - history_view_link = web.url_for("/histories/view", id=history_id_encoded, qualified=True) + history_view_link = self.app.url_for("/histories/view", id=history_id_encoded, qualified=True) hda_id_encoded = self.app.security.encode_id(hda.id) - hda_show_params_link = web.url_for( + hda_show_params_link = self.app.url_for( controller="dataset", action="details", dataset_id=hda_id_encoded, qualified=True ) # Build the email message