title | issue | author | author_email | author_github |
---|---|---|---|---|
Implement new profile from CSV wizard |
NEXT-16083 |
Malte Janz |
Malte Janz |
- Added
Shopware\Core\Content\ImportExport\Service\MappingService
which provides functionality to create a CSV template for a given profile or create a mapping for a given CSV file. - Added
Shopware\Core\Content\ImportExport\Service\FileService
which provides functionality regarding import / export files (these were mostly private functions inside theImportExportService
before). - Added
FileEmptyException
andInvalidFileContentException
which may be thrown during mapping creation from existing CSV file in theMappingService
- Changed
Shopware\Core\Content\ImportExport\Service\ImportExportService
to use theFileService
(constructor parameters changed) - Changed
Shopware\Core\Content\ImportExport\ImportExport
to use theFileService
(constructor parameters changed) - Changed
Shopware\Core\Content\ImportExport\ImportExportFactory
to use theFileService
(constructor parameters changed) - Changed
Shopware\Core\Content\ImportExport\Controller\ImportExportActionController
to use theMappingService
(constructor parameters changed) - Deprecated
updateFile
method insideShopware\Core\Content\ImportExport\Service\ImportExportService
. UseFileService->updateFile(...)
instead.
- Added
POST
endpoint at/api/_action/import-export/mapping-from-template
inShopware\Core\Content\ImportExport\Controller\ImportExportActionController
. This endpoint uses asourceEntity
,delimiter
,enclosure
and CSV-file
to construct and return a mapping array.
- Added
sw-import-export-new-profile-wizard
component - Added
sw-import-export-new-profile-wizard-csv-page
component - Added
sw-import-export-new-profile-wizard-general-page
component - Added
sw-import-export-new-profile-wizard-mapping-page
component - Added
getMappingFromTemplate
method toimportExport.service.js
, which uses the new endpoint. - Changed
sw-import-export-view-profiles
component to show thesw-import-export-new-profile-wizard
when creating a new profile instead of thesw-import-export-edit-profile-modal
. - Changed
sw-import-export-edit-profile-modal
component to be visible based on newshow
property (defaults totrue
).