{"action":"created","issue":{"url":"https://api.github.com/repos/marmelab/react-admin/issues/2004","repository_url":"https://api.github.com/repos/marmelab/react-admin","labels_url":"https://api.github.com/repos/marmelab/react-admin/issues/2004/labels{/name}","comments_url":"https://api.github.com/repos/marmelab/react-admin/issues/2004/comments","events_url":"https://api.github.com/repos/marmelab/react-admin/issues/2004/events","html_url":"https://github.com/marmelab/react-admin/issues/2004","id":339217433,"node_id":"MDU6SXNzdWUzMzkyMTc0MzM=","number":2004,"title":"Aggregate crudGetMatching requests and add pagination","user":{"login":"ronfogel","id":16741829,"node_id":"MDQ6VXNlcjE2NzQxODI5","avatar_url":"https://avatars2.githubusercontent.com/u/16741829?v=4","gravatar_id":"","url":"https://api.github.com/users/ronfogel","html_url":"https://github.com/ronfogel","followers_url":"https://api.github.com/users/ronfogel/followers","following_url":"https://api.github.com/users/ronfogel/following{/other_user}","gists_url":"https://api.github.com/users/ronfogel/gists{/gist_id}","starred_url":"https://api.github.com/users/ronfogel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronfogel/subscriptions","organizations_url":"https://api.github.com/users/ronfogel/orgs","repos_url":"https://api.github.com/users/ronfogel/repos","events_url":"https://api.github.com/users/ronfogel/events{/privacy}","received_events_url":"https://api.github.com/users/ronfogel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-08T11:13:53Z","updated_at":"2018-07-10T12:05:13Z","closed_at":null,"author_association":"NONE","body":"**Is your feature request related to a problem? Please describe.**\r\nBrowser is stuck (page load forever and after a while the \"kill page\" prompt appears)\r\n\r\n**Describe the solution you'd like**\r\n1. ArrayInput should aggregate all the needed requests and made only 1 request for each resource it uses with all the ids it uses and bind the data correctly.\r\n2. Should be able to add pagination so I wont make a request with 500 ids which will take too much time and huge response\r\n\r\n**Describe alternatives you've considered**\r\nCreate a component that makes the above but not as generic as I would want it to be.\r\n\r\n**Additional context**\r\nCreated a code sandbox to show my problem\r\nhttps://r7jxw6748n.codesandbox.io/#/posts/1 (if you need to login, user: admin, password: password)\r\nhttps://imgur.com/arni0wi\r\n"},"comment":{"url":"https://api.github.com/repos/marmelab/react-admin/issues/comments/403798493","html_url":"https://github.com/marmelab/react-admin/issues/2004#issuecomment-403798493","issue_url":"https://api.github.com/repos/marmelab/react-admin/issues/2004","id":403798493,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzc5ODQ5Mw==","user":{"login":"ronfogel","id":16741829,"node_id":"MDQ6VXNlcjE2NzQxODI5","avatar_url":"https://avatars2.githubusercontent.com/u/16741829?v=4","gravatar_id":"","url":"https://api.github.com/users/ronfogel","html_url":"https://github.com/ronfogel","followers_url":"https://api.github.com/users/ronfogel/followers","following_url":"https://api.github.com/users/ronfogel/following{/other_user}","gists_url":"https://api.github.com/users/ronfogel/gists{/gist_id}","starred_url":"https://api.github.com/users/ronfogel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronfogel/subscriptions","organizations_url":"https://api.github.com/users/ronfogel/orgs","repos_url":"https://api.github.com/users/ronfogel/repos","events_url":"https://api.github.com/users/ronfogel/events{/privacy}","received_events_url":"https://api.github.com/users/ronfogel/received_events","type":"User","site_admin":false},"created_at":"2018-07-10T12:05:13Z","updated_at":"2018-07-10T12:05:13Z","author_association":"NONE","body":"@fzaninotto I guess you are right about the first thing, but you didnt understand correctly my second thing.\r\n\r\nLets take my code sandbox as an example.\r\nLets say the post had 1000 comments, I wouldnt want to show all the 1000 comments (and make a request to get 1000 users) but instead I would like to have the option to show only CERTAIN amount of iterrations (lets say, 10) and so `crudGetMatching` will result in 10 users and I will have a pagination to see the next 10 comments and so on.\r\n\r\nThe pagination is related to the `ArrayInput` not to the `ReferenceInput`"}}
{"actor":{"display_login":"ronfogel"}}