{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3170","labels_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3170/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3170/comments","events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3170/events","html_url":"https://github.com/sonata-project/SonataAdminBundle/pull/3170","id":100330378,"number":3170,"title":"Add version lock","user":{"login":"EmmanuelVella","id":663607,"avatar_url":"https://avatars.githubusercontent.com/u/663607?v=3","gravatar_id":"","url":"https://api.github.com/users/EmmanuelVella","html_url":"https://github.com/EmmanuelVella","followers_url":"https://api.github.com/users/EmmanuelVella/followers","following_url":"https://api.github.com/users/EmmanuelVella/following{/other_user}","gists_url":"https://api.github.com/users/EmmanuelVella/gists{/gist_id}","starred_url":"https://api.github.com/users/EmmanuelVella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmmanuelVella/subscriptions","organizations_url":"https://api.github.com/users/EmmanuelVella/orgs","repos_url":"https://api.github.com/users/EmmanuelVella/repos","events_url":"https://api.github.com/users/EmmanuelVella/events{/privacy}","received_events_url":"https://api.github.com/users/EmmanuelVella/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"Soullivaneuh","id":1698357,"avatar_url":"https://avatars.githubusercontent.com/u/1698357?v=3","gravatar_id":"","url":"https://api.github.com/users/Soullivaneuh","html_url":"https://github.com/Soullivaneuh","followers_url":"https://api.github.com/users/Soullivaneuh/followers","following_url":"https://api.github.com/users/Soullivaneuh/following{/other_user}","gists_url":"https://api.github.com/users/Soullivaneuh/gists{/gist_id}","starred_url":"https://api.github.com/users/Soullivaneuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soullivaneuh/subscriptions","organizations_url":"https://api.github.com/users/Soullivaneuh/orgs","repos_url":"https://api.github.com/users/Soullivaneuh/repos","events_url":"https://api.github.com/users/Soullivaneuh/events{/privacy}","received_events_url":"https://api.github.com/users/Soullivaneuh/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/milestones/3","html_url":"https://github.com/sonata-project/SonataAdminBundle/milestones/2.4","labels_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/milestones/3/labels","id":917408,"number":3,"title":"2.4","description":"","creator":{"login":"pulzarraider","id":960844,"avatar_url":"https://avatars.githubusercontent.com/u/960844?v=3","gravatar_id":"","url":"https://api.github.com/users/pulzarraider","html_url":"https://github.com/pulzarraider","followers_url":"https://api.github.com/users/pulzarraider/followers","following_url":"https://api.github.com/users/pulzarraider/following{/other_user}","gists_url":"https://api.github.com/users/pulzarraider/gists{/gist_id}","starred_url":"https://api.github.com/users/pulzarraider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulzarraider/subscriptions","organizations_url":"https://api.github.com/users/pulzarraider/orgs","repos_url":"https://api.github.com/users/pulzarraider/repos","events_url":"https://api.github.com/users/pulzarraider/events{/privacy}","received_events_url":"https://api.github.com/users/pulzarraider/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":21,"state":"open","created_at":"2014-12-30T06:46:15Z","updated_at":"2015-10-20T08:35:24Z","due_on":null,"closed_at":null},"comments":20,"created_at":"2015-08-11T14:49:45Z","updated_at":"2015-10-20T18:12:02Z","closed_at":"2015-08-12T15:34:40Z","pull_request":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/3170","html_url":"https://github.com/sonata-project/SonataAdminBundle/pull/3170","diff_url":"https://github.com/sonata-project/SonataAdminBundle/pull/3170.diff","patch_url":"https://github.com/sonata-project/SonataAdminBundle/pull/3170.patch"},"body":"This PR implements object locking.\r\n\r\nWhen loading an object for edit, its original version number is stored in the form. When submitting the form, this number is then passed to the ``Admin::lock()`` method. If a ``LockException`` is thrown, a flash message will inform the user that the object has been edited by someone.\r\n\r\nIf the ``ModelManager`` does not implements the LockInterface, the object will be updated normally.\r\n\r\nRefs #2655 "},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/comments/149651480","html_url":"https://github.com/sonata-project/SonataAdminBundle/pull/3170#issuecomment-149651480","issue_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3170","id":149651480,"user":{"login":"mcwebb","id":610528,"avatar_url":"https://avatars.githubusercontent.com/u/610528?v=3","gravatar_id":"","url":"https://api.github.com/users/mcwebb","html_url":"https://github.com/mcwebb","followers_url":"https://api.github.com/users/mcwebb/followers","following_url":"https://api.github.com/users/mcwebb/following{/other_user}","gists_url":"https://api.github.com/users/mcwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/mcwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcwebb/subscriptions","organizations_url":"https://api.github.com/users/mcwebb/orgs","repos_url":"https://api.github.com/users/mcwebb/repos","events_url":"https://api.github.com/users/mcwebb/events{/privacy}","received_events_url":"https://api.github.com/users/mcwebb/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T18:12:02Z","updated_at":"2015-10-20T18:12:02Z","body":"@OskarStark sorted. https://github.com/sonata-project/SonataAdminBundle/pull/3379\r\nLet me know if it needs to be tweaked."}}