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
91bf0a6b
Commit
91bf0a6b
authored
Feb 13, 2018
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Geo: Reset force_redownload flag after successful sync
parent
7afd29db
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
changelogs/unreleased-ee/4211-document-process-for-bring-a-demoted-primary-back-docs.yml
...ocument-process-for-bring-a-demoted-primary-back-docs.yml
+5
-0
ee/app/services/geo/base_sync_service.rb
ee/app/services/geo/base_sync_service.rb
+1
-0
spec/ee/spec/services/geo/repository_sync_service_spec.rb
spec/ee/spec/services/geo/repository_sync_service_spec.rb
+8
-0
No files found.
changelogs/unreleased-ee/4211-document-process-for-bring-a-demoted-primary-back-docs.yml
0 → 100644
View file @
91bf0a6b
---
title
:
'
Geo:
Reset
force_redownload
flag
after
successful
sync'
merge_request
:
author
:
type
:
fixed
ee/app/services/geo/base_sync_service.rb
View file @
91bf0a6b
...
...
@@ -108,6 +108,7 @@ module Geo
attrs
[
"resync_
#{
type
}
"
]
=
false
attrs
[
"
#{
type
}
_retry_count"
]
=
nil
attrs
[
"
#{
type
}
_retry_at"
]
=
nil
attrs
[
"force_to_redownload_
#{
type
}
"
]
=
false
end
registry
.
update!
(
attrs
)
...
...
spec/ee/spec/services/geo/repository_sync_service_spec.rb
View file @
91bf0a6b
...
...
@@ -210,6 +210,14 @@ describe Geo::RepositorySyncService do
subject
.
execute
end
it
'sets the redownload flag to false after success'
do
registry
=
create
(
:geo_project_registry
,
project:
project
,
repository_retry_count:
Geo
::
BaseSyncService
::
RETRY_BEFORE_REDOWNLOAD
+
1
,
force_to_redownload_repository:
true
)
subject
.
execute
expect
(
registry
.
reload
.
force_to_redownload_repository
).
to
be
false
end
it
'tries to redownload repo'
do
create
(
:geo_project_registry
,
project:
project
,
repository_retry_count:
Geo
::
BaseSyncService
::
RETRY_BEFORE_REDOWNLOAD
+
1
)
...
...
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