{"action":"created","issue":{"url":"https://api.github.com/repos/SAP/openui5/issues/487","labels_url":"https://api.github.com/repos/SAP/openui5/issues/487/labels{/name}","comments_url":"https://api.github.com/repos/SAP/openui5/issues/487/comments","events_url":"https://api.github.com/repos/SAP/openui5/issues/487/events","html_url":"https://github.com/SAP/openui5/issues/487","id":89502909,"number":487,"title":"[1.28] ODataModel#createEntry - dont try to update new entries","user":{"login":"themasch","id":170171,"avatar_url":"https://avatars.githubusercontent.com/u/170171?v=3","gravatar_id":"","url":"https://api.github.com/users/themasch","html_url":"https://github.com/themasch","followers_url":"https://api.github.com/users/themasch/followers","following_url":"https://api.github.com/users/themasch/following{/other_user}","gists_url":"https://api.github.com/users/themasch/gists{/gist_id}","starred_url":"https://api.github.com/users/themasch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themasch/subscriptions","organizations_url":"https://api.github.com/users/themasch/orgs","repos_url":"https://api.github.com/users/themasch/repos","events_url":"https://api.github.com/users/themasch/events{/privacy}","received_events_url":"https://api.github.com/users/themasch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-19T08:17:56Z","updated_at":"2015-06-26T14:19:50Z","closed_at":null,"body":"This issue is related to #426 but not the same. \r\n\r\nWe are using an ODataModel v2 w/o batch request for several reasons. In some parts of the application we want to use the complete input<->model->server TwoWay binding magic. On other parts, this just makes no sense at all like for creating new entries. \r\n\r\nWhen creating an entry using createEntry you get a context and can specify (beside other options) a \"batchGroupId\". \r\nIf you specify nothing the model immediately tries to send a POST request to the service to create the entry. This can be changed by adding a \"batchGroupId\" to the options and add this Id to the \"deferredBatchGroups\" on the model. \r\nBut when you bind this context to, lets say, a form and start to edit this newly created entry, the model tries to send POST requests to the service without an id, so these are indeed create requests. \r\n\r\nMost of these will of course fail because the user has not entered all information yet and the entry isnt valid at all. \r\n\r\nAgain, deciding what changed should be send immediately and which should wait for an submitChanges is very hard/impossible here. \r\n\r\nHeres a plunker to test the problem: http://plnkr.co/edit/0hhFM4Aj2bgX2wKG8IXa?p=preview"},"comment":{"url":"https://api.github.com/repos/SAP/openui5/issues/comments/115704444","html_url":"https://github.com/SAP/openui5/issues/487#issuecomment-115704444","issue_url":"https://api.github.com/repos/SAP/openui5/issues/487","id":115704444,"user":{"login":"machwitt","id":6814704,"avatar_url":"https://avatars.githubusercontent.com/u/6814704?v=3","gravatar_id":"","url":"https://api.github.com/users/machwitt","html_url":"https://github.com/machwitt","followers_url":"https://api.github.com/users/machwitt/followers","following_url":"https://api.github.com/users/machwitt/following{/other_user}","gists_url":"https://api.github.com/users/machwitt/gists{/gist_id}","starred_url":"https://api.github.com/users/machwitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machwitt/subscriptions","organizations_url":"https://api.github.com/users/machwitt/orgs","repos_url":"https://api.github.com/users/machwitt/repos","events_url":"https://api.github.com/users/machwitt/events{/privacy}","received_events_url":"https://api.github.com/users/machwitt/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T14:19:50Z","updated_at":"2015-06-26T14:19:50Z","body":"Hi themasch,\r\nthanks for reporting. I opened internal incident 1570529817 for this. We will come back to you when there is news on this one.\r\n\r\nBest Regards,\r\nMartin"}}