Class: Resolvers::Analytics::CycleAnalytics::BaseIssueResolver
- Inherits:
-
BaseCountResolver
- Object
- GraphQL::Schema::Resolver
- BaseResolver
- BaseCountResolver
- Resolvers::Analytics::CycleAnalytics::BaseIssueResolver
- Defined in:
- app/graphql/resolvers/analytics/cycle_analytics/base_issue_resolver.rb
Direct Known Subclasses
Class Method Summary collapse
-
.[](context = :project) ⇒ Object
:project level: no customization, returning the original resolver :group level: add the project_ids argument.
Instance Method Summary collapse
Methods inherited from BaseCountResolver
Methods inherited from BaseResolver
as_single, authorization, authorized?, before_connection_authorization, before_connection_authorization_block, calculate_ext_conn_complexity, calls_gitaly!, complexity, complexity_multiplier, #current_user, field_options, last, #object, #offset_pagination, requires_argument!, resolver_complexity, #select_result, single, #single?, single_definition_blocks, singular_type, when_single
Methods included from Gitlab::Utils::Override
#extended, extensions, #included, #method_added, #override, #prepended, #queue_verification, verify!
Class Method Details
.[](context = :project) ⇒ Object
:project level: no customization, returning the original resolver :group level: add the project_ids argument
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'app/graphql/resolvers/analytics/cycle_analytics/base_issue_resolver.rb', line 31 def self.[](context = :project) case context when :project self when :group Class.new(self) do argument :project_ids, [GraphQL::Types::ID], required: false, description: 'Project IDs within the group hierarchy.' define_method :finder_params do { group_id: object.id, include_subgroups: true } end end end end |
Instance Method Details
#finder_params ⇒ Object
25 26 27 |
# File 'app/graphql/resolvers/analytics/cycle_analytics/base_issue_resolver.rb', line 25 def finder_params { project_id: object.project.id } end |