fix: rendered the analytics for labels (#5906)

* fix: rendered the analytics for labels

* fix: analytics exports
This commit is contained in:
Bavisetti Narayan 2024-10-24 20:35:27 +05:30 committed by GitHub
parent 2caf23fb71
commit 6d08cf2757
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

@ -112,8 +112,8 @@ class AnalyticsEndpoint(BaseAPIView):
Issue.objects.filter(
workspace__slug=slug,
**filters,
labels__id__isnull=False
& Q(label_issue__deleted_at__isnull=True),
labels__id__isnull=False,
label_issue__deleted_at__isnull=True,
)
.distinct("labels__id")
.order_by("labels__id")

View file

@ -132,7 +132,8 @@ def get_label_details(slug, filters):
Issue.objects.filter(
workspace__slug=slug,
**filters,
labels__id__isnull=False & Q(label_issue__deleted_at__isnull=True),
labels__id__isnull=False,
label_issue__deleted_at__isnull=True,
)
.distinct("labels__id")
.order_by("labels__id")

View file

@ -439,5 +439,6 @@ ATTACHMENT_MIME_TYPES = [
"text/javascript",
"application/json",
"text/xml",
"text/csv",
"application/xml",
]