• Luke Duncalfe's avatar
    Refactor Issuable::Clone::BaseService to services · 4f8ca3f7
    Luke Duncalfe authored
    Previously Issuable::Clone::BaseService copied an issuable notes,
    award emoji, and award emoji on the issuable notes to another issue
    through Issuable::Clone::ContentRewriter.
    
    In order to implement
    https://gitlab.com/gitlab-org/gitlab/-/issues/13426 in future, we need
    to be able to copy design notes and their award emoji independently of
    Issuable::Clone::ContentRewriter which was highly-coupled to issuables.
    
    Issuable::Clone::BaseService now calls new services:
    
    - Notes::CopyService
    - AwardEmoji::CopyService
    - ContentRewriterService
    
    Which contain re-usable logic to perform those actions.
    4f8ca3f7
reference_rewriter_spec.rb 5.91 KB