Add a method to retrieve a single ancestry for terms with multiple parents

Created on 31 August 2016, over 8 years ago
Updated 30 January 2024, 11 months ago

Problem/Motivation

When a term has multiple parents, the return value from TermStorage::loadAllParents() does not contain enough information to make out a proper ancestry (it just contains all possible parents).

This issue is demonstrated in the SHS module ( #2288035: Doesn't work properly with terms that have multiple parents β†’ ), where a separate helper function will be used to determine a single ancestry.

Proposed resolution

Add a new method to TermStorage (or alternatively, a second parameter to the loadAllParents()) to retrieve the first ancestry found for a term with multiple parents.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
TaxonomyΒ  β†’

Last updated 2 days ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @xjm
  • πŸ‡¬πŸ‡§United Kingdom @catch
Created by

πŸ‡ΊπŸ‡ΈUnited States jhedstrom Portland, OR

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.

Production build 0.71.5 2024