An error occurred fetching the project authors.
  1. 05 Apr, 2018 1 commit
    • Sean McGivern's avatar
      Fix N+1 in MergeRequestParser · e7b1d201
      Sean McGivern authored
      read_project can be prevented by a very expensive condition, which we want to
      avoid, while still not writing manual SQL queries. read_project_for_iids is used
      by read_issue_iid and read_merge_request_iid to satisfy both of those
      constraints, and allow the declarative policy runner to use its normal caching
      strategy.
      e7b1d201
  2. 22 Feb, 2018 1 commit
  3. 27 Jun, 2017 1 commit
  4. 09 Nov, 2016 1 commit
  5. 07 Nov, 2016 2 commits
    • Yorick Peterse's avatar
      Process commits in a separate worker · 509910b8
      Yorick Peterse authored
      This moves the code used for processing commits from GitPushService to
      its own Sidekiq worker: ProcessCommitWorker.
      
      Using a Sidekiq worker allows us to process multiple commits in
      parallel. This in turn will lead to issues being closed faster and cross
      references being created faster. Furthermore by isolating this code into
      a separate class it's easier to test and maintain the code.
      
      The new worker also ensures it can efficiently check which issues can be
      closed, without having to run numerous SQL queries for every issue.
      509910b8
    • Yorick Peterse's avatar
      Added IssueCollection · f694f94c
      Yorick Peterse authored
      This class can be used to reduce a list of issues down to a subset based
      on user permissions. This class operates in such a way that it can
      reduce issues using as few queries as possible, if any at all.
      f694f94c
  6. 30 Aug, 2016 2 commits