summaryrefslogtreecommitdiff
path: root/app/models/fork_network.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add cop for has_many :through without disabled autoloadingfix-n-plus-one-when-getting-notification-settings-for-recipientsSean McGivern2018-04-091-1/+1
| | | | | | | | | | | | | Goldiloader is great, but has several issues with has_many :through relations: * https://github.com/salsify/goldiloader/issues/12 * https://github.com/salsify/goldiloader/issues/14 * https://github.com/salsify/goldiloader/issues/18 Rather than try to figure out which applies in each case, we should just do the drudge work of manually disabling autoloading for all relations of this type. We can always use regular preloading for specific cases, but this way we avoid generating invalid queries through Goldiloader's magic.
* Unlink a project from a fork network when it's source was deleted.Bob Van Landuyt2017-11-031-0/+4
| | | | | We need to close all merge requests coming from the project within the entire fork network.
* Find forks within users/namespaces using fork membershipsBob Van Landuyt2017-10-071-0/+4
|
* Create a fork network when forking a projectBob Van Landuyt2017-10-071-1/+9
| | | | | When no fork network exists for the source projects, we create a new one with the correct source
* Add a model for `fork_networks`Bob Van Landuyt2017-10-071-0/+3
The fork network will keep track of the root project as long as it's present.