Repository navigation
Show relationship type labels in the related resources manager - #13070
Open
rayondemiel wants to merge 1 commit into
Open
rayondemiel wants to merge 1 commit into
rayondemiel wants to merge 1 commit into
Conversation
A relationship whose type is a concept (such as the default "is related to") showed the concept's id in the ontology property select of the related resources manager: the select displayed the raw stored value, and get_related_resources returned no label for the inverse type. Return inverserelationshiptype_label as 8.2 does, and let the select show the stored value's label until another property is chosen. Investigation and patch prepared with Claude Code (Anthropic); reviewed and tested by the contributor.
rayondemiel
force-pushed
the
fix/ontology-select-relationship-label
branch
from
October 27, 2026 14:57
9d9bfa9 to
a2eeaca
Compare
Contributor
Author
rayondemiel
marked this pull request as ready for review
October 27, 2026 20:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Types of changes
Description of Change
In the related resources manager of a semantic graph, the ontology property select of a relationship shows a raw id (for example
ac41d9be-79db-4256-b368-2f4559cfbe55) when the stored type is a concept, such as the default "is related to".getSelect2ConfigForOntologyPropertiesuses the stored value as its displayed text, and on 8.1.xget_related_resourcesreturnsrelationshiptype_labelbut no label for the inverse type.This PR:
inverserelationshiptype_labelfromget_related_resources, as dev/8.2.x already does;labelargument togetSelect2ConfigForOntologyProperties, shown instead of the raw value until another property is chosen (other callers are unchanged);Tested on 8.1.5: the select shows "is related to" on both directions of a relationship.
Investigation and patch prepared with Claude Code (Anthropic); reviewed and tested by the contributor.
Issues Solved
No issue opened.
Checklist
Ticket Background
Further comments
Touches the same template as the related resources manager keys fix (different lines). Whether a concept type and ontology properties should share this field on semantic graphs is left to the maintainers; this PR only displays the stored value's label.