{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/12372","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/12372/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/12372/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/12372/events","html_url":"https://github.com/ampproject/amphtml/issues/12372","id":280520031,"number":12372,"title":"amp-list: Remove src attribute requirement?","user":{"login":"choumx","id":20525523,"avatar_url":"https://avatars1.githubusercontent.com/u/20525523?v=4","gravatar_id":"","url":"https://api.github.com/users/choumx","html_url":"https://github.com/choumx","followers_url":"https://api.github.com/users/choumx/followers","following_url":"https://api.github.com/users/choumx/following{/other_user}","gists_url":"https://api.github.com/users/choumx/gists{/gist_id}","starred_url":"https://api.github.com/users/choumx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choumx/subscriptions","organizations_url":"https://api.github.com/users/choumx/orgs","repos_url":"https://api.github.com/users/choumx/repos","events_url":"https://api.github.com/users/choumx/events{/privacy}","received_events_url":"https://api.github.com/users/choumx/received_events","type":"User","site_admin":false},"labels":[{"id":530196374,"url":"https://api.github.com/repos/ampproject/amphtml/labels/Category:%20Dynamic/Personalized%20Content","name":"Category: Dynamic/Personalized Content","color":"1d76db","default":false},{"id":530202281,"url":"https://api.github.com/repos/ampproject/amphtml/labels/P2:%20Soon","name":"P2: Soon","color":"e99695","default":false},{"id":270707801,"url":"https://api.github.com/repos/ampproject/amphtml/labels/Type:%20Discussion/Question","name":"Type: Discussion/Question","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":{"login":"ericlindley-g","id":16807766,"avatar_url":"https://avatars2.githubusercontent.com/u/16807766?v=4","gravatar_id":"","url":"https://api.github.com/users/ericlindley-g","html_url":"https://github.com/ericlindley-g","followers_url":"https://api.github.com/users/ericlindley-g/followers","following_url":"https://api.github.com/users/ericlindley-g/following{/other_user}","gists_url":"https://api.github.com/users/ericlindley-g/gists{/gist_id}","starred_url":"https://api.github.com/users/ericlindley-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericlindley-g/subscriptions","organizations_url":"https://api.github.com/users/ericlindley-g/orgs","repos_url":"https://api.github.com/users/ericlindley-g/repos","events_url":"https://api.github.com/users/ericlindley-g/events{/privacy}","received_events_url":"https://api.github.com/users/ericlindley-g/received_events","type":"User","site_admin":false},"assignees":[{"login":"ericlindley-g","id":16807766,"avatar_url":"https://avatars2.githubusercontent.com/u/16807766?v=4","gravatar_id":"","url":"https://api.github.com/users/ericlindley-g","html_url":"https://github.com/ericlindley-g","followers_url":"https://api.github.com/users/ericlindley-g/followers","following_url":"https://api.github.com/users/ericlindley-g/following{/other_user}","gists_url":"https://api.github.com/users/ericlindley-g/gists{/gist_id}","starred_url":"https://api.github.com/users/ericlindley-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericlindley-g/subscriptions","organizations_url":"https://api.github.com/users/ericlindley-g/orgs","repos_url":"https://api.github.com/users/ericlindley-g/repos","events_url":"https://api.github.com/users/ericlindley-g/events{/privacy}","received_events_url":"https://api.github.com/users/ericlindley-g/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ampproject/amphtml/milestones/4","html_url":"https://github.com/ampproject/amphtml/milestone/4","labels_url":"https://api.github.com/repos/ampproject/amphtml/milestones/4/labels","id":1537240,"number":4,"title":"Backlog Bugs","description":"This milestone tracks all bugs opened for the projects that are not yet assigned to a sprint milestone. Bugs within this milestone will be fixed based on the priority of the issue. ","creator":{"login":"rudygalfi","id":3888212,"avatar_url":"https://avatars3.githubusercontent.com/u/3888212?v=4","gravatar_id":"","url":"https://api.github.com/users/rudygalfi","html_url":"https://github.com/rudygalfi","followers_url":"https://api.github.com/users/rudygalfi/followers","following_url":"https://api.github.com/users/rudygalfi/following{/other_user}","gists_url":"https://api.github.com/users/rudygalfi/gists{/gist_id}","starred_url":"https://api.github.com/users/rudygalfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudygalfi/subscriptions","organizations_url":"https://api.github.com/users/rudygalfi/orgs","repos_url":"https://api.github.com/users/rudygalfi/repos","events_url":"https://api.github.com/users/rudygalfi/events{/privacy}","received_events_url":"https://api.github.com/users/rudygalfi/received_events","type":"User","site_admin":false},"open_issues":400,"closed_issues":623,"state":"open","created_at":"2016-01-22T23:51:53Z","updated_at":"2018-03-02T18:39:59Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2017-12-08T15:13:55Z","updated_at":"2018-03-03T23:12:10Z","closed_at":null,"author_association":"COLLABORATOR","body":"Context: #12367\r\n\r\nFor some use cases of amp-list (i.e. with amp-bind), having `src` attribute is not strictly necessary. To workaround, pubs can just set a garbage value but amp-list still attempts an XHR.\r\n\r\nShould we (1) remove that requirement outright or (2) only allow omission when `[src]` is present or (3) require existence of placeholder element?\r\n\r\n/cc @4-1-1 @ericlindley-g "},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/370187413","html_url":"https://github.com/ampproject/amphtml/issues/12372#issuecomment-370187413","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/12372","id":370187413,"user":{"login":"AndrewKGuan","id":31973638,"avatar_url":"https://avatars1.githubusercontent.com/u/31973638?v=4","gravatar_id":"","url":"https://api.github.com/users/AndrewKGuan","html_url":"https://github.com/AndrewKGuan","followers_url":"https://api.github.com/users/AndrewKGuan/followers","following_url":"https://api.github.com/users/AndrewKGuan/following{/other_user}","gists_url":"https://api.github.com/users/AndrewKGuan/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewKGuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewKGuan/subscriptions","organizations_url":"https://api.github.com/users/AndrewKGuan/orgs","repos_url":"https://api.github.com/users/AndrewKGuan/repos","events_url":"https://api.github.com/users/AndrewKGuan/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewKGuan/received_events","type":"User","site_admin":false},"created_at":"2018-03-03T23:12:10Z","updated_at":"2018-03-03T23:12:10Z","author_association":"NONE","body":"Hi,\r\nis it possible to use an amp-state (json), rendered directly on the AMP's html, to be the initial src of amp-lists?  Here are a several use cases, I'm sure there'll be more that I can't think of at the moment:\r\n\r\n- as the initial values to supply the amp-lists' rendering instead of waiting for a server fetch (xhr).  Think about eCommerce's product listing/filtering, if nothing applied to the filter, the first page of the products could be directly coding into the AMP for faster completion of the page.  Any user actions to apply the filter which changes the list of products, or tapping 'next 20' on the pagination,  will then trigger the xhr.  So instead of `<amp-list src=xhr_url, [scr]=amp_state_json>`, `it becomes <amp-list src=amp_state_json [src]=optional_xhr_url>`.\r\n\r\n- one single amp-state json to render multiple amp-lists that are responsible for rendering a portion of the json.   Think of a multilevel parent-child linked <select> drop-downs, something like \"select state -> select city -> select office location\".  One could easily construct a simple json that represents such a tree and have it right there on the AMP itself instead of fetching on each level of the select.  Also if the person tries to do that using amp-bound <select> tags using show/hide, it would be prohibitively complicated.\r\n\r\nThe general idea is to allow higher level of programmability to AMP (closer to what developers enjoy with the plain old non-amp fashion) and to allow decoupling between data & rendering.\r\n\r\n\r\n"}}
{"actor":{"display_login":"AndrewKGuan"}}