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
f682052a
Commit
f682052a
authored
Sep 09, 2021
by
Dmitry Gruzd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Elastic::MigrationWorker current_migration
Changelog: fixed EE: true
parent
2c1838e7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
136 additions
and
120 deletions
+136
-120
ee/app/workers/elastic/migration_worker.rb
ee/app/workers/elastic/migration_worker.rb
+2
-2
ee/spec/workers/elastic/migration_worker_spec.rb
ee/spec/workers/elastic/migration_worker_spec.rb
+134
-118
No files found.
ee/app/workers/elastic/migration_worker.rb
View file @
f682052a
...
@@ -87,9 +87,9 @@ module Elastic
...
@@ -87,9 +87,9 @@ module Elastic
end
end
def
current_migration
def
current_migration
completed_migrations
=
Elastic
::
MigrationRecord
.
load_versions
(
completed:
tru
e
)
uncompleted_migrations
=
Elastic
::
MigrationRecord
.
load_versions
(
completed:
fals
e
)
Elastic
::
DataMigrationService
.
migrations
.
find
{
|
migration
|
!
completed_migrations
.
include?
(
migration
.
version
)
}
Elastic
::
DataMigrationService
.
migrations
.
find
{
|
migration
|
un
completed_migrations
.
include?
(
migration
.
version
)
}
end
end
def
pause_indexing!
(
migration
)
def
pause_indexing!
(
migration
)
...
...
ee/spec/workers/elastic/migration_worker_spec.rb
View file @
f682052a
This diff is collapsed.
Click to expand it.
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