apostrophecms / apostrophecms/apostrophe

Reorganize to Position 1 Failing when Created at Root Level

Open
#1,106 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
4.6k
Forks
650
Avg merge
19h 21m
Merged PRs (30d)
23

Description

Version 2.36.3 and 2.39.1.

If I create a new page as a child of “Home” and open the reorganize modal, I am able to drag and drop that item to the first position and click Finished, but Apostrophe does not save the change to order and the page reverts to its previous position.

Moving the item to the second position and then dragging the first item below the second achieves the intended action.

If I create the page as a child of another page I am able to drag it to the top spot under “Home” and it retains its spot, but if I were to drag it to position 2, click finish and then try to drag it back to position 1 it exhibits the same problem.

Problem occurs with single pages and pages with children.

Contributor guide

Open the contributing guide

Research direction

The reorganize modal is the named entry point; begin by reproducing the root-level drag to position 1 and tracing the save operation for the resulting order. Done means a page created under Home, including one with children, remains in position 1 after clicking Finished, and the existing position-2-to-1 case also works.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
full-stack
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.