Skip to content

Fix Issuable#labels_hash when filtered by multiple labels for CSV export

James EJ requested to merge jej/fix-csv-export-filter-by-multiple-labels into master

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

Related

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/34217

Edited by James EJ

Merge request reports

Loading