debian-mirror-gitlab/app/graphql/resolvers/concerns/group_issuable_resolver.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
640 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# frozen_string_literal: true
module GroupIssuableResolver
extend ActiveSupport::Concern
2022-05-07 20:08:51 +05:30
included do
argument :include_subgroups, GraphQL::Types::Boolean,
required: false,
default_value: false,
description: "Include #{issuable_collection_name} belonging to subgroups"
argument :include_archived, GraphQL::Types::Boolean,
required: false,
default_value: false,
description: "Return #{issuable_collection_name} from archived projects"
end
def resolve(**args)
args[:non_archived] = !args.delete(:include_archived)
super
2021-01-03 14:25:43 +05:30
end
end