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
- Configure entity_mesh with a set of entities where some nodes do not have any incoming or outgoing links.
- Generate a report or view the visualization.
- 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-linkscategory. - 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.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Nolinks graph.png | 69.29 KB | eduardo morales alberti |
| #5 | no_links_config.png | 85.75 KB | eduardo morales alberti |
| #5 | no_links_table.png | 102.63 KB | eduardo morales alberti |
Issue fork entity_mesh-3520714
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
Comment #2
eduardo morales albertiComment #3
eduardo morales albertiComment #5
eduardo morales albertiComment #6
eduardo morales albertiComment #7
eduardo morales albertiReady to review
Comment #9
eduardo morales albertiFixed!
Comment #11
lpeidro commentedCode review and manual testing completed. Everything works as expected.