Remove a false comment

(groupings do imply issues, it's a FK)
This commit is contained in:
Klaas van Schelven
2024-09-27 18:14:51 +02:00
parent b6b4083ac1
commit 5e5b53abed

View File

@@ -221,6 +221,7 @@ class BaseIngestAPIView(View):
Max("digest_order"))["digest_order__max"]
issue_digest_order = max_current + 1 if max_current is not None else 1
# if the grouping doesn't exist, the issue doesn't exist either (because a grouping implies an issue).
issue = Issue.objects.create(
digest_order=issue_digest_order,
project_id=event_metadata["project_id"],
@@ -229,9 +230,6 @@ class BaseIngestAPIView(View):
digested_event_count=1,
**denormalized_fields,
)
# even though in our data-model a given grouping does not imply a single Issue (in fact, that's the whole
# point of groupings as a data-model), at-creation such implication does exist, because manual information
# ("this grouper is actually part of some other issue") can by definition not yet have been specified.
issue_created = True
grouping = Grouping.objects.create(