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

Duplicate categories when importing #19

Open
pursgloveb opened this issue May 24, 2019 · 1 comment
Open

Duplicate categories when importing #19

pursgloveb opened this issue May 24, 2019 · 1 comment
Assignees

Comments

@pursgloveb
Copy link

pursgloveb commented May 24, 2019

Hi,

We've noticed an issue when exporting/importing content between environments - any categories assigned to the content are duplicated and added under the same parent as the content you're importing.

To reproduce the issue:

  • Export a page from a site where that page contains categories.
  • Import the page into a different environment.
  • No errors are reported but if you then go to import data again and browse the tree you can see that the categories have been imported to the same location as the page (so in this example ‘Request a collision report’ was the page I imported under ‘Collision report’):
    c6a351d8-283c-4030-af4e-111c9a480209

However, this automatically generated folder 'Meta keywords' and the child content of the categories cannot be seen in the CMS editing tree:
f68c50b5-dcb8-4c7e-b63b-64af839dfb1c

This means that the user must use the Manage Content tool in order to remove the problem folders/categories.

Is this something you've encountered yourself and are you aware of a fix or workaround?

Thanks very much!

Bradley

@MattisOlsson MattisOlsson self-assigned this Jun 3, 2019
@MattisOlsson
Copy link
Collaborator

Hi!

I'm not able to reproduce this unfortunately. I have setup two environments with the same code and different databases, both with EpiCategories installed. I exported data from environment 1 and imported it into environment 2 and the categories are placed under "For all sites" or "For this site". However, you could try implementing your own IContentDataImporter to move the categories after import to correct location. You can see a sample here:

https://gist.github.com/MattisOlsson/3378fc702723c2d2b0f3d5347929c4ef

@MattisOlsson MattisOlsson removed the bug label Sep 2, 2019
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