EntityHooks ignore node that can only be a leaf in a microsite

Created on 10 May 2023, almost 2 years ago

Problem/Motivation

I'm working on a site that allows the page content type to be a leaf within a microsite. It is not allowed to be the parent of anything though.

The microsite EntityHooks code relies heavily on parentCandidate, thereby ignoring my page nodes when they are updated.

As a result, the cache has to be cleared for the microsite menus to be rebuilt properly.

Steps to reproduce

Create a content type that can only be a leaf within a microsite. Any insert/update/delete need to be accompanied by a cache clear for the change to be reflected in a microsite menu.

Proposed resolution

Can we leverage childOfMicrositeLookup in addition to or instead of parentCandidate?

Remaining tasks

User interface changes

none

API changes

none

Data model changes

none

πŸ› Bug report
Status

Active

Version

3.0

Component

Microsites sub-module

Created by

πŸ‡ΊπŸ‡ΈUnited States danflanagan8 St. Louis, US

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024