mirror of
https://github.com/bugsink/bugsink.git
synced 2025-12-21 04:50:07 -06:00
22 lines
666 B
Python
22 lines
666 B
Python
import json
|
|
|
|
from django.shortcuts import render, get_object_or_404
|
|
|
|
from ingest.models import DecompressedEvent
|
|
|
|
|
|
def decompressed_event_detail(request, pk):
|
|
# this view is misplaced "by nature" (it mixes ingested stuff and rendering); until we create a pipeline for that.
|
|
obj = get_object_or_404(DecompressedEvent, pk=pk)
|
|
|
|
parsed_data = json.loads(obj.data)
|
|
|
|
# NOTE: instead of values, this may also just be a flat list; TODO implement this
|
|
exceptions = parsed_data["exception"]["values"]
|
|
|
|
return render(request, "events/event_detail.html", {
|
|
"obj": obj,
|
|
"parsed_data": parsed_data,
|
|
"exceptions": exceptions,
|
|
})
|