Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ProductExportStrategy #1266

Closed
4 tasks
fPolic opened this issue Mar 28, 2022 · 2 comments
Closed
4 tasks

Implement ProductExportStrategy #1266

fPolic opened this issue Mar 28, 2022 · 2 comments
Assignees

Comments

@fPolic
Copy link
Contributor

fPolic commented Mar 28, 2022

  • add ProductExportHandler class for processing products batch export which implements the common batch job handler interface

  • depends on: Interface for BatchJob strategies #1264

  • given a context e.g. filters to apply when retrieving products + columns to include in the export the handler should build and stream data in csv format

  • ProductExportStrategy should report progress to the BatchJobService

  • ProductExportStrategy should implement the AbstractBatchJobStrategy

  • ProductExportStrategy should dynamically figure out how many columns it will need to include all the data about the products in the batch. E.g. how many Product Option columns are necessary, image columns, etc.

Columns that should be supported:

  • Product Handle
  • Product Title
  • Product Subtitle
  • Product Description
  • Product Status
  • Product Option Name [1-*]
  • Image [1-*]
  • Thumbnail
  • Profile [match by name]
  • Product [Weight - length - width - height]
  • Product [hs code, origin country, mid code, material]
  • Product Collection [match by name; upsert if none exists]
  • Product Type [match by name; upsert if none exists]
  • Product Tags [comma separated string]
  • Discountable
  • External ID
  • Variant Title
  • SKU
  • Barcode
  • Inventory Quantity
  • Allow backorder
  • manage inventory
  • Variant Option Value [0-*]
  • Variant [Weight - length - width - height]
  • Variant [hs code, origin country, mid code, material]
  • Price DKK
  • Price EUR
  • Price [currency code]
  • Price [region name]
@srindom
Copy link
Collaborator

srindom commented Mar 29, 2022

  • given a context e.g. filters to apply when retrieving products + columns to include in the export the handler should build and stream data in csv format
  • ProductExportStrategy should report progress to the BatchJobService
  • ProductExportStrategy should implement the AbstractBatchJobStrategy
  • ProductExportStrategy should dynamically figure out how many columns it will need to include all the data about the products in the batch. E.g. how many Product Option columns are necessary, image columns, etc.

Columns that should be supported:

  • Product Handle
  • Product Title
  • Product Subtitle
  • Product Description
  • Product Status
  • Product Option Name [1-*]
  • Image [1-*]
  • Thumbnail
  • Profile [match by name]
  • Product [Weight - length - width - height]
  • Product [hs code, origin country, mid code, material]
  • Product Collection [match by name; upsert if none exists]
  • Product Type [match by name; upsert if none exists]
  • Product Tags [comma separated string]
  • Discountable
  • External ID
  • Variant Title
  • SKU
  • Barcode
  • Inventory Quantity
  • Allow backorder
  • manage inventory
  • Variant Option Value [0-*]
  • Variant [Weight - length - width - height]
  • Variant [hs code, origin country, mid code, material]
  • Price DKK
  • Price EUR
  • Price [currency code]
  • Price [region name]

@olivermrbl olivermrbl changed the title Implement ProductExportHandler Implement ProductExportStrategy May 9, 2022
@adrien2p adrien2p self-assigned this Jun 1, 2022
@pKorsholm pKorsholm linked a pull request Jun 6, 2022 that will close this issue
@olivermrbl
Copy link
Contributor

Solved in #1688

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants