summaryrefslogtreecommitdiff
path: root/lib/bulk_imports/groups/pipelines/labels_pipeline.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bulk_imports/groups/pipelines/labels_pipeline.rb')
-rw-r--r--lib/bulk_imports/groups/pipelines/labels_pipeline.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/bulk_imports/groups/pipelines/labels_pipeline.rb b/lib/bulk_imports/groups/pipelines/labels_pipeline.rb
index 0dc4a968b84..1dd74c10b65 100644
--- a/lib/bulk_imports/groups/pipelines/labels_pipeline.rb
+++ b/lib/bulk_imports/groups/pipelines/labels_pipeline.rb
@@ -4,16 +4,11 @@ module BulkImports
module Groups
module Pipelines
class LabelsPipeline
- include Pipeline
+ include NdjsonPipeline
- extractor BulkImports::Common::Extractors::GraphqlExtractor,
- query: BulkImports::Groups::Graphql::GetLabelsQuery
+ relation_name 'labels'
- transformer Common::Transformers::ProhibitedAttributesTransformer
-
- def load(context, data)
- Labels::CreateService.new(data).execute(group: context.group)
- end
+ extractor ::BulkImports::Common::Extractors::NdjsonExtractor, relation: relation
end
end
end