{"action":"created","comment":{"url":"https://api.github.com/repos/umapyla/staff-web/pulls/comments/235372765","pull_request_review_id":177221094,"id":235372765,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTM3Mjc2NQ==","diff_hunk":"@@ -0,0 +1,71 @@\n+import { Component, OnInit } from '@angular/core';\n+import { Response, Http } from '@angular/http';\n+import { TranscationdetailService } from '../transcationdetail.service';\n+import { transactionDetail } from './transaction.model';\n+\n+@Component({\n+  selector: 'app-transcation-listing',\n+  templateUrl: './transcation-listing.component.html',\n+  styleUrls: ['./transcation-listing.component.css']\n+})\n+export class TranscationListingComponent implements OnInit {\n+    transactions: Array<transactionDetail>;\n+    transactions3: Array<any>;\n+    listlength: Number;\n+    minIndex:number;\n+    maxIndex:number;\n+    error: boolean;\n+    isviewMore:boolean;\n+    myValue = 0;\n+  \n+  constructor(private transcationService: TranscationdetailService) { }\n+\n+  ngOnInit() {\n+    this.minIndex=0;\n+    this.transactions3=[];\n+   this.getData();\n+   this.error = false;\n+   //this.listlength = 5;\n+   this.isviewMore= true;\n+  }\n+\n+getData(){\n+    this.transcationService.getData().subscribe(res=>{\n+      this.transactions = res.json();\n+      this.viewMoretranscations();\n+     //this.transactions3 = res.json();\n+  },(err: Error) => {\n+    \n+      console.log (err);    \n+       this.error = true;\n+  });\n+  \n+}\n+viewMoretranscations(){\n+\n+  this.minIndex=this.minIndex+5;\n+  this.maxIndex=this.minIndex+5;\n+  \n+if(this.maxIndex>this.transactions.length)\n+  {\n+    this.isviewMore = false;\n+    console.log(\"hide transactions\");\n+  } else {\n+ let pushValues:any=this.transactions.slice( this.minIndex, this.maxIndex);","path":"src/app/transcation-listing/transcation-listing.component.ts","position":54,"original_position":54,"commit_id":"35a090028331700f6486ca3ec7c2d8b209f9b73f","original_commit_id":"35a090028331700f6486ca3ec7c2d8b209f9b73f","user":{"login":"priyankar-nihilent","id":35022731,"node_id":"MDQ6VXNlcjM1MDIyNzMx","avatar_url":"https://avatars1.githubusercontent.com/u/35022731?v=4","gravatar_id":"","url":"https://api.github.com/users/priyankar-nihilent","html_url":"https://github.com/priyankar-nihilent","followers_url":"https://api.github.com/users/priyankar-nihilent/followers","following_url":"https://api.github.com/users/priyankar-nihilent/following{/other_user}","gists_url":"https://api.github.com/users/priyankar-nihilent/gists{/gist_id}","starred_url":"https://api.github.com/users/priyankar-nihilent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/priyankar-nihilent/subscriptions","organizations_url":"https://api.github.com/users/priyankar-nihilent/orgs","repos_url":"https://api.github.com/users/priyankar-nihilent/repos","events_url":"https://api.github.com/users/priyankar-nihilent/events{/privacy}","received_events_url":"https://api.github.com/users/priyankar-nihilent/received_events","type":"User","site_admin":false},"body":"Don't assign any as a value to variable.","created_at":"2018-11-21T12:47:20Z","updated_at":"2018-11-21T12:47:20Z","html_url":"https://github.com/umapyla/staff-web/pull/5#discussion_r235372765","pull_request_url":"https://api.github.com/repos/umapyla/staff-web/pulls/5","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/umapyla/staff-web/pulls/comments/235372765"},"html":{"href":"https://github.com/umapyla/staff-web/pull/5#discussion_r235372765"},"pull_request":{"href":"https://api.github.com/repos/umapyla/staff-web/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/umapyla/staff-web/pulls/5","id":232640989,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyNjQwOTg5","html_url":"https://github.com/umapyla/staff-web/pull/5","diff_url":"https://github.com/umapyla/staff-web/pull/5.diff","patch_url":"https://github.com/umapyla/staff-web/pull/5.patch","issue_url":"https://api.github.com/repos/umapyla/staff-web/issues/5","number":5,"state":"open","locked":false,"title":"Transaction listing","user":{"login":"TBarhate1994","id":44998351,"node_id":"MDQ6VXNlcjQ0OTk4MzUx","avatar_url":"https://avatars3.githubusercontent.com/u/44998351?v=4","gravatar_id":"","url":"https://api.github.com/users/TBarhate1994","html_url":"https://github.com/TBarhate1994","followers_url":"https://api.github.com/users/TBarhate1994/followers","following_url":"https://api.github.com/users/TBarhate1994/following{/other_user}","gists_url":"https://api.github.com/users/TBarhate1994/gists{/gist_id}","starred_url":"https://api.github.com/users/TBarhate1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TBarhate1994/subscriptions","organizations_url":"https://api.github.com/users/TBarhate1994/orgs","repos_url":"https://api.github.com/users/TBarhate1994/repos","events_url":"https://api.github.com/users/TBarhate1994/events{/privacy}","received_events_url":"https://api.github.com/users/TBarhate1994/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-21T12:10:27Z","updated_at":"2018-11-21T12:47:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd568dd6e8a9452e33ecf28f3bd96e18f79b7319","assignee":null,"assignees":[],"requested_reviewers":[{"login":"umapyla","id":33117818,"node_id":"MDQ6VXNlcjMzMTE3ODE4","avatar_url":"https://avatars2.githubusercontent.com/u/33117818?v=4","gravatar_id":"","url":"https://api.github.com/users/umapyla","html_url":"https://github.com/umapyla","followers_url":"https://api.github.com/users/umapyla/followers","following_url":"https://api.github.com/users/umapyla/following{/other_user}","gists_url":"https://api.github.com/users/umapyla/gists{/gist_id}","starred_url":"https://api.github.com/users/umapyla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umapyla/subscriptions","organizations_url":"https://api.github.com/users/umapyla/orgs","repos_url":"https://api.github.com/users/umapyla/repos","events_url":"https://api.github.com/users/umapyla/events{/privacy}","received_events_url":"https://api.github.com/users/umapyla/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/umapyla/staff-web/pulls/5/commits","review_comments_url":"https://api.github.com/repos/umapyla/staff-web/pulls/5/comments","review_comment_url":"https://api.github.com/repos/umapyla/staff-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/umapyla/staff-web/issues/5/comments","statuses_url":"https://api.github.com/repos/umapyla/staff-web/statuses/35a090028331700f6486ca3ec7c2d8b209f9b73f","head":{"label":"umapyla:feature/transcation-listing","ref":"feature/transcation-listing","sha":"35a090028331700f6486ca3ec7c2d8b209f9b73f","user":{"login":"umapyla","id":33117818,"node_id":"MDQ6VXNlcjMzMTE3ODE4","avatar_url":"https://avatars2.githubusercontent.com/u/33117818?v=4","gravatar_id":"","url":"https://api.github.com/users/umapyla","html_url":"https://github.com/umapyla","followers_url":"https://api.github.com/users/umapyla/followers","following_url":"https://api.github.com/users/umapyla/following{/other_user}","gists_url":"https://api.github.com/users/umapyla/gists{/gist_id}","starred_url":"https://api.github.com/users/umapyla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umapyla/subscriptions","organizations_url":"https://api.github.com/users/umapyla/orgs","repos_url":"https://api.github.com/users/umapyla/repos","events_url":"https://api.github.com/users/umapyla/events{/privacy}","received_events_url":"https://api.github.com/users/umapyla/received_events","type":"User","site_admin":false},"repo":{"id":155822419,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU4MjI0MTk=","name":"staff-web","full_name":"umapyla/staff-web","private":false,"owner":{"login":"umapyla","id":33117818,"node_id":"MDQ6VXNlcjMzMTE3ODE4","avatar_url":"https://avatars2.githubusercontent.com/u/33117818?v=4","gravatar_id":"","url":"https://api.github.com/users/umapyla","html_url":"https://github.com/umapyla","followers_url":"https://api.github.com/users/umapyla/followers","following_url":"https://api.github.com/users/umapyla/following{/other_user}","gists_url":"https://api.github.com/users/umapyla/gists{/gist_id}","starred_url":"https://api.github.com/users/umapyla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umapyla/subscriptions","organizations_url":"https://api.github.com/users/umapyla/orgs","repos_url":"https://api.github.com/users/umapyla/repos","events_url":"https://api.github.com/users/umapyla/events{/privacy}","received_events_url":"https://api.github.com/users/umapyla/received_events","type":"User","site_admin":false},"html_url":"https://github.com/umapyla/staff-web","description":null,"fork":false,"url":"https://api.github.com/repos/umapyla/staff-web","forks_url":"https://api.github.com/repos/umapyla/staff-web/forks","keys_url":"https://api.github.com/repos/umapyla/staff-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/umapyla/staff-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/umapyla/staff-web/teams","hooks_url":"https://api.github.com/repos/umapyla/staff-web/hooks","issue_events_url":"https://api.github.com/repos/umapyla/staff-web/issues/events{/number}","events_url":"https://api.github.com/repos/umapyla/staff-web/events","assignees_url":"https://api.github.com/repos/umapyla/staff-web/assignees{/user}","branches_url":"https://api.github.com/repos/umapyla/staff-web/branches{/branch}","tags_url":"https://api.github.com/repos/umapyla/staff-web/tags","blobs_url":"https://api.github.com/repos/umapyla/staff-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/umapyla/staff-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/umapyla/staff-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/umapyla/staff-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/umapyla/staff-web/statuses/{sha}","languages_url":"https://api.github.com/repos/umapyla/staff-web/languages","stargazers_url":"https://api.github.com/repos/umapyla/staff-web/stargazers","contributors_url":"https://api.github.com/repos/umapyla/staff-web/contributors","subscribers_url":"https://api.github.com/repos/umapyla/staff-web/subscribers","subscription_url":"https://api.github.com/repos/umapyla/staff-web/subscription","commits_url":"https://api.github.com/repos/umapyla/staff-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/umapyla/staff-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/umapyla/staff-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/umapyla/staff-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/umapyla/staff-web/contents/{+path}","compare_url":"https://api.github.com/repos/umapyla/staff-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/umapyla/staff-web/merges","archive_url":"https://api.github.com/repos/umapyla/staff-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/umapyla/staff-web/downloads","issues_url":"https://api.github.com/repos/umapyla/staff-web/issues{/number}","pulls_url":"https://api.github.com/repos/umapyla/staff-web/pulls{/number}","milestones_url":"https://api.github.com/repos/umapyla/staff-web/milestones{/number}","notifications_url":"https://api.github.com/repos/umapyla/staff-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/umapyla/staff-web/labels{/name}","releases_url":"https://api.github.com/repos/umapyla/staff-web/releases{/id}","deployments_url":"https://api.github.com/repos/umapyla/staff-web/deployments","created_at":"2018-11-02T06:16:51Z","updated_at":"2018-11-19T09:48:37Z","pushed_at":"2018-11-21T12:15:52Z","git_url":"git://github.com/umapyla/staff-web.git","ssh_url":"git@github.com:umapyla/staff-web.git","clone_url":"https://github.com/umapyla/staff-web.git","svn_url":"https://github.com/umapyla/staff-web","homepage":null,"size":207,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"base":{"label":"umapyla:develop","ref":"develop","sha":"1abd3024970a1c306b32d4b6e6d0e81aca5fbca8","user":{"login":"umapyla","id":33117818,"node_id":"MDQ6VXNlcjMzMTE3ODE4","avatar_url":"https://avatars2.githubusercontent.com/u/33117818?v=4","gravatar_id":"","url":"https://api.github.com/users/umapyla","html_url":"https://github.com/umapyla","followers_url":"https://api.github.com/users/umapyla/followers","following_url":"https://api.github.com/users/umapyla/following{/other_user}","gists_url":"https://api.github.com/users/umapyla/gists{/gist_id}","starred_url":"https://api.github.com/users/umapyla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umapyla/subscriptions","organizations_url":"https://api.github.com/users/umapyla/orgs","repos_url":"https://api.github.com/users/umapyla/repos","events_url":"https://api.github.com/users/umapyla/events{/privacy}","received_events_url":"https://api.github.com/users/umapyla/received_events","type":"User","site_admin":false},"repo":{"id":155822419,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU4MjI0MTk=","name":"staff-web","full_name":"umapyla/staff-web","private":false,"owner":{"login":"umapyla","id":33117818,"node_id":"MDQ6VXNlcjMzMTE3ODE4","avatar_url":"https://avatars2.githubusercontent.com/u/33117818?v=4","gravatar_id":"","url":"https://api.github.com/users/umapyla","html_url":"https://github.com/umapyla","followers_url":"https://api.github.com/users/umapyla/followers","following_url":"https://api.github.com/users/umapyla/following{/other_user}","gists_url":"https://api.github.com/users/umapyla/gists{/gist_id}","starred_url":"https://api.github.com/users/umapyla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umapyla/subscriptions","organizations_url":"https://api.github.com/users/umapyla/orgs","repos_url":"https://api.github.com/users/umapyla/repos","events_url":"https://api.github.com/users/umapyla/events{/privacy}","received_events_url":"https://api.github.com/users/umapyla/received_events","type":"User","site_admin":false},"html_url":"https://github.com/umapyla/staff-web","description":null,"fork":false,"url":"https://api.github.com/repos/umapyla/staff-web","forks_url":"https://api.github.com/repos/umapyla/staff-web/forks","keys_url":"https://api.github.com/repos/umapyla/staff-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/umapyla/staff-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/umapyla/staff-web/teams","hooks_url":"https://api.github.com/repos/umapyla/staff-web/hooks","issue_events_url":"https://api.github.com/repos/umapyla/staff-web/issues/events{/number}","events_url":"https://api.github.com/repos/umapyla/staff-web/events","assignees_url":"https://api.github.com/repos/umapyla/staff-web/assignees{/user}","branches_url":"https://api.github.com/repos/umapyla/staff-web/branches{/branch}","tags_url":"https://api.github.com/repos/umapyla/staff-web/tags","blobs_url":"https://api.github.com/repos/umapyla/staff-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/umapyla/staff-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/umapyla/staff-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/umapyla/staff-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/umapyla/staff-web/statuses/{sha}","languages_url":"https://api.github.com/repos/umapyla/staff-web/languages","stargazers_url":"https://api.github.com/repos/umapyla/staff-web/stargazers","contributors_url":"https://api.github.com/repos/umapyla/staff-web/contributors","subscribers_url":"https://api.github.com/repos/umapyla/staff-web/subscribers","subscription_url":"https://api.github.com/repos/umapyla/staff-web/subscription","commits_url":"https://api.github.com/repos/umapyla/staff-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/umapyla/staff-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/umapyla/staff-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/umapyla/staff-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/umapyla/staff-web/contents/{+path}","compare_url":"https://api.github.com/repos/umapyla/staff-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/umapyla/staff-web/merges","archive_url":"https://api.github.com/repos/umapyla/staff-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/umapyla/staff-web/downloads","issues_url":"https://api.github.com/repos/umapyla/staff-web/issues{/number}","pulls_url":"https://api.github.com/repos/umapyla/staff-web/pulls{/number}","milestones_url":"https://api.github.com/repos/umapyla/staff-web/milestones{/number}","notifications_url":"https://api.github.com/repos/umapyla/staff-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/umapyla/staff-web/labels{/name}","releases_url":"https://api.github.com/repos/umapyla/staff-web/releases{/id}","deployments_url":"https://api.github.com/repos/umapyla/staff-web/deployments","created_at":"2018-11-02T06:16:51Z","updated_at":"2018-11-19T09:48:37Z","pushed_at":"2018-11-21T12:15:52Z","git_url":"git://github.com/umapyla/staff-web.git","ssh_url":"git@github.com:umapyla/staff-web.git","clone_url":"https://github.com/umapyla/staff-web.git","svn_url":"https://github.com/umapyla/staff-web","homepage":null,"size":207,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/umapyla/staff-web/pulls/5"},"html":{"href":"https://github.com/umapyla/staff-web/pull/5"},"issue":{"href":"https://api.github.com/repos/umapyla/staff-web/issues/5"},"comments":{"href":"https://api.github.com/repos/umapyla/staff-web/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/umapyla/staff-web/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/umapyla/staff-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/umapyla/staff-web/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/umapyla/staff-web/statuses/35a090028331700f6486ca3ec7c2d8b209f9b73f"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"priyankar-nihilent"}}