Adds changelog entry, changes RemoteMirror#sync? to be semantically sound and remove reference to pull mirrors in view

This commit is contained in:
Tiago Botelho 2018-05-07 11:52:53 +02:00
parent 961255b107
commit d12a299117
3 changed files with 8 additions and 3 deletions

View File

@ -87,11 +87,11 @@ class RemoteMirror < ActiveRecord::Base
end
def sync?
!enabled?
enabled?
end
def sync
return if sync?
return unless sync?
if recently_scheduled?
RepositoryUpdateRemoteMirrorWorker.perform_in(backoff_delay, self.id, Time.now)

View File

@ -321,6 +321,6 @@
%button.btn.js-settings-toggle{ type: 'button' }
= expanded ? 'Collapse' : 'Expand'
%p
= _('Configure push and pull mirrors.')
= _('Configure push mirrors.')
.settings-content
= render partial: 'repository_mirrors_form'

View File

@ -0,0 +1,5 @@
---
title: Adds push mirrors to GitLab Community Edition
merge_request: 18715
author:
type: changed