Skip to content
Snippets Groups Projects
Commit 2065b98f authored by Heinrich Lee Yu's avatar Heinrich Lee Yu
Browse files

Merge branch '362546-prevent-cloning-of-emoji-awards' into 'master'

Do not copy awarded emoji when cloning issues

See merge request gitlab-org/gitlab!92766
parents 5ac7c0ae dc1c2be8
Branches fneill-CTRT-productivity-analytics
No related merge requests found
......@@ -41,7 +41,6 @@ def verify_can_clone_issue!(issue, target_project)
def update_new_entity
# we don't call `super` because we want to be able to decide whether or not to copy all comments over.
update_new_entity_description
copy_award_emoji
if with_notes
copy_notes
......
......@@ -140,11 +140,11 @@
context 'issue with award emoji' do
let!(:award_emoji) { create(:award_emoji, awardable: old_issue) }
it 'copies the award emoji' do
it 'does not copy the award emoji' do
old_issue.reload
new_issue = clone_service.execute(old_issue, new_project)
expect(old_issue.award_emoji.first.name).to eq new_issue.reload.award_emoji.first.name
expect(new_issue.reload.award_emoji).to be_empty
end
end
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment