modmore / Gitify

Command line toolkit to make managing a MODX site in git a lot easier.
MIT License
122 stars 55 forks source link

Prevent category names in elements extract #443

Closed wuuti closed 11 months ago

wuuti commented 1 year ago

What does it do ?

Do not extract category names into elements any more, instead keep the ids. In order to not introduce a BC suddenly to existing installations, adds a config option category_ids_in_elements which needs to be set to true in .gitify file to activate ids in favor of names.

Why is it needed ?

There are problems when categories have the same names.

Related issue(s)/PR(s)

I see that just as an intermediate solution - i prefer having https://github.com/modmore/Gitify/issues/165 being implemented, as this would give much more file "overview" in larger projects and reflect the tree like structure in the manager better (same as with resources/content, which is already extracted into folders)

muzzwood commented 11 months ago

Looks to be working as intended when category_ids_in_elements: true is added to the .gitify file. Thanks for the PR @wuuti !