Reorder children saves every revision needlessly
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #2904307. --> Reported by: [larowlan](https://www.drupal.org/user/395439) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The entity tree node mapper loads every revision of a node, so we end up with an \SplObjectStorage object containing all previous revisions.<br> When we reorder the tree, we end up saving all of them with the new weight.<br> This creates unexpected results and ends up doing a lot more work than is necessary.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Only work on default revisions.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>Test<br> Fix</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