here is a full vid on how the categories are organized at my dev environment:
But after cleaning the database and migrating to a new environment, I don’t get any of the categories and everything gets dumped into another category, and the structure I have on my local gets lost:
as you can see it has the right category on the yml file, but not on modx, Im guessing it could be something related to the fact that gitify is using strings instead of id’s to locate the category, already tried updating the primary key definition on the .gitify file to use the id without luck?
Hi there @halftrainedharry thanks for answering, and yes, I also extract the categories, I think the issue is that we have duplicated names for categories, for instance, we have things like definitions under several sections of the app
Yes, if you have a whole tree of categories and some categories with different parents have the same name, if would make sense that the import breaks.
As only the category-name gets stored in the YAML file, the information about the parent is lost.
Relying instead on the category-ID may also create problems, as the same category may have a different ID on the new system (as this is an auto-increment column).
To solve this issue, you probably have to change the code (extract & build), to output the whole “path” of the category (category-name of all the parents + category-name of the child) instead of just the name.