diff --git a/tcms/testcases/admin.py b/tcms/testcases/admin.py index 87476dac23..745f6fb869 100644 --- a/tcms/testcases/admin.py +++ b/tcms/testcases/admin.py @@ -190,14 +190,28 @@ def save_model(self, request, obj, form, change): raise RuntimeError(_("Failed creating Issue Tracker")) details = tracker.details(bug_url) + + if details["from_open_graph"]: + messages.add_message( + request, + messages.WARNING, + _( + "Details extracted via OpenGraph. " + "Issue Tracker may still be configured incorrectly!" + ), + ) + else: + messages.add_message( + request, + messages.SUCCESS, + _( + "Details extracted via API. Issue Tracker configuration looks good!" + ), + ) + messages.add_message( request, - messages.SUCCESS, - _("Issue Tracker configuration check passed"), - ) - messages.add_message( - request, - messages.SUCCESS, + messages.INFO, details, ) except Exception as err: # pylint: disable=broad-except