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

Add support for merged / moved tags #51

Open
dennisfisch opened this issue Oct 25, 2024 · 1 comment
Open

Add support for merged / moved tags #51

dennisfisch opened this issue Oct 25, 2024 · 1 comment

Comments

@dennisfisch
Copy link

TagManager automatically resolves the cq:movedTo property when fetching cq:tags of a resource. This resolution also happens when calling adapTo(Tag.class) on any resource that has such a property, returning the successor tag.

I originally wanted to implement mergeTag() and moveTag() as well, but basically hit a wall when considering this operations does not only shuffle individual tags around, but also handles whole subtrees of tags and creates copies and movedTo / backlinks relationships between them.

dennisfisch added a commit to dennisfisch/io.wcm.testing.aem-mock that referenced this issue Oct 25, 2024
@stefanseifert
Copy link
Member

can you create a PR from the work you did at https://github.com/dennisfisch/io.wcm.testing.aem-mock/tree/feature/resolve-cq-movedto-tags? then i can have a closer look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants