{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/2477","repository_url":"https://api.github.com/repos/strongloop/loopback","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/2477/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/2477/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/2477/events","html_url":"https://github.com/strongloop/loopback/issues/2477","id":162713441,"number":2477,"title":"storageService.getFiles limit the number of result ?","user":{"login":"coder1412","id":15689216,"avatar_url":"https://avatars.githubusercontent.com/u/15689216?v=3","gravatar_id":"","url":"https://api.github.com/users/coder1412","html_url":"https://github.com/coder1412","followers_url":"https://api.github.com/users/coder1412/followers","following_url":"https://api.github.com/users/coder1412/following{/other_user}","gists_url":"https://api.github.com/users/coder1412/gists{/gist_id}","starred_url":"https://api.github.com/users/coder1412/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coder1412/subscriptions","organizations_url":"https://api.github.com/users/coder1412/orgs","repos_url":"https://api.github.com/users/coder1412/repos","events_url":"https://api.github.com/users/coder1412/events{/privacy}","received_events_url":"https://api.github.com/users/coder1412/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback/labels/triage","name":"triage","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"gunjpan","id":14811089,"avatar_url":"https://avatars.githubusercontent.com/u/14811089?v=3","gravatar_id":"","url":"https://api.github.com/users/gunjpan","html_url":"https://github.com/gunjpan","followers_url":"https://api.github.com/users/gunjpan/followers","following_url":"https://api.github.com/users/gunjpan/following{/other_user}","gists_url":"https://api.github.com/users/gunjpan/gists{/gist_id}","starred_url":"https://api.github.com/users/gunjpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunjpan/subscriptions","organizations_url":"https://api.github.com/users/gunjpan/orgs","repos_url":"https://api.github.com/users/gunjpan/repos","events_url":"https://api.github.com/users/gunjpan/events{/privacy}","received_events_url":"https://api.github.com/users/gunjpan/received_events","type":"User","site_admin":false},"assignees":[{"login":"gunjpan","id":14811089,"avatar_url":"https://avatars.githubusercontent.com/u/14811089?v=3","gravatar_id":"","url":"https://api.github.com/users/gunjpan","html_url":"https://github.com/gunjpan","followers_url":"https://api.github.com/users/gunjpan/followers","following_url":"https://api.github.com/users/gunjpan/following{/other_user}","gists_url":"https://api.github.com/users/gunjpan/gists{/gist_id}","starred_url":"https://api.github.com/users/gunjpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunjpan/subscriptions","organizations_url":"https://api.github.com/users/gunjpan/orgs","repos_url":"https://api.github.com/users/gunjpan/repos","events_url":"https://api.github.com/users/gunjpan/events{/privacy}","received_events_url":"https://api.github.com/users/gunjpan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-06-28T15:22:07Z","updated_at":"2016-06-28T20:00:25Z","closed_at":null,"body":"Im using the storageService.getFiles to return the files of current user but it returns as many files as i they have. Can i limit the number of result ?\r\n\r\n#2451 @gunjpan closed this issue with an unworking answer. As you can see below, getFiles function just receive 2 request params container and file, it will ignore filter param. \r\n       \r\n         /**\r\n         * @ngdoc method\r\n         * @name lbServices.Files#getFiles\r\n         * @methodOf lbServices.Files\r\n         *\r\n         * @description\r\n         *\r\n         * <em>\r\n         * (The remote method definition does not provide any description.)\r\n         * </em>\r\n         *\r\n         * @param {Object=} parameters Request parameters.\r\n         *\r\n         *  - `container` – `{string=}` - \r\n         *\r\n         * @param {function(Array.<Object>,Object)=} successCb\r\n         *   Success callback with two arguments: `value`, `responseHeaders`.\r\n         *\r\n         * @param {function(Object)=} errorCb Error callback with one argument:\r\n         *   `httpResponse`.\r\n         *\r\n         * @returns {Array.<Object>} An empty reference that will be\r\n         *   populated with the actual data once the response is returned\r\n         *   from the server.\r\n         *\r\n         * <em>\r\n         * (The remote method definition does not provide any description.\r\n         * This usually means the response is a `Files` object.)\r\n         * </em>\r\n         */"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback/issues/comments/229164789","html_url":"https://github.com/strongloop/loopback/issues/2477#issuecomment-229164789","issue_url":"https://api.github.com/repos/strongloop/loopback/issues/2477","id":229164789,"user":{"login":"gunjpan","id":14811089,"avatar_url":"https://avatars.githubusercontent.com/u/14811089?v=3","gravatar_id":"","url":"https://api.github.com/users/gunjpan","html_url":"https://github.com/gunjpan","followers_url":"https://api.github.com/users/gunjpan/followers","following_url":"https://api.github.com/users/gunjpan/following{/other_user}","gists_url":"https://api.github.com/users/gunjpan/gists{/gist_id}","starred_url":"https://api.github.com/users/gunjpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunjpan/subscriptions","organizations_url":"https://api.github.com/users/gunjpan/orgs","repos_url":"https://api.github.com/users/gunjpan/repos","events_url":"https://api.github.com/users/gunjpan/events{/privacy}","received_events_url":"https://api.github.com/users/gunjpan/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T20:00:25Z","updated_at":"2016-06-28T20:00:25Z","body":"@coder1412: I see, in the #2451, you mentioned someone else -- `@gausie` -- and also didn't reopen it,  thus, didn't get a chance to look at. \r\n\r\nIIRC, current implementation of `loopback-component-storage` doesn't support this case to paginate response. I am marking it as a feature request and we will consider it in our planning and prioritize accordingly.\r\n\r\nMeanwhile, if you would like to submit a PR, I'll be happy to help along the way."}}
{"actor":{"display_login":"gunjpan"}}