diff --git a/events/ua_stuff.py b/events/ua_stuff.py index c008741..ee1f051 100644 --- a/events/ua_stuff.py +++ b/events/ua_stuff.py @@ -3,7 +3,7 @@ import logging logger = logging.getLogger("bugsink.events.ua_stuff") -def enrich_contexts_with_ua(parsed_data): +def get_contexts_enriched_with_ua(parsed_data): # GlitchTip has some mechanism to get "synthetic" (i.e. not present in the original, UA-header derived) info into # first the contexts, which is then propagated (with a whole bunch of other info from contexts) to the tags. Both # these steps happen on-digest. diff --git a/issues/views.py b/issues/views.py index 483b2ed..2e8eb78 100644 --- a/issues/views.py +++ b/issues/views.py @@ -18,7 +18,7 @@ from bugsink.transaction import durable_atomic from bugsink.period_utils import add_periods_to_datetime from events.models import Event -from events.ua_stuff import enrich_contexts_with_ua +from events.ua_stuff import get_contexts_enriched_with_ua from compat.timestamp import format_timestamp from projects.models import ProjectMembership @@ -482,7 +482,7 @@ def issue_event_details(request, issue, event_pk=None, digest_order=None, nav=No ([("environment", parsed_data["environment"])] if "environment" in parsed_data else []) + \ ([("server_name", parsed_data["server_name"])] if "server_name" in parsed_data else []) - contexts = enrich_contexts_with_ua(parsed_data) + contexts = get_contexts_enriched_with_ua(parsed_data) return render(request, "issues/event_details.html", { "tab": "event-details",