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
491094c6
Commit
491094c6
authored
Feb 04, 2021
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
General improvements to board lists resolver
parent
5a8f41fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
app/graphql/resolvers/board_lists_resolver.rb
app/graphql/resolvers/board_lists_resolver.rb
+4
-3
No files found.
app/graphql/resolvers/board_lists_resolver.rb
View file @
491094c6
...
...
@@ -28,7 +28,7 @@ module Resolvers
context
.
scoped_set!
(
:issue_filters
,
issue_filters
(
issue_filters
))
if
load_preferences?
(
lookahead
)
List
.
preload_preferences_for_user
(
lists
,
c
ontext
[
:current_user
]
)
List
.
preload_preferences_for_user
(
lists
,
c
urrent_user
)
end
offset_pagination
(
lists
)
...
...
@@ -39,7 +39,7 @@ module Resolvers
def
board_lists
(
id
)
service
=
::
Boards
::
Lists
::
ListService
.
new
(
board
.
resource_parent
,
c
ontext
[
:current_user
]
,
c
urrent_user
,
list_id:
extract_list_id
(
id
)
)
...
...
@@ -47,7 +47,8 @@ module Resolvers
end
def
load_preferences?
(
lookahead
)
lookahead
&
.
selection
(
:edges
)
&
.
selection
(
:node
)
&
.
selects?
(
:collapsed
)
lookahead
&
.
selection
(
:edges
)
&
.
selection
(
:node
)
&
.
selects?
(
:collapsed
)
||
lookahead
&
.
selection
(
:nodes
)
&
.
selects?
(
:collapsed
)
end
def
extract_list_id
(
gid
)
...
...
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