- 🇬🇧United Kingdom jaydenpearly
Patch applied but it still counts previous versions. If there are 4 revisions, it shows 1 usage as like 4.
For the site I'm working on we need a usage-count filter in the media view. Unfortunately, the current solution has no easy way to distinguish between usage in a previous or the latest revision.
Track usages of revisionable entities. Add a view with a filter on the sum of count or count/distinct of source_id. The usages of previous versions are also counted.
Track 'is latest revision' in the entity_usage table.
Review, tests, etc
None
\Drupal\entity_usage\EntityUsage::registerUsage method signature has changed.
New column in the entity_usage table 'source_is_latest_revision'
Needs review
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Patch applied but it still counts previous versions. If there are 4 revisions, it shows 1 usage as like 4.