{"action":"created","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3788","repository_url":"https://api.github.com/repos/Starcounter/Starcounter","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3788/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3788/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3788/events","html_url":"https://github.com/Starcounter/Starcounter/issues/3788","id":171071913,"number":3788,"title":"How could a single patch contain items to add and remove the same item","user":{"login":"miyconst","id":6435556,"avatar_url":"https://avatars.githubusercontent.com/u/6435556?v=3","gravatar_id":"","url":"https://api.github.com/users/miyconst","html_url":"https://github.com/miyconst","followers_url":"https://api.github.com/users/miyconst/followers","following_url":"https://api.github.com/users/miyconst/following{/other_user}","gists_url":"https://api.github.com/users/miyconst/gists{/gist_id}","starred_url":"https://api.github.com/users/miyconst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyconst/subscriptions","organizations_url":"https://api.github.com/users/miyconst/orgs","repos_url":"https://api.github.com/users/miyconst/repos","events_url":"https://api.github.com/users/miyconst/events{/privacy}","received_events_url":"https://api.github.com/users/miyconst/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/question","name":"question","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-14T18:34:50Z","updated_at":"2016-08-16T07:18:04Z","closed_at":null,"body":"I have such situation:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/6435556/17651025/8510b148-625d-11e6-9880-472226414e22.png)\r\n\r\nA single JSON patch contains two operation, to add and remove the same item. Even if an item was added and then removed on server side, it does not make sense to send this to client side.\r\n\r\ncc @chrhol "},"comment":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/comments/240022516","html_url":"https://github.com/Starcounter/Starcounter/issues/3788#issuecomment-240022516","issue_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3788","id":240022516,"user":{"login":"chrhol","id":1658979,"avatar_url":"https://avatars.githubusercontent.com/u/1658979?v=3","gravatar_id":"","url":"https://api.github.com/users/chrhol","html_url":"https://github.com/chrhol","followers_url":"https://api.github.com/users/chrhol/followers","following_url":"https://api.github.com/users/chrhol/following{/other_user}","gists_url":"https://api.github.com/users/chrhol/gists{/gist_id}","starred_url":"https://api.github.com/users/chrhol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrhol/subscriptions","organizations_url":"https://api.github.com/users/chrhol/orgs","repos_url":"https://api.github.com/users/chrhol/repos","events_url":"https://api.github.com/users/chrhol/events{/privacy}","received_events_url":"https://api.github.com/users/chrhol/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T07:18:04Z","updated_at":"2016-08-16T07:18:04Z","body":"That's interesting. Then it might be a bug, or some inconsistency in handling the array. Should it be allowed to add and remove items directly for a bound array do you think? I'm not sure what the proper way is here.\r\n\r\nWas the item added on purpose, or was the point to add an item to the bound data?"}}
{"actor":{"display_login":"chrhol"}}