Fix Issuable#labels_hash when filtered by multiple labels for CSV export
What
Prevents PG::GroupingError
from Issuable.labels_hash
when filtered by multiple labels via with_label
Why
Export CSV was failing when filtering issues by multiple labels fails
Points for the reviewer to double check
- Performance of nested
unscoped.where(id: self.select(:id))
Acceptance criteria
-
Changelog entry added, if necessary -
Tests added for this feature/bug -
Conform by the merge request performance guides
Related
Edited by James EJ