Bug #12520

Term index page shows all child terms without paging

Added by Mike Cantelon 5 months ago. Updated 5 months ago.

Status:NewStart date:10/17/2018
Priority:MediumDue date:
Assignee:-% Done:


Category:Taxonomy / Term
Target version:-
Google Code Legacy ID: Tested version:2.4, 2.5
Sponsored:No Requires documentation:


The term index page will load and display a term's children, no matter how many, using the ORM. This consumes a lot of memory and can result in the page not rendering, due to the memory being used up, or the page loading slowly.

To remedy this we could display a count of the term's children as part of text for a link that will lead to a new "browse children" page. This page will be similar to the taxonomy index page: a pageable hitlist of terms. We'll need to add parentId to the ElasticSearch mapping for terms.


#1 Updated by Mike Cantelon 5 months ago

I'd estimate 8-16 hours or so to create this new page. Maybe we could keep the existing way of displaying them if the number of terms is equal to or less than our paging limit setting, otherwise offer the link.

#2 Updated by Dan Gillean 5 months ago

  • Subject changed from Term index page shows allow child terms without paging to Term index page shows all child terms without paging
  • Target version deleted (Release 2.5.0)
  • Tested version 2.4, 2.5 added

Hi Mike!

Couple of thoughts. First, I've removed the target version for now - we are only adding a target version when we are certain something is going into a release (i.e. a dev has already done the work, or a client is sponsoring it and it's in our queue). I've added the tested version instead, so we have a sense of what release(s) this is/was relevant for in the future.

Second, the term index/view page does already have a count of narrower terms, in the right-hand context menu.

Ideally, I'd like to avoid having to send the user to a different page without at least providing some results. Is there any way that AJAX loading could help us here? I.e. display 10 results, and add an AJAX pager for the rest? Not sure, bc it is in the body of the term view.... or a "view more" option that will load the next 10, and a view all option that will take the user to a separate page... just some alternative ideas!

#3 Updated by Mike Cantelon 5 months ago

Thanks Dan... yeah, we could definitely do it with AJAX.

Also available in: Atom PDF