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

Many usages are not tracked #12

Closed
bwaidelich opened this issue May 31, 2023 · 1 comment
Closed

Many usages are not tracked #12

bwaidelich opened this issue May 31, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@bwaidelich
Copy link

Looking at the code, only assets used in actual asset properties are added to the usage index.
Properties of type array<Neos\Media\Domain\Model\ImageInterface> or CustomAssetType are ignored.

More importantly, assets referenced in string properties (via asset://<uuid>) are ignored as well.

The original \Neos\Neos\Domain\Strategy\AssetUsageInNodePropertiesStrategy does that more reliably.

I would suggest to use the original mechanism to determine usages (using \Neos\ContentRepository\Domain\Repository\NodeDataRepository::findNodesByPathPrefixAndRelatedEntities()) if that's not too slow

@bwaidelich bwaidelich added the bug Something isn't working label May 31, 2023
@bwaidelich
Copy link
Author

Closing as duplicate of #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant