{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/3921","repository_url":"https://api.github.com/repos/Polymer/polymer","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/3921/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/3921/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/3921/events","html_url":"https://github.com/Polymer/polymer/issues/3921","id":176131580,"number":3921,"title":"linkPaths does not work with array index paths","user":{"login":"arthurevans","id":1149422,"avatar_url":"https://avatars.githubusercontent.com/u/1149422?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurevans","html_url":"https://github.com/arthurevans","followers_url":"https://api.github.com/users/arthurevans/followers","following_url":"https://api.github.com/users/arthurevans/following{/other_user}","gists_url":"https://api.github.com/users/arthurevans/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurevans/subscriptions","organizations_url":"https://api.github.com/users/arthurevans/orgs","repos_url":"https://api.github.com/users/arthurevans/repos","events_url":"https://api.github.com/users/arthurevans/events{/privacy}","received_events_url":"https://api.github.com/users/arthurevans/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Polymer/polymer/labels/1.x","name":"1.x","color":"b60205"},{"url":"https://api.github.com/repos/Polymer/polymer/labels/2.x","name":"2.x","color":"c5def5"},{"url":"https://api.github.com/repos/Polymer/polymer/labels/databinding","name":"databinding","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-09T22:51:14Z","updated_at":"2016-09-26T15:46:13Z","closed_at":null,"body":"It's unclear whether this is a bug or not, but calling `linkPaths` with an array index path, like `data.0.items` appears to fail silently.\r\n\r\nLooking at `linkPaths`, it appears that's because we maintain a list of bound paths, but since array changes are always notified with key paths, these don't get mapped.\r\n\r\nArguably, this behavior is correct, since a mapping between `data.0.items` and `items` would be unstable. However if that's the case, I think the docs should reflect this (and the method could throw an error if you pass in an index path.\r\n\r\n### Description\r\n\r\nRun demo. Notice that the two paths (`people` and `data.0.items` don't update in lockstep. Switching to the key path causes the arrays to update correctly.\r\n\r\n#### Live Demo\r\n\r\nhttps://jsbin.com/qivalipadu/1/edit?html,output\r\n\r\n### Versions\r\n\r\nPolymer 1.6.1.\r\n"},"comment":{"url":"https://api.github.com/repos/Polymer/polymer/issues/comments/249609712","html_url":"https://github.com/Polymer/polymer/issues/3921#issuecomment-249609712","issue_url":"https://api.github.com/repos/Polymer/polymer/issues/3921","id":249609712,"user":{"login":"arthurevans","id":1149422,"avatar_url":"https://avatars.githubusercontent.com/u/1149422?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurevans","html_url":"https://github.com/arthurevans","followers_url":"https://api.github.com/users/arthurevans/followers","following_url":"https://api.github.com/users/arthurevans/following{/other_user}","gists_url":"https://api.github.com/users/arthurevans/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurevans/subscriptions","organizations_url":"https://api.github.com/users/arthurevans/orgs","repos_url":"https://api.github.com/users/arthurevans/repos","events_url":"https://api.github.com/users/arthurevans/events{/privacy}","received_events_url":"https://api.github.com/users/arthurevans/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T15:46:13Z","updated_at":"2016-09-26T15:46:13Z","body":"Actually, I don't think this is related to #3558. That's about the _format_ in which we specify paths (to anything). That is, `linkPaths(['one', 'two'], 'three')` == `linkPaths('one.two', 'three')`.\r\n\r\nThis issue has to do with what the path _identifies_. In particular, whether you can have a path segment that's an array _index_ (`array.11`) as opposed to a key (`array.#7`). "}}
{"actor":{"display_login":"arthurevans"}}