Skip to content

[8.2-stable] Fix not searchable parent pages - #79

Merged
tvdeyen merged 2 commits into
8.2-stablefrom
backport/8.2-stable/pr-78
May 22, 2026
Merged

tvdeyen merged 2 commits into
8.2-stablefrom
backport/8.2-stable/pr-78

Conversation

@alchemycms-bot

Copy link
Copy Markdown

Backport

This will backport the following commits from main to 8.2-stable:

Questions ?

Please refer to the Backport tool documentation

The index could also contain elements that are had hidden or not searchable parent elements. To avoid this the searchable? method has to travers the element tree up and test if all parents are visible and searchable.
The new method "parent_elements_searchable?" is only testing for searchable and public? of the parent element. This avoids the look up to the page and page_version, because these objects are the same for all parent_elements.

(cherry picked from commit 27f4f19)
The searchable? method for elements is including page, page_version, and the parent elements. The include statement improve the rebuilding performance.

(cherry picked from commit 15ef9c3)
@tvdeyen
tvdeyen merged commit e1d32ba into 8.2-stable May 22, 2026
2 checks passed
@tvdeyen
tvdeyen deleted the backport/8.2-stable/pr-78 branch May 22, 2026 08:25
@alchemycms-bot alchemycms-bot Bot mentioned this pull request May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants