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
886e4652
Commit
886e4652
authored
Mar 04, 2020
by
Jan Provaznik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor code improvements
* enum from 1000 for EE * align resources in specs
parent
bcb5f8a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
ee/app/models/ee/internal_id_enums.rb
ee/app/models/ee/internal_id_enums.rb
+1
-1
ee/spec/services/users/migrate_to_ghost_user_service_spec.rb
ee/spec/services/users/migrate_to_ghost_user_service_spec.rb
+10
-10
No files found.
ee/app/models/ee/internal_id_enums.rb
View file @
886e4652
...
...
@@ -9,7 +9,7 @@ module EE
override
:usage_resources
def
usage_resources
super
.
merge
(
requirements:
7
)
super
.
merge
(
requirements:
1000
)
end
end
end
...
...
ee/spec/services/users/migrate_to_ghost_user_service_spec.rb
View file @
886e4652
...
...
@@ -4,8 +4,8 @@ require 'spec_helper'
describe
Users
::
MigrateToGhostUserService
do
context
'epics'
do
let!
(
:user
)
{
create
(
:user
)
}
let
(
:service
)
{
described_class
.
new
(
user
)
}
let!
(
:user
)
{
create
(
:user
)
}
let
(
:service
)
{
described_class
.
new
(
user
)
}
context
'deleted user is present as both author and edited_user'
do
include_examples
"migrating a deleted user's associated records to the ghost user"
,
Epic
,
[
:author
,
:last_edited_by
]
do
...
...
@@ -23,8 +23,8 @@ describe Users::MigrateToGhostUserService do
end
context
'vulnerability_feedback author'
do
let!
(
:user
)
{
create
(
:user
)
}
let
(
:service
)
{
described_class
.
new
(
user
)
}
let!
(
:user
)
{
create
(
:user
)
}
let
(
:service
)
{
described_class
.
new
(
user
)
}
include_examples
"migrating a deleted user's associated records to the ghost user"
,
Vulnerabilities
::
Feedback
,
[
:author
]
do
let
(
:created_record
)
{
create
(
:vulnerability_feedback
,
author:
user
)
}
...
...
@@ -32,8 +32,8 @@ describe Users::MigrateToGhostUserService do
end
context
'vulnerability_feedback comment author'
do
let!
(
:user
)
{
create
(
:user
)
}
let
(
:service
)
{
described_class
.
new
(
user
)
}
let!
(
:user
)
{
create
(
:user
)
}
let
(
:service
)
{
described_class
.
new
(
user
)
}
include_examples
"migrating a deleted user's associated records to the ghost user"
,
Vulnerabilities
::
Feedback
,
[
:comment_author
]
do
let
(
:created_record
)
{
create
(
:vulnerability_feedback
,
comment_author:
user
)
}
...
...
@@ -41,8 +41,8 @@ describe Users::MigrateToGhostUserService do
end
context
'reviews'
do
let!
(
:user
)
{
create
(
:user
)
}
let
(
:service
)
{
described_class
.
new
(
user
)
}
let!
(
:user
)
{
create
(
:user
)
}
let
(
:service
)
{
described_class
.
new
(
user
)
}
include_examples
"migrating a deleted user's associated records to the ghost user"
,
Review
,
[
:author
]
do
let
(
:created_record
)
{
create
(
:review
,
author:
user
)
}
...
...
@@ -50,8 +50,8 @@ describe Users::MigrateToGhostUserService do
end
context
'requirements'
do
let!
(
:user
)
{
create
(
:user
)
}
let
(
:service
)
{
described_class
.
new
(
user
)
}
let!
(
:user
)
{
create
(
:user
)
}
let
(
:service
)
{
described_class
.
new
(
user
)
}
include_examples
"migrating a deleted user's associated records to the ghost user"
,
Requirement
,
[
:author
]
do
let
(
:created_record
)
{
create
(
:requirement
,
author:
user
)
}
...
...
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