Closed CraigClark closed 7 months ago
@lkmorlan when you get to this, let me know if you think it will take a lot of time. We can discuss with Nicole how important it is
This is deliberate behaviour that has been in Drupal core since Drupal 6.0. The taxonomy term pagination always shows at least two root-level terms on each page. This allows dragging terms around to do whatever sorting is desired. This works fine if each root item doesn't have too many descendants. In our case, there are only a very few root terms and a huge number of total terms, so it doesn't work very well.
The relevant code is in core/modules/taxonomy/src/Form/OverviewTerms.php
; search for "Keep a variable to make sure at least 2 root elements are displayed." This code was added for Drupal issue 193333 in commit e6a88be in 2007.
We could decide to use only taxonomy_manager
, write something else, or patch core to remove this feature.
@lkmorlan I think we shouldn't fight against core unless there is a really good reason. In this case, I would consider a taxonomy like this to be edge case. I think we should document it, and in the documentation state that this taxonomy needs to be managed with taxonomy manager. I'm not that concerned about user impact since only the DC Admin has access to the taxonomies.
I'll add to the documentation and close this. Thanks for looking into it.
Assigning to myself to add documentation
Closing this. I have added an explanation to the docs see https://cat.data.fin.gov.bc.ca/documentation/information-schedule
OP timer
https://openplus.monday.com/boards/4092908516/pulses/6498638475
Describe the bug
Drupal's taxonomy overview page for information schedule.
/admin/structure/taxonomy/manage/information_schedule/overview
is not behaving as expected.This vocabulary has 2242 terms.
There is a pager at the bottom, but it does not work as expected.
If you go from page 1 to 2, you see the same terms. If you go to page 8, you see the end of the taxonomy (terms under Special), go to page 9 and you start with ARCS at the top of the list. Since ARCS is the first term, and Special > Transitory Information is the last, I would expect nothing after page 8.
I had this happen on dv14, test and dev. Prod isn't loading the page at all.
To reproduce
Steps to reproduce the behaviour:
This is just one example. Using the pager at all returns odd results no matter what you select.
Expected behaviour