Proposal: Consider raising the default installation value for the full-width treeview's "Items per page" setting #1748
Labels
Type: bug
A flaw in the code that causes the software to produce an incorrect or unexpected result.
Milestone
Current Behavior
Context and background
The full-width treeview has a rather storied history. At some point pre-2.5, many users were reporting issues with the tree not loading at all for larger hierarchies. In Issue 12611 we adding paging for the full-width tree, starting at 50 nodes. However, any top-level description with more than 50 immediate descendants would have problems loading and correctly positioning the node view of the tree for any result outside of that initial limit.
This pre-history (and some of the subsequent steps considered) is captured in the attached PDF from 2020, which is also found on the Wishlist ticket linked below:
We later increased the pager max setting value to 10,000, and added the ability to increase even further via configuration file. See:
Current issues
Per the documentation, at installation the current max value for this pager is set by default to 50. See:
However, the problem being:
Expected Behavior
Possible Solution
I propose that we consider increasing the default Items per page value for new installations to a very high value, such as 8,000. Analysts can set this and use it during testing for the entire pre-release period, while testing with large hierarchies, to confirm it should not be an issue. If not, then a schema migration for the default fixture value can be included in a release, and the new default value raised.
This should alleviate many reports of treeview issues that turn out to be configuration problems.
Given that there are also many other options between 50 and 10,000, a compromise would be to increase it but not to the max value - for example, setting the default to 1,000, or 2,000 would still likely avoid invalid reports for all but the largest hierarchies, without rendering the setting pointless
Context and Notes
No response
Version used
2.8, but the issue is also in 2.7 / 2.6
Operating System and version
Ubuntu 20.04
Default installation culture
en (but affects all)
PHP version
PHP 7.4
Contact details
No response
The text was updated successfully, but these errors were encountered: