Merge branch 'ce-reduce-diff-in-groups-update_service' into 'master'
Reduce diff with EE in Groups::UpdateService See merge request gitlab-org/gitlab-ce!24912
This commit is contained in:
commit
22caeb58a4
1 changed files with 6 additions and 0 deletions
|
@ -11,6 +11,8 @@ module Groups
|
|||
|
||||
return false unless valid_share_with_group_lock_change?
|
||||
|
||||
before_assignment_hook(group, params)
|
||||
|
||||
group.assign_attributes(params)
|
||||
|
||||
begin
|
||||
|
@ -28,6 +30,10 @@ module Groups
|
|||
|
||||
private
|
||||
|
||||
def before_assignment_hook(group, params)
|
||||
# overriden in EE
|
||||
end
|
||||
|
||||
def after_update
|
||||
if group.previous_changes.include?(:visibility_level) && group.private?
|
||||
# don't enqueue immediately to prevent todos removal in case of a mistake
|
||||
|
|
Loading…
Reference in a new issue