What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

how are caregories imported today? I do not see them in `data:import` list, there's category-templat

UK5DS29L2
UK5DS29L2 Posts: 546 🧑🏻‍🚀 - Cadet

how are caregories imported today? I do not see them in data:import list, there's category-template, but not category

Comments

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    edited September 2019

    console data:import -h

    Run data:import:dump to see all applied DataImporter.
    

    console data:import category
    It imports data from vendor/spryker/category-data-import/data/import/category.csv

  • UK5DS29L2
    UK5DS29L2 Posts: 546 🧑🏻‍🚀 - Cadet

    hm, category is not there though

  • UK5DS29L2
    UK5DS29L2 Posts: 546 🧑🏻‍🚀 - Cadet
    edited September 2019

    I've added Spryker\Zed\CategoryDataImport\Communication\Plugin\CategoryDataImportPlugin to console provider so it's there now

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    It should have been defined in \Pyz\Zed\DataImport\DataImportDependencyProvider::getDataImporterPlugins

        protected function getDataImporterPlugins(): array
        {
            return [
                [new CategoryDataImportPlugin(), DataImportConfig::IMPORT_TYPE_CATEGORY_TEMPLATE],
    
    
  • UK5DS29L2
    UK5DS29L2 Posts: 546 🧑🏻‍🚀 - Cadet

    that's category-template, not category

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    I searched where it’s defined in our suite-based demoshop by CategoryDataImportPlugin and this is the correct one it seems.

    But I’m not a developer ofc.