Skip to content

Commit

Permalink
fix: rendered the analytics for labels (#5906)
Browse files Browse the repository at this point in the history
* fix: rendered the analytics for labels

* fix: analytics exports
  • Loading branch information
NarayanBavisetti authored Oct 24, 2024
1 parent 2caf23f commit 6d08cf2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apiserver/plane/app/views/analytic/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ def get(self, request, slug):
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")
Expand Down
3 changes: 2 additions & 1 deletion apiserver/plane/bgtasks/analytic_plot_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions apiserver/plane/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,5 +439,6 @@
"text/javascript",
"application/json",
"text/xml",
"text/csv",
"application/xml",
]

0 comments on commit 6d08cf2

Please sign in to comment.