{"action":"created","issue":{"url":"https://api.github.com/repos/PuppetJs/PuppetJs/issues/35","labels_url":"https://api.github.com/repos/PuppetJs/PuppetJs/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/PuppetJs/PuppetJs/issues/35/comments","events_url":"https://api.github.com/repos/PuppetJs/PuppetJs/issues/35/events","html_url":"https://github.com/PuppetJs/PuppetJs/issues/35","id":52229187,"number":35,"title":"ignoreAdd not always ignores","user":{"login":"warpech","id":566463,"avatar_url":"https://avatars.githubusercontent.com/u/566463?v=3","gravatar_id":"","url":"https://api.github.com/users/warpech","html_url":"https://github.com/warpech","followers_url":"https://api.github.com/users/warpech/followers","following_url":"https://api.github.com/users/warpech/following{/other_user}","gists_url":"https://api.github.com/users/warpech/gists{/gist_id}","starred_url":"https://api.github.com/users/warpech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warpech/subscriptions","organizations_url":"https://api.github.com/users/warpech/orgs","repos_url":"https://api.github.com/users/warpech/repos","events_url":"https://api.github.com/users/warpech/events{/privacy}","received_events_url":"https://api.github.com/users/warpech/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PuppetJs/PuppetJs/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"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},"milestone":null,"comments":29,"created_at":"2014-12-17T11:26:26Z","updated_at":"2015-10-22T14:56:04Z","closed_at":null,"body":"At some cases, PuppetJs observes and tries to send changes to properties that should be ignored:\r\n\r\n```js\r\npuppet.ignoreAdd = /\\/_.+/; //ignore the \"add\" operations of properties that start with _\r\n```\r\n\r\nThis happens when the ignored property is a member of an array of objects. When the server moves the object to a different index in the array, changes to the ignored property result in `replace` operation being generated by PuppetJs.\r\n\r\nScreenshot:\r\n\r\n![screenshot 2014-12-17 10 35 43](https://cloud.githubusercontent.com/assets/566463/5470423/b29b5ef0-85e7-11e4-9787-2567e850da81.png)\r\n\r\nWorkaround:\r\n\r\nChange line `if (op === 'add' && this.ignoreAdd.test(path)) {`  to `if ((op === 'add' || op === 'replace') && this.ignoreAdd.test(path)) {`\r\n\r\nReported today on a Hangout by @malx122"},"comment":{"url":"https://api.github.com/repos/PuppetJs/PuppetJs/issues/comments/150252345","html_url":"https://github.com/PuppetJs/PuppetJs/issues/35#issuecomment-150252345","issue_url":"https://api.github.com/repos/PuppetJs/PuppetJs/issues/35","id":150252345,"user":{"login":"warpech","id":566463,"avatar_url":"https://avatars.githubusercontent.com/u/566463?v=3","gravatar_id":"","url":"https://api.github.com/users/warpech","html_url":"https://github.com/warpech","followers_url":"https://api.github.com/users/warpech/followers","following_url":"https://api.github.com/users/warpech/following{/other_user}","gists_url":"https://api.github.com/users/warpech/gists{/gist_id}","starred_url":"https://api.github.com/users/warpech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warpech/subscriptions","organizations_url":"https://api.github.com/users/warpech/orgs","repos_url":"https://api.github.com/users/warpech/repos","events_url":"https://api.github.com/users/warpech/events{/privacy}","received_events_url":"https://api.github.com/users/warpech/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T14:56:04Z","updated_at":"2015-10-22T14:56:04Z","body":"Ok, thanks! We will put high priority on this."}}