Skip to content

Prevent error when promoting issues to epics

Felipe Cardozo requested to merge issue_296567 into master

What does this MR do?

Avoids database constraint error when promoting issue to epic.

PG::CheckViolation: ERROR: new row for relation "resource_state_events" violates check constraint "state_events_must_belong_to_issue_or_merge_request_or_epic" DETAIL: Failing row contains ... 

Error happens when cloning issue resource_state_events which both issue_id and epic_id violating database constraint state_events_must_belong_to_issue_or_merge_request_or_epic.

related to #296567 (closed)

Edited by Felipe Cardozo

Merge request reports

Loading