{"action":"created","issue":{"url":"https://api.github.com/repos/divio/django-cms/issues/5107","repository_url":"https://api.github.com/repos/divio/django-cms","labels_url":"https://api.github.com/repos/divio/django-cms/issues/5107/labels{/name}","comments_url":"https://api.github.com/repos/divio/django-cms/issues/5107/comments","events_url":"https://api.github.com/repos/divio/django-cms/issues/5107/events","html_url":"https://github.com/divio/django-cms/issues/5107","id":143898256,"number":5107,"title":"All sibling pages unpublished when new sibling moves in","user":{"login":"jsma","id":24574,"avatar_url":"https://avatars.githubusercontent.com/u/24574?v=3","gravatar_id":"","url":"https://api.github.com/users/jsma","html_url":"https://github.com/jsma","followers_url":"https://api.github.com/users/jsma/followers","following_url":"https://api.github.com/users/jsma/following{/other_user}","gists_url":"https://api.github.com/users/jsma/gists{/gist_id}","starred_url":"https://api.github.com/users/jsma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsma/subscriptions","organizations_url":"https://api.github.com/users/jsma/orgs","repos_url":"https://api.github.com/users/jsma/repos","events_url":"https://api.github.com/users/jsma/events{/privacy}","received_events_url":"https://api.github.com/users/jsma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/divio/django-cms/labels/kind:%20bug","name":"kind: bug","color":"c7def8"}],"state":"closed","locked":false,"assignee":{"login":"czpython","id":994951,"avatar_url":"https://avatars.githubusercontent.com/u/994951?v=3","gravatar_id":"","url":"https://api.github.com/users/czpython","html_url":"https://github.com/czpython","followers_url":"https://api.github.com/users/czpython/followers","following_url":"https://api.github.com/users/czpython/following{/other_user}","gists_url":"https://api.github.com/users/czpython/gists{/gist_id}","starred_url":"https://api.github.com/users/czpython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czpython/subscriptions","organizations_url":"https://api.github.com/users/czpython/orgs","repos_url":"https://api.github.com/users/czpython/repos","events_url":"https://api.github.com/users/czpython/events{/privacy}","received_events_url":"https://api.github.com/users/czpython/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/divio/django-cms/milestones/43","html_url":"https://github.com/divio/django-cms/milestones/3.2.x","labels_url":"https://api.github.com/repos/divio/django-cms/milestones/43/labels","id":1389260,"number":43,"title":"3.2.x","description":"","creator":{"login":"mkoistinen","id":615759,"avatar_url":"https://avatars.githubusercontent.com/u/615759?v=3","gravatar_id":"","url":"https://api.github.com/users/mkoistinen","html_url":"https://github.com/mkoistinen","followers_url":"https://api.github.com/users/mkoistinen/followers","following_url":"https://api.github.com/users/mkoistinen/following{/other_user}","gists_url":"https://api.github.com/users/mkoistinen/gists{/gist_id}","starred_url":"https://api.github.com/users/mkoistinen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkoistinen/subscriptions","organizations_url":"https://api.github.com/users/mkoistinen/orgs","repos_url":"https://api.github.com/users/mkoistinen/repos","events_url":"https://api.github.com/users/mkoistinen/events{/privacy}","received_events_url":"https://api.github.com/users/mkoistinen/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":27,"state":"open","created_at":"2015-11-02T15:54:55Z","updated_at":"2016-04-06T15:28:02Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2016-03-28T05:39:13Z","updated_at":"2016-04-06T15:28:02Z","closed_at":"2016-04-06T15:28:02Z","body":"Just uncovered a very nasty bug which will unpublish all siblings when a new sibling is moved in.\r\n\r\nConsider the following minimal tree, with a single section with two children:\r\n\r\n<img width=\"855\" alt=\"screen shot 2016-03-27 at 10 30 28 pm\" src=\"https://cloud.githubusercontent.com/assets/24574/14071617/b0942d82-f46b-11e5-93e5-90083482530e.png\">\r\n\r\nNow click the big blue 'Add page' button to create an 'Accidental root' page (meaning it's being created at the root level instead of as 'Child 3'):\r\n\r\n<img width=\"858\" alt=\"screen shot 2016-03-27 at 10 30 53 pm\" src=\"https://cloud.githubusercontent.com/assets/24574/14071620/b4bcd224-f46b-11e5-9b47-cc2bb308a3c6.png\">\r\n\r\nNow drag 'Accidental Root' so that it becomes a child of 'Section 1':\r\n\r\n<img width=\"847\" alt=\"screen shot 2016-03-27 at 10 31 15 pm\" src=\"https://cloud.githubusercontent.com/assets/24574/14071621/b8a09920-f46b-11e5-8bb8-2312f8a87ce3.png\">\r\n\r\nAll existing siblings are now unpublished:\r\n\r\n<img width=\"843\" alt=\"screen shot 2016-03-27 at 10 31 26 pm\" src=\"https://cloud.githubusercontent.com/assets/24574/14071622/bcc728ca-f46b-11e5-9491-d1afd3cb15f3.png\">\r\n\r\nIf you have menus and apphooks attached to Child 1 or 2, your site is now broken until you manually publish every page within Section 1."},"comment":{"url":"https://api.github.com/repos/divio/django-cms/issues/comments/206428146","html_url":"https://github.com/divio/django-cms/issues/5107#issuecomment-206428146","issue_url":"https://api.github.com/repos/divio/django-cms/issues/5107","id":206428146,"user":{"login":"czpython","id":994951,"avatar_url":"https://avatars.githubusercontent.com/u/994951?v=3","gravatar_id":"","url":"https://api.github.com/users/czpython","html_url":"https://github.com/czpython","followers_url":"https://api.github.com/users/czpython/followers","following_url":"https://api.github.com/users/czpython/following{/other_user}","gists_url":"https://api.github.com/users/czpython/gists{/gist_id}","starred_url":"https://api.github.com/users/czpython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czpython/subscriptions","organizations_url":"https://api.github.com/users/czpython/orgs","repos_url":"https://api.github.com/users/czpython/repos","events_url":"https://api.github.com/users/czpython/events{/privacy}","received_events_url":"https://api.github.com/users/czpython/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T15:28:02Z","updated_at":"2016-04-06T15:28:02Z","body":"Fixed in develop and 3.2.x.\r\n@jsma thanks for reporting.\r\nThere's another bug that came from the same commit, I've started working on a fix. (#5140)"}}