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

Unable to sync spaces when new root is created #122

Open
nkooman-bzs opened this issue Jan 23, 2025 · 1 comment
Open

Unable to sync spaces when new root is created #122

nkooman-bzs opened this issue Jan 23, 2025 · 1 comment

Comments

@nkooman-bzs
Copy link
Contributor

Brief bug description

When syncing a space that links a new web spotlight root, the operation fails since there is no matching item in the target environment.

Repro steps

  1. Create a new space that links a new root.
  2. Sync spaces
  3. See an error like the following "The referenced root item '{codename: root}' was not found. Provide a reference to an existing root item."

Expected behavior

Preferably I'd like to see the root item synced. However, I understand that this may not be in line with the expectations of the sync command.

Test environment

Additional context

If we were to create an item if there's a new root, it would need to happen after content type updates, but before spaces. This is an issue since these operations are in the opposite order in the current implementation.

Screenshots

N/A

@IvanKiral
Copy link
Contributor

Hey @nkooman-bzs.

you are right, this will not work, as the item is missing and the sync command does not sync items. I am unsure whether this fits the sync context because we have the migrate-content command. I will need to think about this a little because there might be a switch option that will at least create an empty item (no language variant). This would need to happen after the creation of all content types.

In the meantime, you can probably use a combination of sync and migrate-content commands. You can sync the content types and their dependencies first, then you can migrate the root content item and lastly, you can sync the spaces. I know this consists of three steps, however, you can write a script using the functions data-ops provides.

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

No branches or pull requests

2 participants