Problem/Motivation

The entity_mesh module currently saves only those target entities that have at least one link or connection from a source entity. As a result, entities that have no relationships (i.e., targets with no links) are not included in the report or visualization. This limitation makes it difficult to identify isolated entities, which is important for understanding disconnected or orphaned nodes within the data set.

Steps to reproduce

  1. Configure entity_mesh with a set of entities where some nodes do not have any incoming or outgoing links.
  2. Generate a report or view the visualization.
  3. Observe that entities with no links are missing from the output.

Proposed resolution

Enhance the report generation and visualization logic so that all target entities are included, even if they have no links. For entities with no links, add them to the report and assign them a new category, such as no-links, for sources with no connections. This will allow users to easily identify entities that are not related to any other nodes in the mesh, improving data completeness and supporting further analysis or cleanup.

Remaining tasks

  • Update the data retrieval logic to include all entities, not just those with links.
  • Modify the report and visualization to display nodes with no links, marking them with the no-links category.
  • Ensure that the UI or report format clearly distinguishes these isolated entities.
  • Test with different data sets to confirm correct behavior.
  • Update any relevant documentation to describe the new behavior.

User interface changes

Nodes with no links will be displayed in the report, grouped or labeled under a new category called no-links. This improves the user's ability to detect and review disconnected entities.

API changes

None expected.

Data model changes

None expected.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

eduardo morales alberti’s picture

Assigned: Unassigned » eduardo morales alberti
eduardo morales alberti’s picture

Version: 1.x-dev » 2.x-dev

eduardo morales alberti’s picture

StatusFileSize
new102.63 KB
new85.75 KB
new69.29 KB
  • Added new no-links category:
    No-links table
  • Added new configuration to track no-links entities:
    No links configuration
  • Change the node red if there are no links on the graph:
    No-links graph
eduardo morales alberti’s picture

Status: Active » Needs review
eduardo morales alberti’s picture

Ready to review

eduardo morales alberti’s picture

Status: Needs review » Fixed

Fixed!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

lpeidro’s picture

Code review and manual testing completed. Everything works as expected.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.