Class: Resolvers::WorkItems::UserWorkItemsResolver
- Inherits:
-
BaseResolver
- Object
- GraphQL::Schema::Resolver
- BaseResolver
- Resolvers::WorkItems::UserWorkItemsResolver
- Defined in:
- app/graphql/resolvers/work_items/user_work_items_resolver.rb
Constant Summary collapse
- NON_FILTER_ARGUMENTS =
%i[sort lookahead].freeze
Constants included from WorkItems::SharedFilterArguments
WorkItems::SharedFilterArguments::MAX_IDS_LIMIT
Constants included from Gitlab::Graphql::Authorize::AuthorizeResource
Gitlab::Graphql::Authorize::AuthorizeResource::ConfigurationError, Gitlab::Graphql::Authorize::AuthorizeResource::RESOURCE_ACCESS_ERROR
Instance Method Summary collapse
Methods included from WorkItems::SharedFilterArguments
Methods included from Gitlab::Utils::Override
#extended, extensions, #included, #method_added, #override, #prepended, #queue_verification, verify!
Methods included from Gitlab::Graphql::Authorize::AuthorizeResource
#authorize!, #authorized_find!, #authorized_resource?, #find_object, #raise_resource_not_available_error!
Methods inherited from BaseResolver
as_single, authorization, authorized?, before_connection_authorization, before_connection_authorization_block, calculate_ext_conn_complexity, calls_gitaly!, calls_gitaly?, complexity, complexity_multiplier, #current_user, last, #object, #offset_pagination, requires_argument!, requires_argument?, resolver_complexity, #select_result, single, #single?, single_definition_blocks, singular_type, when_single
Instance Method Details
#ready?(**args) ⇒ Boolean
24 25 26 27 28 29 30 31 |
# File 'app/graphql/resolvers/work_items/user_work_items_resolver.rb', line 24 def ready?(**args) unless filter_provided?(args) raise Gitlab::Graphql::Errors::ArgumentError, _('You must provide at least one filter argument for this query') end super end |
#resolve_with_lookahead(**args) ⇒ Object
33 34 35 |
# File 'app/graphql/resolvers/work_items/user_work_items_resolver.rb', line 33 def resolve_with_lookahead(**args) apply_lookahead(::WorkItems::WorkItemsFinder.new(current_user, prepare_finder_params(args)).execute) end |