1. 21 Aug, 2018 2 commits
    • Sean McGivern's avatar
      Fix authors N+1 in Issues::ReferencedMergeRequestsService · 22d8fbac
      Sean McGivern authored
      `#referenced_merge_requests` preloaded too many associations. Award emoji, for
      instance, are completely unnecessary here.
      
      `#closed_by_merge_requests` had the opposite problem: `#all_references` needs
      each item's author, and these weren't preloaded.
      22d8fbac
    • Sean McGivern's avatar
      Move Issue#{referenced,closed_by}_merge_requests to service · c73da6c1
      Sean McGivern authored
      These methods don't really need to be on the Issue model. Issue#related_branches
      can also be moved to a service, but we can do that in a separate commit.
      
      This commit does not change any behaviour; it just moves code around, renames
      the service, and refactors the specs.
      c73da6c1
  2. 16 Aug, 2018 3 commits
  3. 15 Aug, 2018 35 commits