{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2626","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2626/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2626/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2626/events","html_url":"https://github.com/jhipster/generator-jhipster/pull/2626","id":126337187,"number":2626,"title":"Fix page number generation when using different page sizes","user":{"login":"ruddell","id":4294623,"avatar_url":"https://avatars.githubusercontent.com/u/4294623?v=3","gravatar_id":"","url":"https://api.github.com/users/ruddell","html_url":"https://github.com/ruddell","followers_url":"https://api.github.com/users/ruddell/followers","following_url":"https://api.github.com/users/ruddell/following{/other_user}","gists_url":"https://api.github.com/users/ruddell/gists{/gist_id}","starred_url":"https://api.github.com/users/ruddell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruddell/subscriptions","organizations_url":"https://api.github.com/users/ruddell/orgs","repos_url":"https://api.github.com/users/ruddell/repos","events_url":"https://api.github.com/users/ruddell/events{/privacy}","received_events_url":"https://api.github.com/users/ruddell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-13T04:09:19Z","updated_at":"2016-01-15T04:35:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/pulls/2626","html_url":"https://github.com/jhipster/generator-jhipster/pull/2626","diff_url":"https://github.com/jhipster/generator-jhipster/pull/2626.diff","patch_url":"https://github.com/jhipster/generator-jhipster/pull/2626.patch"},"body":"Adds a scope variable for page size, allows ui-boostrap paging directives to display the correct number of pages\r\n\r\nFix #2625 "},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/171869696","html_url":"https://github.com/jhipster/generator-jhipster/pull/2626#issuecomment-171869696","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2626","id":171869696,"user":{"login":"geraldhumphries","id":5278953,"avatar_url":"https://avatars.githubusercontent.com/u/5278953?v=3","gravatar_id":"","url":"https://api.github.com/users/geraldhumphries","html_url":"https://github.com/geraldhumphries","followers_url":"https://api.github.com/users/geraldhumphries/followers","following_url":"https://api.github.com/users/geraldhumphries/following{/other_user}","gists_url":"https://api.github.com/users/geraldhumphries/gists{/gist_id}","starred_url":"https://api.github.com/users/geraldhumphries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geraldhumphries/subscriptions","organizations_url":"https://api.github.com/users/geraldhumphries/orgs","repos_url":"https://api.github.com/users/geraldhumphries/repos","events_url":"https://api.github.com/users/geraldhumphries/events{/privacy}","received_events_url":"https://api.github.com/users/geraldhumphries/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T04:35:57Z","updated_at":"2016-01-15T04:35:57Z","body":"@deepu105 see my suggested approach in my first comment. It would make the api calls in the controllers also follow the globally configured page size (and can be overridden by following the suggestion @ruddell made in his comment in #2625) but I don't know if injecting config objects into controllers like that is considered best practice."}}