Skip to content

Fix issue CSV export failing for some projects

Stan Hu requested to merge sh-fix-issue-197300 into master

Some imported projects have NULL values for label_links.label_id for some reason. This caused the issue export CSV to fail because the exporter attempted to sort an array containing string values and nil values.

We should clean up the database entries (#197307) for this with a NOT NULL constraint, but this may require some careful consideration. For now, to make exports work again, we just reject any invalid label links.

Closes https://gitlab.com/gitlab-org/gitlab/issues/197300

Edited by Stan Hu

Merge request reports