Skip to content
Snippets Groups Projects

Add support for querying epics with GraphQL

Merged Brett Walker requested to merge 10795-add-epic-tree-BE-epic-graphql-support into master
All threads resolved!
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -51,8 +51,9 @@ def group
# rubocop: disable CodeReuse/ActiveRecord
def init_collection
groups = if params[:iids].present?
# if we are querying for specific iids, then we should only be looking at
# those in the group, not any sub-groups (which can have identical iids)
# If we are querying for specific iids, then we should only be looking at
# those in the group, not any sub-groups (which can have identical iids).
# The `group` method takes care of checking permissions
[group]
else
groups_user_can_read_epics(group.self_and_descendants)
Loading