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
5ad48b83
Commit
5ad48b83
authored
Nov 30, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small refactor
parent
30d62f44
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
app/serializers/geo_project_registry_entity.rb
app/serializers/geo_project_registry_entity.rb
+0
-2
app/services/geo/repository_sync_service.rb
app/services/geo/repository_sync_service.rb
+1
-1
app/services/geo/wiki_sync_service.rb
app/services/geo/wiki_sync_service.rb
+1
-1
No files found.
app/serializers/geo_project_registry_entity.rb
View file @
5ad48b83
class
GeoProjectRegistryEntity
<
Grape
::
Entity
include
ActionView
::
Helpers
::
NumberHelper
expose
:project_id
expose
:last_repository_synced_at
expose
:last_repository_successful_sync_at
...
...
app/services/geo/repository_sync_service.rb
View file @
5ad48b83
...
...
@@ -22,7 +22,7 @@ module Geo
fetch_geo_mirror
(
project
.
repository
)
end
update_registry
(
finished_at:
DateTime
.
now
)
update_registry
(
finished_at:
DateTime
.
now
,
last_repository_sync_failure:
nil
)
log_info
(
'Finished repository sync'
,
update_delay_s:
update_delay_in_seconds
,
download_time_s:
download_time_in_seconds
)
...
...
app/services/geo/wiki_sync_service.rb
View file @
5ad48b83
...
...
@@ -21,7 +21,7 @@ module Geo
fetch_geo_mirror
(
project
.
wiki
.
repository
)
end
update_registry
(
finished_at:
DateTime
.
now
)
update_registry
(
finished_at:
DateTime
.
now
,
last_wiki_sync_failure:
nil
)
log_info
(
'Finished wiki sync'
,
update_delay_s:
update_delay_in_seconds
,
...
...
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