{"action":"created","issue":{"url":"https://api.github.com/repos/pimcore/pimcore/issues/2501","repository_url":"https://api.github.com/repos/pimcore/pimcore","labels_url":"https://api.github.com/repos/pimcore/pimcore/issues/2501/labels{/name}","comments_url":"https://api.github.com/repos/pimcore/pimcore/issues/2501/comments","events_url":"https://api.github.com/repos/pimcore/pimcore/issues/2501/events","html_url":"https://github.com/pimcore/pimcore/pull/2501","id":291208791,"number":2501,"title":"Allow change a sorting way of items in object tree","user":{"login":"michalfilik","id":2090985,"avatar_url":"https://avatars3.githubusercontent.com/u/2090985?v=4","gravatar_id":"","url":"https://api.github.com/users/michalfilik","html_url":"https://github.com/michalfilik","followers_url":"https://api.github.com/users/michalfilik/followers","following_url":"https://api.github.com/users/michalfilik/following{/other_user}","gists_url":"https://api.github.com/users/michalfilik/gists{/gist_id}","starred_url":"https://api.github.com/users/michalfilik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalfilik/subscriptions","organizations_url":"https://api.github.com/users/michalfilik/orgs","repos_url":"https://api.github.com/users/michalfilik/repos","events_url":"https://api.github.com/users/michalfilik/events{/privacy}","received_events_url":"https://api.github.com/users/michalfilik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-01-24T13:29:19Z","updated_at":"2018-02-21T19:10:38Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/pimcore/pimcore/pulls/2501","html_url":"https://github.com/pimcore/pimcore/pull/2501","diff_url":"https://github.com/pimcore/pimcore/pull/2501.diff","patch_url":"https://github.com/pimcore/pimcore/pull/2501.patch"},"body":"This pull request provides improvement to sorting items in Object Tree. It allows to choose default sorting way for children of specific folder/object. Items can be sorted manually (by index column - set by drag&drop of elements) or alphabetically (by key column).\r\n\r\n![pimcore-sorting-objects](https://user-images.githubusercontent.com/2090985/35334075-5d180714-0111-11e8-9569-3a5124295784.png)\r\n\r\n## TODO\r\n\r\n- [ ] Prepare db-update script:\r\n\r\n```sql\r\nALTER TABLE objects ADD o_childrenSortBy ENUM('key','index')  CHARACTER SET utf8mb4  COLLATE utf8mb4_general_ci  NULL  DEFAULT NULL  AFTER o_className;\r\nALTER TABLE users_workspaces_object ADD sortBy TINYINT(1)  UNSIGNED  NULL  DEFAULT '0'  AFTER properties;\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pimcore/pimcore/issues/comments/367436508","html_url":"https://github.com/pimcore/pimcore/pull/2501#issuecomment-367436508","issue_url":"https://api.github.com/repos/pimcore/pimcore/issues/2501","id":367436508,"user":{"login":"michalfilik","id":2090985,"avatar_url":"https://avatars3.githubusercontent.com/u/2090985?v=4","gravatar_id":"","url":"https://api.github.com/users/michalfilik","html_url":"https://github.com/michalfilik","followers_url":"https://api.github.com/users/michalfilik/followers","following_url":"https://api.github.com/users/michalfilik/following{/other_user}","gists_url":"https://api.github.com/users/michalfilik/gists{/gist_id}","starred_url":"https://api.github.com/users/michalfilik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalfilik/subscriptions","organizations_url":"https://api.github.com/users/michalfilik/orgs","repos_url":"https://api.github.com/users/michalfilik/repos","events_url":"https://api.github.com/users/michalfilik/events{/privacy}","received_events_url":"https://api.github.com/users/michalfilik/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T19:10:38Z","updated_at":"2018-02-21T19:10:38Z","author_association":"NONE","body":"@weisswurstkanone I've commited mentioned changes. Please review them and let me know if everything is complete now :) "}}
{"actor":{"display_login":"michalfilik"}}