{"action":"created","comment":{"url":"https://api.github.com/repos/upexcel/recruit/pulls/comments/176901956","pull_request_review_id":106691559,"id":176901956,"diff_hunk":"@@ -0,0 +1,109 @@\n+import { Component, OnInit } from '@angular/core';\n+import {config} from './../../config/config';\n+import * as _ from 'lodash'\n+import { ImapMailsService } from 'app/service/imapemails.service';\n+import { MatDialogRef } from '@angular/material';\n+\n+@Component({\n+    selector: 'app-all-test-question',\n+    templateUrl: './all-test-question.component.html',\n+    styleUrls: ['./all-test-question.component.scss']\n+})\n+export class AllTestQuestionComponent implements OnInit {\n+    testType: any;\n+    questionType: any;\n+    questions: any;\n+    selectedType: any;\n+    loading: boolean;\n+    subjective: boolean;\n+    selectedData = [];\n+    constructor(private dialogRef: MatDialogRef<any>, private apicall: ImapMailsService) { }\n+\n+    ngOnInit() {\n+        this.testType = config['testType'];\n+        this.getQues(config['testType'][0]['type']);\n+    }\n+\n+    getQues(questionType: any) {\n+        this.questionType = questionType;\n+        this.apicall.getQuesAdmin(questionType).subscribe(res => {\n+            this.questions = res.data;\n+            if (res.questionType === 'Objective') {\n+                this.questions[0]['hidden'] = true;\n+            }\n+            this.checkedItem(res.questionType);\n+        }, err => {\n+            this.loading = false;\n+        });\n+    }\n+    checkedItem(questionType) {\n+        if (questionType === 'Objective') {\n+            _.forEach(this.questions, (group, groupKey) => {","path":"src/app/modules/all-test-question/all-test-question.component.ts","position":41,"original_position":41,"commit_id":"b1225101784ae769b815d8f254c2a337a889fe9f","original_commit_id":"b1225101784ae769b815d8f254c2a337a889fe9f","user":{"login":"upexcel","id":15088401,"avatar_url":"https://avatars3.githubusercontent.com/u/15088401?v=4","gravatar_id":"","url":"https://api.github.com/users/upexcel","html_url":"https://github.com/upexcel","followers_url":"https://api.github.com/users/upexcel/followers","following_url":"https://api.github.com/users/upexcel/following{/other_user}","gists_url":"https://api.github.com/users/upexcel/gists{/gist_id}","starred_url":"https://api.github.com/users/upexcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/upexcel/subscriptions","organizations_url":"https://api.github.com/users/upexcel/orgs","repos_url":"https://api.github.com/users/upexcel/repos","events_url":"https://api.github.com/users/upexcel/events{/privacy}","received_events_url":"https://api.github.com/users/upexcel/received_events","type":"User","site_admin":false},"body":"move this looping to service","created_at":"2018-03-24T06:50:40Z","updated_at":"2018-03-24T06:50:40Z","html_url":"https://github.com/upexcel/recruit/pull/383#discussion_r176901956","pull_request_url":"https://api.github.com/repos/upexcel/recruit/pulls/383","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/upexcel/recruit/pulls/comments/176901956"},"html":{"href":"https://github.com/upexcel/recruit/pull/383#discussion_r176901956"},"pull_request":{"href":"https://api.github.com/repos/upexcel/recruit/pulls/383"}}},"pull_request":{"url":"https://api.github.com/repos/upexcel/recruit/pulls/383","id":176433287,"html_url":"https://github.com/upexcel/recruit/pull/383","diff_url":"https://github.com/upexcel/recruit/pull/383.diff","patch_url":"https://github.com/upexcel/recruit/pull/383.patch","issue_url":"https://api.github.com/repos/upexcel/recruit/issues/383","number":383,"state":"open","locked":false,"title":"exam by type subjective and objective","user":{"login":"upexcel","id":15088401,"avatar_url":"https://avatars3.githubusercontent.com/u/15088401?v=4","gravatar_id":"","url":"https://api.github.com/users/upexcel","html_url":"https://github.com/upexcel","followers_url":"https://api.github.com/users/upexcel/followers","following_url":"https://api.github.com/users/upexcel/following{/other_user}","gists_url":"https://api.github.com/users/upexcel/gists{/gist_id}","starred_url":"https://api.github.com/users/upexcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/upexcel/subscriptions","organizations_url":"https://api.github.com/users/upexcel/orgs","repos_url":"https://api.github.com/users/upexcel/repos","events_url":"https://api.github.com/users/upexcel/events{/privacy}","received_events_url":"https://api.github.com/users/upexcel/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-21T10:30:34Z","updated_at":"2018-03-24T06:50:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5f47d5ec5449367b91058b54d00c63717539814","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/upexcel/recruit/pulls/383/commits","review_comments_url":"https://api.github.com/repos/upexcel/recruit/pulls/383/comments","review_comment_url":"https://api.github.com/repos/upexcel/recruit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/upexcel/recruit/issues/383/comments","statuses_url":"https://api.github.com/repos/upexcel/recruit/statuses/b1225101784ae769b815d8f254c2a337a889fe9f","head":{"label":"upexcel:paginationScore","ref":"paginationScore","sha":"b1225101784ae769b815d8f254c2a337a889fe9f","user":{"login":"upexcel","id":15088401,"avatar_url":"https://avatars3.githubusercontent.com/u/15088401?v=4","gravatar_id":"","url":"https://api.github.com/users/upexcel","html_url":"https://github.com/upexcel","followers_url":"https://api.github.com/users/upexcel/followers","following_url":"https://api.github.com/users/upexcel/following{/other_user}","gists_url":"https://api.github.com/users/upexcel/gists{/gist_id}","starred_url":"https://api.github.com/users/upexcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/upexcel/subscriptions","organizations_url":"https://api.github.com/users/upexcel/orgs","repos_url":"https://api.github.com/users/upexcel/repos","events_url":"https://api.github.com/users/upexcel/events{/privacy}","received_events_url":"https://api.github.com/users/upexcel/received_events","type":"User","site_admin":false},"repo":{"id":89362636,"name":"recruit","full_name":"upexcel/recruit","owner":{"login":"upexcel","id":15088401,"avatar_url":"https://avatars3.githubusercontent.com/u/15088401?v=4","gravatar_id":"","url":"https://api.github.com/users/upexcel","html_url":"https://github.com/upexcel","followers_url":"https://api.github.com/users/upexcel/followers","following_url":"https://api.github.com/users/upexcel/following{/other_user}","gists_url":"https://api.github.com/users/upexcel/gists{/gist_id}","starred_url":"https://api.github.com/users/upexcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/upexcel/subscriptions","organizations_url":"https://api.github.com/users/upexcel/orgs","repos_url":"https://api.github.com/users/upexcel/repos","events_url":"https://api.github.com/users/upexcel/events{/privacy}","received_events_url":"https://api.github.com/users/upexcel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/upexcel/recruit","description":null,"fork":false,"url":"https://api.github.com/repos/upexcel/recruit","forks_url":"https://api.github.com/repos/upexcel/recruit/forks","keys_url":"https://api.github.com/repos/upexcel/recruit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/upexcel/recruit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/upexcel/recruit/teams","hooks_url":"https://api.github.com/repos/upexcel/recruit/hooks","issue_events_url":"https://api.github.com/repos/upexcel/recruit/issues/events{/number}","events_url":"https://api.github.com/repos/upexcel/recruit/events","assignees_url":"https://api.github.com/repos/upexcel/recruit/assignees{/user}","branches_url":"https://api.github.com/repos/upexcel/recruit/branches{/branch}","tags_url":"https://api.github.com/repos/upexcel/recruit/tags","blobs_url":"https://api.github.com/repos/upexcel/recruit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/upexcel/recruit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/upexcel/recruit/git/refs{/sha}","trees_url":"https://api.github.com/repos/upexcel/recruit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/upexcel/recruit/statuses/{sha}","languages_url":"https://api.github.com/repos/upexcel/recruit/languages","stargazers_url":"https://api.github.com/repos/upexcel/recruit/stargazers","contributors_url":"https://api.github.com/repos/upexcel/recruit/contributors","subscribers_url":"https://api.github.com/repos/upexcel/recruit/subscribers","subscription_url":"https://api.github.com/repos/upexcel/recruit/subscription","commits_url":"https://api.github.com/repos/upexcel/recruit/commits{/sha}","git_commits_url":"https://api.github.com/repos/upexcel/recruit/git/commits{/sha}","comments_url":"https://api.github.com/repos/upexcel/recruit/comments{/number}","issue_comment_url":"https://api.github.com/repos/upexcel/recruit/issues/comments{/number}","contents_url":"https://api.github.com/repos/upexcel/recruit/contents/{+path}","compare_url":"https://api.github.com/repos/upexcel/recruit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/upexcel/recruit/merges","archive_url":"https://api.github.com/repos/upexcel/recruit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/upexcel/recruit/downloads","issues_url":"https://api.github.com/repos/upexcel/recruit/issues{/number}","pulls_url":"https://api.github.com/repos/upexcel/recruit/pulls{/number}","milestones_url":"https://api.github.com/repos/upexcel/recruit/milestones{/number}","notifications_url":"https://api.github.com/repos/upexcel/recruit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/upexcel/recruit/labels{/name}","releases_url":"https://api.github.com/repos/upexcel/recruit/releases{/id}","deployments_url":"https://api.github.com/repos/upexcel/recruit/deployments","created_at":"2017-04-25T13:16:05Z","updated_at":"2018-03-23T09:04:33Z","pushed_at":"2018-03-23T14:04:36Z","git_url":"git://github.com/upexcel/recruit.git","ssh_url":"git@github.com:upexcel/recruit.git","clone_url":"https://github.com/upexcel/recruit.git","svn_url":"https://github.com/upexcel/recruit","homepage":null,"size":1764,"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":9,"license":null,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"upexcel:master","ref":"master","sha":"f91e5ada4f3aada7c73727e2c30705d2988c7927","user":{"login":"upexcel","id":15088401,"avatar_url":"https://avatars3.githubusercontent.com/u/15088401?v=4","gravatar_id":"","url":"https://api.github.com/users/upexcel","html_url":"https://github.com/upexcel","followers_url":"https://api.github.com/users/upexcel/followers","following_url":"https://api.github.com/users/upexcel/following{/other_user}","gists_url":"https://api.github.com/users/upexcel/gists{/gist_id}","starred_url":"https://api.github.com/users/upexcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/upexcel/subscriptions","organizations_url":"https://api.github.com/users/upexcel/orgs","repos_url":"https://api.github.com/users/upexcel/repos","events_url":"https://api.github.com/users/upexcel/events{/privacy}","received_events_url":"https://api.github.com/users/upexcel/received_events","type":"User","site_admin":false},"repo":{"id":89362636,"name":"recruit","full_name":"upexcel/recruit","owner":{"login":"upexcel","id":15088401,"avatar_url":"https://avatars3.githubusercontent.com/u/15088401?v=4","gravatar_id":"","url":"https://api.github.com/users/upexcel","html_url":"https://github.com/upexcel","followers_url":"https://api.github.com/users/upexcel/followers","following_url":"https://api.github.com/users/upexcel/following{/other_user}","gists_url":"https://api.github.com/users/upexcel/gists{/gist_id}","starred_url":"https://api.github.com/users/upexcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/upexcel/subscriptions","organizations_url":"https://api.github.com/users/upexcel/orgs","repos_url":"https://api.github.com/users/upexcel/repos","events_url":"https://api.github.com/users/upexcel/events{/privacy}","received_events_url":"https://api.github.com/users/upexcel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/upexcel/recruit","description":null,"fork":false,"url":"https://api.github.com/repos/upexcel/recruit","forks_url":"https://api.github.com/repos/upexcel/recruit/forks","keys_url":"https://api.github.com/repos/upexcel/recruit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/upexcel/recruit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/upexcel/recruit/teams","hooks_url":"https://api.github.com/repos/upexcel/recruit/hooks","issue_events_url":"https://api.github.com/repos/upexcel/recruit/issues/events{/number}","events_url":"https://api.github.com/repos/upexcel/recruit/events","assignees_url":"https://api.github.com/repos/upexcel/recruit/assignees{/user}","branches_url":"https://api.github.com/repos/upexcel/recruit/branches{/branch}","tags_url":"https://api.github.com/repos/upexcel/recruit/tags","blobs_url":"https://api.github.com/repos/upexcel/recruit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/upexcel/recruit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/upexcel/recruit/git/refs{/sha}","trees_url":"https://api.github.com/repos/upexcel/recruit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/upexcel/recruit/statuses/{sha}","languages_url":"https://api.github.com/repos/upexcel/recruit/languages","stargazers_url":"https://api.github.com/repos/upexcel/recruit/stargazers","contributors_url":"https://api.github.com/repos/upexcel/recruit/contributors","subscribers_url":"https://api.github.com/repos/upexcel/recruit/subscribers","subscription_url":"https://api.github.com/repos/upexcel/recruit/subscription","commits_url":"https://api.github.com/repos/upexcel/recruit/commits{/sha}","git_commits_url":"https://api.github.com/repos/upexcel/recruit/git/commits{/sha}","comments_url":"https://api.github.com/repos/upexcel/recruit/comments{/number}","issue_comment_url":"https://api.github.com/repos/upexcel/recruit/issues/comments{/number}","contents_url":"https://api.github.com/repos/upexcel/recruit/contents/{+path}","compare_url":"https://api.github.com/repos/upexcel/recruit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/upexcel/recruit/merges","archive_url":"https://api.github.com/repos/upexcel/recruit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/upexcel/recruit/downloads","issues_url":"https://api.github.com/repos/upexcel/recruit/issues{/number}","pulls_url":"https://api.github.com/repos/upexcel/recruit/pulls{/number}","milestones_url":"https://api.github.com/repos/upexcel/recruit/milestones{/number}","notifications_url":"https://api.github.com/repos/upexcel/recruit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/upexcel/recruit/labels{/name}","releases_url":"https://api.github.com/repos/upexcel/recruit/releases{/id}","deployments_url":"https://api.github.com/repos/upexcel/recruit/deployments","created_at":"2017-04-25T13:16:05Z","updated_at":"2018-03-23T09:04:33Z","pushed_at":"2018-03-23T14:04:36Z","git_url":"git://github.com/upexcel/recruit.git","ssh_url":"git@github.com:upexcel/recruit.git","clone_url":"https://github.com/upexcel/recruit.git","svn_url":"https://github.com/upexcel/recruit","homepage":null,"size":1764,"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":9,"license":null,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/upexcel/recruit/pulls/383"},"html":{"href":"https://github.com/upexcel/recruit/pull/383"},"issue":{"href":"https://api.github.com/repos/upexcel/recruit/issues/383"},"comments":{"href":"https://api.github.com/repos/upexcel/recruit/issues/383/comments"},"review_comments":{"href":"https://api.github.com/repos/upexcel/recruit/pulls/383/comments"},"review_comment":{"href":"https://api.github.com/repos/upexcel/recruit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/upexcel/recruit/pulls/383/commits"},"statuses":{"href":"https://api.github.com/repos/upexcel/recruit/statuses/b1225101784ae769b815d8f254c2a337a889fe9f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"upexcel"}}