-
-
Notifications
You must be signed in to change notification settings - Fork 186
Description
Describe the bug
When opening a "Change Status" dialog in the Panel, it sometimes takes seconds to load. Looking at the API responses happening, I suspect its because it's loading every sibling, even though for the specific template in question, siblings seems completely unnecessary.
To Reproduce
Steps to reproduce the behavior:
- Have a template that uses automatic numbering in the Blueprint, such as:
num: '{{ page.created.toDate("YmdHi", "now") }}'- Within a
pagessection, click on a status change button to bring up the dialog.
The Panel loads an AJAX call such as:
https://thestreamable.com/api/pages/news+test-post?select=id,status,num,errors,siblings,blueprint
This response has hundreds of siblings (for our site). Normally the siblings would be used to indicate where the post in question should be ordered into. However, because numbering is set to automatic, the siblings are never displayed on this page are seemingly unneeded.
I think the burden of loading almost ~1500 pages is too strenuous in this situation. Can there be an optimization to exclude siblings when they're not needed? Or, at least somehow speed it up (by maybe avoid reading the text fields for actual title content).
Kirby Version
3.2.4