Views integration: usage of the latest source revisions

Created on 26 March 2019, over 5 years ago
Updated 28 August 2024, 4 months ago

Problem/Motivation

As a follow up of Improve list usage page β†’ we should improve the views integration by allowing to display usage of the latest source revisions only (1 row per source type / source ID) to inform about usage per source entity. Currently you are only able to display usage count of all source revisions by following this steps:

  1. Create a view that has as base table any content entity (Node, User, Etc)
  2. Add a relationship to your view named
  3. "Information about the usage of this @entity_type"
  4. After adding the relationship, add the field to your view: "Usage count"
  5. You will probably want to enable aggregation, to avoid duplicate rows and have the real count sum. To do that, go to the "Advanced" section of the view configuration, select "Use aggregation" to "Yes"
  6. Go to the "Usage count" field you added before, open up the "Aggregation settings" form, and select "SUM"

Proposed resolution

  1. Add a relationship to usage count of latest source revisions
  2. Update documentation: https://www.drupal.org/docs/8/modules/entity-usage/installation-and-basi... β†’
✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany pminf Nuremburg (Germany), formerly Dresden

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States scotwith1t Birmingham, AL

    +1 for this patch to make views integration more useful. counting the # of revisions it's used in and then linking to a page which shows way less results in most cases was very confusing and this views patch makes it possible to set up a view for the client that they can make sense of. Thanks!

  • Status changed to Needs review 4 months ago
  • πŸ‡ΊπŸ‡ΈUnited States cgmonroe

    Needed to generate a view of last revision usage stats that was sort-able / filerable by usage.

    Here's a patch that make the source_id sortable and filterable as well.

Production build 0.71.5 2024