2021-03-11 19:13:27 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module BulkImports
|
|
|
|
module Groups
|
|
|
|
module Pipelines
|
|
|
|
class LabelsPipeline
|
|
|
|
include Pipeline
|
|
|
|
|
|
|
|
extractor BulkImports::Common::Extractors::GraphqlExtractor,
|
|
|
|
query: BulkImports::Groups::Graphql::GetLabelsQuery
|
|
|
|
|
|
|
|
transformer Common::Transformers::ProhibitedAttributesTransformer
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
def load(context, data)
|
|
|
|
Labels::CreateService.new(data).execute(group: context.group)
|
|
|
|
end
|
2021-03-11 19:13:27 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|