Expose epics blocking information in GraphQL
To be able to display when an epic is blocked or blocking other epics (see &7546 (comment 869623833)) we need to expose the following fields in EpicType
:
field :blocked, GraphQL::Types::Boolean, null: false,
description: 'Indicates the epic is blocked.'
field :blocking_count, GraphQL::Types::Int, null: false,
method: :blocking_epics_count,
description: 'Count of epics this epic is blocking.'
field :blocked_by_count, GraphQL::Types::Int, null: true,
description: 'Count of epics blocking this epic.'
field :blocked_by_epics, ::Types::IssueType.connection_type, null: true,
description: 'Epics blocking this epic.',
complexity: 5
As the blocking functionality mirrors the one for related issues, see previous implementation in !46303 (merged) and !54152 (merged)
Tasks
-
Expose blocking/blocked epics properties on GraphQL [!87830 (merged)] -
Add a lazy loader for blocking_epics_count
[!89632 (merged)]
Edited by Eugenia Grieff