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
f53ea36d
Commit
f53ea36d
authored
Mar 09, 2022
by
Valerie Burton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary group reloads
parent
85bcc222
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
spec/support/shared_examples/namespaces/traversal_scope_examples.rb
...rt/shared_examples/namespaces/traversal_scope_examples.rb
+0
-20
No files found.
spec/support/shared_examples/namespaces/traversal_scope_examples.rb
View file @
f53ea36d
...
...
@@ -128,11 +128,6 @@ RSpec.shared_examples 'namespace traversal scopes' do
context
'with offset and limit'
do
subject
{
described_class
.
where
(
id:
[
deep_nested_group_1
,
deep_nested_group_2
]).
order
(
:traversal_ids
).
offset
(
1
).
limit
(
1
).
self_and_ancestors
}
before
do
deep_nested_group_1
.
reload
deep_nested_group_2
.
reload
end
it
{
is_expected
.
to
contain_exactly
(
group_2
,
nested_group_2
,
deep_nested_group_2
)
}
end
...
...
@@ -197,11 +192,6 @@ RSpec.shared_examples 'namespace traversal scopes' do
.
pluck
(
:id
)
end
before
do
deep_nested_group_1
.
reload
deep_nested_group_2
.
reload
end
it
{
is_expected
.
to
contain_exactly
(
group_2
.
id
,
nested_group_2
.
id
,
deep_nested_group_2
.
id
)
}
end
end
...
...
@@ -253,11 +243,6 @@ RSpec.shared_examples 'namespace traversal scopes' do
context
'with offset and limit'
do
subject
{
described_class
.
where
(
id:
[
group_1
,
group_2
]).
order
(
:traversal_ids
).
offset
(
1
).
limit
(
1
).
self_and_descendants
}
before
do
group_1
.
reload
group_2
.
reload
end
it
{
is_expected
.
to
contain_exactly
(
group_2
,
nested_group_2
,
deep_nested_group_2
)
}
end
...
...
@@ -311,11 +296,6 @@ RSpec.shared_examples 'namespace traversal scopes' do
.
pluck
(
:id
)
end
before
do
group_1
.
reload
group_2
.
reload
end
it
{
is_expected
.
to
contain_exactly
(
group_2
.
id
,
nested_group_2
.
id
,
deep_nested_group_2
.
id
)
}
end
end
...
...
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