{"action":"created","comment":{"url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/pulls/comments/59352598","id":59352598,"diff_hunk":"@@ -31,19 +36,34 @@\n     private final String firstJob;\n     private final String firstJobUrl;\n     private final boolean firstJobParameterized;\n+    \n+    private final int noOfPipelines;\n+    \n+    private int componentNumber = 0;\n+    \n+    private String pagingData = null;\n+    \n+    private boolean enablePaging = false;\n \n     public Component(String name, String firstJob, String firstJobUrl, boolean firstJobParameterized,\n-            List<Pipeline> pipelines) {\n+            List<Pipeline> pipelines, int noOfPipelines, boolean enablePaging) {\n         super(name);\n         this.pipelines = ImmutableList.copyOf(pipelines);\n         this.firstJob = firstJob;\n         this.firstJobUrl = firstJobUrl;\n         this.firstJobParameterized = firstJobParameterized;\n+        this.noOfPipelines = noOfPipelines;\n+        this.enablePaging = enablePaging;\n     }\n \n     @Exported\n     public List<Pipeline> getPipelines() {\n-        return pipelines;\n+    \tif(enablePaging) {","path":"src/main/java/se/diabol/jenkins/pipeline/domain/Component.java","position":43,"original_position":43,"commit_id":"de43a5175058c4a28ec17a65b35bc6638d121f9d","original_commit_id":"de43a5175058c4a28ec17a65b35bc6638d121f9d","user":{"login":"szpak","id":148013,"avatar_url":"https://avatars.githubusercontent.com/u/148013?v=3","gravatar_id":"","url":"https://api.github.com/users/szpak","html_url":"https://github.com/szpak","followers_url":"https://api.github.com/users/szpak/followers","following_url":"https://api.github.com/users/szpak/following{/other_user}","gists_url":"https://api.github.com/users/szpak/gists{/gist_id}","starred_url":"https://api.github.com/users/szpak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szpak/subscriptions","organizations_url":"https://api.github.com/users/szpak/orgs","repos_url":"https://api.github.com/users/szpak/repos","events_url":"https://api.github.com/users/szpak/events{/privacy}","received_events_url":"https://api.github.com/users/szpak/received_events","type":"User","site_admin":false},"body":"Inconsistent formatting - missing a space between `if ` and `(`. In multiple places.","created_at":"2016-04-12T10:16:08Z","updated_at":"2016-04-12T10:16:08Z","html_url":"https://github.com/Diabol/delivery-pipeline-plugin/pull/174#discussion_r59352598","pull_request_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/pulls/174","_links":{"self":{"href":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/pulls/comments/59352598"},"html":{"href":"https://github.com/Diabol/delivery-pipeline-plugin/pull/174#discussion_r59352598"},"pull_request":{"href":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/pulls/174"}}},"pull_request":{"url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/pulls/174","id":65879626,"html_url":"https://github.com/Diabol/delivery-pipeline-plugin/pull/174","diff_url":"https://github.com/Diabol/delivery-pipeline-plugin/pull/174.diff","patch_url":"https://github.com/Diabol/delivery-pipeline-plugin/pull/174.patch","issue_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/issues/174","number":174,"state":"open","locked":false,"title":"Added Paging option to Delivery Pipeline","user":{"login":"pskumar448","id":8586903,"avatar_url":"https://avatars.githubusercontent.com/u/8586903?v=3","gravatar_id":"","url":"https://api.github.com/users/pskumar448","html_url":"https://github.com/pskumar448","followers_url":"https://api.github.com/users/pskumar448/followers","following_url":"https://api.github.com/users/pskumar448/following{/other_user}","gists_url":"https://api.github.com/users/pskumar448/gists{/gist_id}","starred_url":"https://api.github.com/users/pskumar448/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pskumar448/subscriptions","organizations_url":"https://api.github.com/users/pskumar448/orgs","repos_url":"https://api.github.com/users/pskumar448/repos","events_url":"https://api.github.com/users/pskumar448/events{/privacy}","received_events_url":"https://api.github.com/users/pskumar448/received_events","type":"User","site_admin":false},"body":"Added ability to browser previous pipelines using Paging\r\n\r\nOption provided to Enable/Disable Paging.\r\nInitially Paging option will be false and DPP behaves like default design or behavior \r\n\r\nAfter Enabling Paging option through configure page, the noOfPipelines becomes the Page Size.\r\nProvided Paging for component wise, at a time only one component can be browse through pipelines.\r\n\r\nThis gives us to browse old pipelines when they are exceeded 50 pipelines.\r\n\r\nFixes \r\nhttps://issues.jenkins-ci.org/browse/JENKINS-28918","created_at":"2016-04-09T12:21:34Z","updated_at":"2016-04-12T10:16:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e0a759a88633318b20b3493d2fdf41ce8c046a9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/pulls/174/commits","review_comments_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/pulls/174/comments","review_comment_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/issues/174/comments","statuses_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/statuses/de43a5175058c4a28ec17a65b35bc6638d121f9d","head":{"label":"pskumar448:Paging","ref":"Paging","sha":"de43a5175058c4a28ec17a65b35bc6638d121f9d","user":{"login":"pskumar448","id":8586903,"avatar_url":"https://avatars.githubusercontent.com/u/8586903?v=3","gravatar_id":"","url":"https://api.github.com/users/pskumar448","html_url":"https://github.com/pskumar448","followers_url":"https://api.github.com/users/pskumar448/followers","following_url":"https://api.github.com/users/pskumar448/following{/other_user}","gists_url":"https://api.github.com/users/pskumar448/gists{/gist_id}","starred_url":"https://api.github.com/users/pskumar448/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pskumar448/subscriptions","organizations_url":"https://api.github.com/users/pskumar448/orgs","repos_url":"https://api.github.com/users/pskumar448/repos","events_url":"https://api.github.com/users/pskumar448/events{/privacy}","received_events_url":"https://api.github.com/users/pskumar448/received_events","type":"User","site_admin":false},"repo":{"id":55657166,"name":"delivery-pipeline-plugin","full_name":"pskumar448/delivery-pipeline-plugin","owner":{"login":"pskumar448","id":8586903,"avatar_url":"https://avatars.githubusercontent.com/u/8586903?v=3","gravatar_id":"","url":"https://api.github.com/users/pskumar448","html_url":"https://github.com/pskumar448","followers_url":"https://api.github.com/users/pskumar448/followers","following_url":"https://api.github.com/users/pskumar448/following{/other_user}","gists_url":"https://api.github.com/users/pskumar448/gists{/gist_id}","starred_url":"https://api.github.com/users/pskumar448/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pskumar448/subscriptions","organizations_url":"https://api.github.com/users/pskumar448/orgs","repos_url":"https://api.github.com/users/pskumar448/repos","events_url":"https://api.github.com/users/pskumar448/events{/privacy}","received_events_url":"https://api.github.com/users/pskumar448/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pskumar448/delivery-pipeline-plugin","description":"Jenkins plugin for pipeline visualisation, perfect for Continuous Delivery ","fork":true,"url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin","forks_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/forks","keys_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/teams","hooks_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/hooks","issue_events_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/events","assignees_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/tags","blobs_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/languages","stargazers_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/stargazers","contributors_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/contributors","subscribers_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/subscribers","subscription_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/subscription","commits_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/merges","archive_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/downloads","issues_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/labels{/name}","releases_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/pskumar448/delivery-pipeline-plugin/deployments","created_at":"2016-04-07T02:31:13Z","updated_at":"2016-04-07T02:31:14Z","pushed_at":"2016-04-09T09:25:13Z","git_url":"git://github.com/pskumar448/delivery-pipeline-plugin.git","ssh_url":"git@github.com:pskumar448/delivery-pipeline-plugin.git","clone_url":"https://github.com/pskumar448/delivery-pipeline-plugin.git","svn_url":"https://github.com/pskumar448/delivery-pipeline-plugin","homepage":"","size":1578,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Diabol:master","ref":"master","sha":"2db2555fdbabc824497b8f4d63c43199585a2666","user":{"login":"Diabol","id":1213435,"avatar_url":"https://avatars.githubusercontent.com/u/1213435?v=3","gravatar_id":"","url":"https://api.github.com/users/Diabol","html_url":"https://github.com/Diabol","followers_url":"https://api.github.com/users/Diabol/followers","following_url":"https://api.github.com/users/Diabol/following{/other_user}","gists_url":"https://api.github.com/users/Diabol/gists{/gist_id}","starred_url":"https://api.github.com/users/Diabol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diabol/subscriptions","organizations_url":"https://api.github.com/users/Diabol/orgs","repos_url":"https://api.github.com/users/Diabol/repos","events_url":"https://api.github.com/users/Diabol/events{/privacy}","received_events_url":"https://api.github.com/users/Diabol/received_events","type":"Organization","site_admin":false},"repo":{"id":9543349,"name":"delivery-pipeline-plugin","full_name":"Diabol/delivery-pipeline-plugin","owner":{"login":"Diabol","id":1213435,"avatar_url":"https://avatars.githubusercontent.com/u/1213435?v=3","gravatar_id":"","url":"https://api.github.com/users/Diabol","html_url":"https://github.com/Diabol","followers_url":"https://api.github.com/users/Diabol/followers","following_url":"https://api.github.com/users/Diabol/following{/other_user}","gists_url":"https://api.github.com/users/Diabol/gists{/gist_id}","starred_url":"https://api.github.com/users/Diabol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diabol/subscriptions","organizations_url":"https://api.github.com/users/Diabol/orgs","repos_url":"https://api.github.com/users/Diabol/repos","events_url":"https://api.github.com/users/Diabol/events{/privacy}","received_events_url":"https://api.github.com/users/Diabol/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Diabol/delivery-pipeline-plugin","description":"Jenkins plugin for pipeline visualisation, perfect for Continuous Delivery ","fork":false,"url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin","forks_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/forks","keys_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/teams","hooks_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/hooks","issue_events_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/events","assignees_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/tags","blobs_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/languages","stargazers_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/stargazers","contributors_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/contributors","subscribers_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/subscribers","subscription_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/subscription","commits_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/merges","archive_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/downloads","issues_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/labels{/name}","releases_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/deployments","created_at":"2013-04-19T10:46:35Z","updated_at":"2016-04-06T09:27:16Z","pushed_at":"2016-04-11T13:03:27Z","git_url":"git://github.com/Diabol/delivery-pipeline-plugin.git","ssh_url":"git@github.com:Diabol/delivery-pipeline-plugin.git","clone_url":"https://github.com/Diabol/delivery-pipeline-plugin.git","svn_url":"https://github.com/Diabol/delivery-pipeline-plugin","homepage":"","size":2020,"stargazers_count":56,"watchers_count":56,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":8,"forks":62,"open_issues":8,"watchers":56,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/pulls/174"},"html":{"href":"https://github.com/Diabol/delivery-pipeline-plugin/pull/174"},"issue":{"href":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/issues/174"},"comments":{"href":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/issues/174/comments"},"review_comments":{"href":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/pulls/174/comments"},"review_comment":{"href":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/pulls/174/commits"},"statuses":{"href":"https://api.github.com/repos/Diabol/delivery-pipeline-plugin/statuses/de43a5175058c4a28ec17a65b35bc6638d121f9d"}}}}