{"action":"created","issue":{"url":"https://api.github.com/repos/IATI/preview-website/issues/86","repository_url":"https://api.github.com/repos/IATI/preview-website","labels_url":"https://api.github.com/repos/IATI/preview-website/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/IATI/preview-website/issues/86/comments","events_url":"https://api.github.com/repos/IATI/preview-website/issues/86/events","html_url":"https://github.com/IATI/preview-website/pull/86","id":317786223,"number":86,"title":"Reorder children","user":{"login":"akmiller01","id":2836840,"avatar_url":"https://avatars1.githubusercontent.com/u/2836840?v=4","gravatar_id":"","url":"https://api.github.com/users/akmiller01","html_url":"https://github.com/akmiller01","followers_url":"https://api.github.com/users/akmiller01/followers","following_url":"https://api.github.com/users/akmiller01/following{/other_user}","gists_url":"https://api.github.com/users/akmiller01/gists{/gist_id}","starred_url":"https://api.github.com/users/akmiller01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akmiller01/subscriptions","organizations_url":"https://api.github.com/users/akmiller01/orgs","repos_url":"https://api.github.com/users/akmiller01/repos","events_url":"https://api.github.com/users/akmiller01/events{/privacy}","received_events_url":"https://api.github.com/users/akmiller01/received_events","type":"User","site_admin":false},"labels":[{"id":867308123,"url":"https://api.github.com/repos/IATI/preview-website/labels/complete","name":"complete","color":"5319e7","default":false},{"id":857879622,"url":"https://api.github.com/repos/IATI/preview-website/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-25T20:42:10Z","updated_at":"2018-04-26T12:07:29Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/IATI/preview-website/pulls/86","html_url":"https://github.com/IATI/preview-website/pull/86","diff_url":"https://github.com/IATI/preview-website/pull/86.diff","patch_url":"https://github.com/IATI/preview-website/pull/86.patch"},"body":"Unfortunately branched this feature from refactor-people instead of add-about-models, so apologies about that in advance. This has also subsumed https://github.com/IATI/preview-website/pull/68 so closing that one.\r\n\r\nThe logic here is to create an orderable on every parent page that contains the child pages. Instances of the orderable are created on save of the children. I tried to disable the user from changing the orderable dropdown on the parent page, but disabling it also disabled the ability to reorder."},"comment":{"url":"https://api.github.com/repos/IATI/preview-website/issues/comments/384617280","html_url":"https://github.com/IATI/preview-website/pull/86#issuecomment-384617280","issue_url":"https://api.github.com/repos/IATI/preview-website/issues/86","id":384617280,"user":{"login":"akmiller01","id":2836840,"avatar_url":"https://avatars1.githubusercontent.com/u/2836840?v=4","gravatar_id":"","url":"https://api.github.com/users/akmiller01","html_url":"https://github.com/akmiller01","followers_url":"https://api.github.com/users/akmiller01/followers","following_url":"https://api.github.com/users/akmiller01/following{/other_user}","gists_url":"https://api.github.com/users/akmiller01/gists{/gist_id}","starred_url":"https://api.github.com/users/akmiller01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akmiller01/subscriptions","organizations_url":"https://api.github.com/users/akmiller01/orgs","repos_url":"https://api.github.com/users/akmiller01/repos","events_url":"https://api.github.com/users/akmiller01/events{/privacy}","received_events_url":"https://api.github.com/users/akmiller01/received_events","type":"User","site_admin":false},"created_at":"2018-04-26T12:07:29Z","updated_at":"2018-04-26T12:07:29Z","author_association":"NONE","body":"Cool, much easier solution. Imogen and I had found that in the docs last\nweek, but we couldn't figure out which button they were talking about so I\nassumed it was a feature that had recently been taken out!\n\nOn Thu, Apr 26, 2018, 6:58 AM Dale Potter <notifications@github.com> wrote:\n\n> When you reorder the child pages, are they permanently stuck in that order?\n> Or does it reshuffle pages to the top when you edit them?\n>\n> This is the bit which I imagine would seem confusing to content editors.\n> When you edit a page the actual page order is unchanged (accessed via the\n> method I mentioned), however the order the default in the editor panel\n> order is by last updated.\n>\n> *Default content editor view (i.e. sorted by last update)*\n> [image: image]\n> <https://user-images.githubusercontent.com/8247168/39301887-b114c026-4948-11e8-985e-7785b8ef0f17.png>\n>\n> *Page ordering functionality enabled (i.e. order unchanged(*\n> [image: image]\n> <https://user-images.githubusercontent.com/8247168/39301898-b9899416-4948-11e8-8a48-482d4f7210c0.png>\n>\n> The order in the sub-menu corresponds with the page ordering view\n> [image: image]\n> <https://user-images.githubusercontent.com/8247168/39301980-09d0eed8-4949-11e8-8e50-b8dd84010cd4.png>\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/IATI/preview-website/pull/86#issuecomment-384598468>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ACtJaCtmgyyIiZxr6dHlEyPHcGqFdJofks5tsahHgaJpZM4TkHz8>\n> .\n>\n"}}
{"actor":{"display_login":"akmiller01"}}