summaryrefslogtreecommitdiff
path: root/app/models/issue_collection.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-3/+3
|
* Process commits in a separate workerprocess-commits-using-sidekiqYorick Peterse2016-11-071-0/+2
| | | | | | | | | | | | | 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.
* Added IssueCollectionYorick Peterse2016-11-071-0/+40
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.