Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There are lots of issues related to improving the Taxonomy API, and some overlap:
- #1337008: Reduce taxonomy_get_tree() memory by only storing parents for terms that have a parent
- #106015: [performance] DB caching for \Drupal\taxonomy\TermStorageController::loadTree()
- #1329554: INSERT instead of UPDATE in taxonomy_term_save() when $term->tid is not found (not so sure about that one)
- #698918: Reduce memory usage from \Drupal\taxonomy\TermStorageInterface::loadTree() when parent is specified
- #1207326: Refactor taxonomy hierarchy API for performance, consistency, and convenience
- #251595: Add taxonomy_term_load_descendents()
- #499144: taxonomy_get_tree() generates data almost, but not quite, useful in taxonomy_save_term()
- #1175156: Tests for $term->parent in Term::save()
- #1139862: taxonomy_get_children always returns nothing for $tid = 0
- #569326: Add hook_taxonomy_vocabulary_info()
- #549898: Machine readable names for taxonomy terms
- #607492: taxonomy_select_nodes() no longer supports multiple terms
- #217676: taxonomy_term_load_parents_all() doesn't work correctly with multiple hierarchy terms
- #353775: Vocabulary edit form resets the 'hierarchy' (D7) field to '0' and 'relations' field (D6) to '1'
- #2858753: Drupal should prevent taxonomy term heirarchy loops at the data model layer
- #2543726: Make $term->parent behave like any other entity reference field, to fix REST and Migrate support and de-customize its Views integration
Comments
Comment #0.0
BerdirUpdated issue summary.
Comment #0.1
Panchoadd two more
Comment #0.2
Panchoadded #16514
Comment #1
xjmAny plain API improve-ifying should be postponed to 8.1.x now at least, assuming a BC layer can be provided.
I removed all the closed issues from the summary, but individual outstanding children here should be triaged too.
Comment #5
yareckon CreditAttribution: yareckon commentedComment #6
colan#267855: Provide an entity hierarchy API would definitely help with some of this.