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
ee2ae796
Commit
ee2ae796
authored
Aug 21, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change constant from class to module
parent
8c1ec51f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
ee/lib/ee/gitlab/background_migration/populate_resolved_on_default_branch_column.rb
...d_migration/populate_resolved_on_default_branch_column.rb
+3
-3
ee/spec/lib/ee/gitlab/background_migration/populate_resolved_on_default_branch_column_spec.rb
...ration/populate_resolved_on_default_branch_column_spec.rb
+1
-1
lib/gitlab/background_migration/populate_resolved_on_default_branch_column.rb
...d_migration/populate_resolved_on_default_branch_column.rb
+1
-1
No files found.
ee/lib/ee/gitlab/background_migration/populate_resolved_on_default_branch_column.rb
View file @
ee2ae796
...
...
@@ -3,9 +3,9 @@
module
EE
module
Gitlab
module
BackgroundMigration
class
PopulateResolvedOnDefaultBranchColumn
def
perform
(
project_ids
)
project_ids
.
each
{
|
project_id
|
PopulateResolvedOnDefaultBranchColumnForProject
.
perform
(
project_id
)
}
module
PopulateResolvedOnDefaultBranchColumn
def
perform
(
*
project_ids
)
project_ids
.
flatten
.
each
{
|
project_id
|
PopulateResolvedOnDefaultBranchColumnForProject
.
perform
(
project_id
)
}
end
module
Routable
...
...
ee/spec/lib/ee/gitlab/background_migration/populate_resolved_on_default_branch_column_spec.rb
View file @
ee2ae796
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
RSpec
.
describe
EE
::
Gitlab
::
BackgroundMigration
::
PopulateResolvedOnDefaultBranchColumn
do
RSpec
.
describe
::
Gitlab
::
BackgroundMigration
::
PopulateResolvedOnDefaultBranchColumn
do
let
(
:users
)
{
table
(
:users
)
}
let
(
:namespaces
)
{
table
(
:namespaces
)
}
let
(
:projects
)
{
table
(
:projects
)
}
...
...
lib/gitlab/background_migration/populate_resolved_on_default_branch_column.rb
View file @
ee2ae796
...
...
@@ -9,4 +9,4 @@ module Gitlab
end
end
Gitlab
::
BackgroundMigration
::
UpdateVulnerabilityConfidence
.
prepend_if_ee
(
'EE::Gitlab::BackgroundMigration::PopulateResolvedOnDefaultBranchColumn'
)
Gitlab
::
BackgroundMigration
::
PopulateResolvedOnDefaultBranchColumn
.
prepend_if_ee
(
'EE::Gitlab::BackgroundMigration::PopulateResolvedOnDefaultBranchColumn'
)
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