Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2b566300
Commit
2b566300
authored
Nov 11, 2019
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract a helper method
parent
aae68f52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ee/app/services/geo/repository_updated_service.rb
ee/app/services/geo/repository_updated_service.rb
+6
-6
No files found.
ee/app/services/geo/repository_updated_service.rb
View file @
2b566300
...
...
@@ -16,10 +16,7 @@ module Geo
def
execute
return
false
unless
Gitlab
::
Geo
.
primary?
if
source
==
Geo
::
RepositoryUpdatedEvent
::
DESIGN
&&
Feature
.
disabled?
(
:enable_geo_design_sync
)
return
false
end
return
false
if
design?
&&
Feature
.
disabled?
(
:enable_geo_design_sync
)
reset_repository_checksum!
create_repository_updated_event!
...
...
@@ -39,10 +36,13 @@ module Geo
).
create!
end
def
design?
source
==
Geo
::
RepositoryUpdatedEvent
::
DESIGN
end
def
reset_repository_checksum!
# We don't yet support verification for Design repositories
return
if
source
==
Geo
::
RepositoryUpdatedEvent
::
DESIGN
return
if
design?
return
if
repository_state
.
nil?
repository_state
.
update!
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment