Don't update microsite menus if the parent doesn't change
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3322336. -->
Reported by: [larowlan](https://www.drupal.org/user/395439)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p><span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/entity_hierarchy/-/work_items/3284026" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/entity_hierarchy/-/work_items/3284026</a></span> switched from a granular approach to updating menus to a rebuild approach, however this can cause unnecessary menu rebuilds when the parent hasn't changed<br>
There is code in the EntityHooks class to prevent rebuilding on every update if the parent and weight didn't change, but the code doesn't work, so each update of a node in a microsite causes a menu regeneration</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Resave an item in a microsite, notice the menu rebuilds.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Fix the code so we don't rebuild the menu if the parent didn't change.<br>
Add tests</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Code, tests</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue