Rename get_contexts_enriched_with_ua

more closely match what's going on
This commit is contained in:
Klaas van Schelven
2025-02-26 18:20:52 +01:00
parent 348c2dc80f
commit 4b7ed8f4ec
2 changed files with 3 additions and 3 deletions

View File

@@ -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.

View File

@@ -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",