Skip to content

Cannot import Kickstart without webspotlight exclusion #19

@mberry1989

Description

@mberry1989

Brief bug description

npm run model:import --filename="scripts/backups/kickstart-base-new.zip" fails in newly generated projects due to the removal of Web Spotlight from the product.

Error:

...
pathname: '/v2/projects/efd35e99-0f03-00ea-7ec1-527eec298474/web-spotlight/status',
...
 data: {
        request_id: '9af40f76e88baf83',
        error_code: 16,
        message: 'You do not have sufficient permissions to perform requested action.'
      }
    },
    status: 403

Repro steps

  1. Generate a new Kickstart project
  2. Clone the repo
  3. Run the model:import command per the Learn documentation
  4. See error

Expected behavior

Import cmd imports content model and sample items.

Additional context

Adding an exclusion to the import scripts allows the clean and import to run successfully.

await cleanEnvironment({
  environmentId,
  apiKey: mapiKey,
  exclude: ["previewUrls", "webSpotlight"]
});

await restoreEnvironment({
  environmentId,
  apiKey: mapiKey,
  fileName: process.env.npm_config_filename,
  exclude: ["previewUrls", "webSpotlight"]
});

This change will need to be propagated to both Business and Technical Kickstart experiences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions