Prevent issues of being promoted twice
Allow to promote issues to epics only once. This prevents multiple epics being created for the same issue.
To prevent the promotion we check for the field promoted_to_epic_id
which has on_delete: :nullify
, so if
the epic gets deleted the issue can be promoted again.
related to https://gitlab.com/gitlab-org/gitlab/-/issues/208974
follow up of !27625 (merged)
Edited by 🤖 GitLab Bot 🤖