{"action":"created","comment":{"url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/comments/51422058","id":51422058,"diff_hunk":"@@ -8,4 +8,24 @@ class Interview < ActiveRecord::Base\n   validates :lastname, :firstname, presence: true\n   validates :template_id, presence: true\n   validates :target_level, presence: true, inclusion: { in: TARGET_LEVELS, message: \"%{value} is not a valid level\" }\n+\n+  def self.interview_question_mark_nil_first(interview)\n+    mark_nil_first = 1\n+    mark_nil = false\n+    interview.interview_questions.each do |q|\n+      if q.mark.nil? && mark_nil == false\n+        mark_nil_first = q.id\n+        mark_nil = true\n+      end\n+    end\n+    mark_nil_first\n+  end\n+\n+  def self.interview_question_mark_nil(interview)","path":"app/models/interview.rb","position":17,"original_position":17,"commit_id":"88e20a68b770a2113865676764987108b9ef8cca","original_commit_id":"b492020fec39526f8ef5cf480d3bd6876e61e70d","user":{"login":"vvs79","id":15619504,"avatar_url":"https://avatars.githubusercontent.com/u/15619504?v=3","gravatar_id":"","url":"https://api.github.com/users/vvs79","html_url":"https://github.com/vvs79","followers_url":"https://api.github.com/users/vvs79/followers","following_url":"https://api.github.com/users/vvs79/following{/other_user}","gists_url":"https://api.github.com/users/vvs79/gists{/gist_id}","starred_url":"https://api.github.com/users/vvs79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvs79/subscriptions","organizations_url":"https://api.github.com/users/vvs79/orgs","repos_url":"https://api.github.com/users/vvs79/repos","events_url":"https://api.github.com/users/vvs79/events{/privacy}","received_events_url":"https://api.github.com/users/vvs79/received_events","type":"User","site_admin":false},"body":"in interview find first question which haven't mark","created_at":"2016-02-01T14:15:32Z","updated_at":"2016-02-01T14:15:32Z","html_url":"https://github.com/if060-webui-RoR/Aid-Interview/pull/100#discussion_r51422058","pull_request_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/comments/51422058"},"html":{"href":"https://github.com/if060-webui-RoR/Aid-Interview/pull/100#discussion_r51422058"},"pull_request":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/100","id":56690546,"html_url":"https://github.com/if060-webui-RoR/Aid-Interview/pull/100","diff_url":"https://github.com/if060-webui-RoR/Aid-Interview/pull/100.diff","patch_url":"https://github.com/if060-webui-RoR/Aid-Interview/pull/100.patch","issue_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/100","number":100,"state":"open","locked":false,"title":"Conducting interview new","user":{"login":"vvs79","id":15619504,"avatar_url":"https://avatars.githubusercontent.com/u/15619504?v=3","gravatar_id":"","url":"https://api.github.com/users/vvs79","html_url":"https://github.com/vvs79","followers_url":"https://api.github.com/users/vvs79/followers","following_url":"https://api.github.com/users/vvs79/following{/other_user}","gists_url":"https://api.github.com/users/vvs79/gists{/gist_id}","starred_url":"https://api.github.com/users/vvs79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvs79/subscriptions","organizations_url":"https://api.github.com/users/vvs79/orgs","repos_url":"https://api.github.com/users/vvs79/repos","events_url":"https://api.github.com/users/vvs79/events{/privacy}","received_events_url":"https://api.github.com/users/vvs79/received_events","type":"User","site_admin":false},"body":"code review:\r\n\r\n- [ ] @DimaSmagulov \r\n- [ ] @krisberry \r\n- [ ] @natalya5 \r\n- [ ] @oleg08 \r\n- [ ] @OrestF \r\n- [ ] @rtershak \r\n- [ ] @CHILL99 \r\n\r\n2nd lvl review:\r\n\r\n- [ ] @Kmalynss\r\n- [ ] @serhiym \r\n- [ ] @ruba-ruba","created_at":"2016-01-21T00:49:43Z","updated_at":"2016-02-01T14:15:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2fa617cd1b32d1f274d80f5cdca7533f208abb13","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/100/commits","review_comments_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/100/comments","review_comment_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/comments{/number}","comments_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/100/comments","statuses_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/statuses/88e20a68b770a2113865676764987108b9ef8cca","head":{"label":"if060-webui-RoR:conducting_interview_new","ref":"conducting_interview_new","sha":"88e20a68b770a2113865676764987108b9ef8cca","user":{"login":"if060-webui-RoR","id":15673325,"avatar_url":"https://avatars.githubusercontent.com/u/15673325?v=3","gravatar_id":"","url":"https://api.github.com/users/if060-webui-RoR","html_url":"https://github.com/if060-webui-RoR","followers_url":"https://api.github.com/users/if060-webui-RoR/followers","following_url":"https://api.github.com/users/if060-webui-RoR/following{/other_user}","gists_url":"https://api.github.com/users/if060-webui-RoR/gists{/gist_id}","starred_url":"https://api.github.com/users/if060-webui-RoR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/if060-webui-RoR/subscriptions","organizations_url":"https://api.github.com/users/if060-webui-RoR/orgs","repos_url":"https://api.github.com/users/if060-webui-RoR/repos","events_url":"https://api.github.com/users/if060-webui-RoR/events{/privacy}","received_events_url":"https://api.github.com/users/if060-webui-RoR/received_events","type":"Organization","site_admin":false},"repo":{"id":46790920,"name":"Aid-Interview","full_name":"if060-webui-RoR/Aid-Interview","owner":{"login":"if060-webui-RoR","id":15673325,"avatar_url":"https://avatars.githubusercontent.com/u/15673325?v=3","gravatar_id":"","url":"https://api.github.com/users/if060-webui-RoR","html_url":"https://github.com/if060-webui-RoR","followers_url":"https://api.github.com/users/if060-webui-RoR/followers","following_url":"https://api.github.com/users/if060-webui-RoR/following{/other_user}","gists_url":"https://api.github.com/users/if060-webui-RoR/gists{/gist_id}","starred_url":"https://api.github.com/users/if060-webui-RoR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/if060-webui-RoR/subscriptions","organizations_url":"https://api.github.com/users/if060-webui-RoR/orgs","repos_url":"https://api.github.com/users/if060-webui-RoR/repos","events_url":"https://api.github.com/users/if060-webui-RoR/events{/privacy}","received_events_url":"https://api.github.com/users/if060-webui-RoR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/if060-webui-RoR/Aid-Interview","description":"Aid-Interview","fork":false,"url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview","forks_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/forks","keys_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/teams","hooks_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/hooks","issue_events_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/events{/number}","events_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/events","assignees_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/assignees{/user}","branches_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/branches{/branch}","tags_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/tags","blobs_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/refs{/sha}","trees_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/statuses/{sha}","languages_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/languages","stargazers_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/stargazers","contributors_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/contributors","subscribers_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/subscribers","subscription_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/subscription","commits_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/commits{/sha}","git_commits_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/commits{/sha}","comments_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/comments{/number}","issue_comment_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/comments{/number}","contents_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/contents/{+path}","compare_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/merges","archive_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/downloads","issues_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues{/number}","pulls_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls{/number}","milestones_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/milestones{/number}","notifications_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/labels{/name}","releases_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/releases{/id}","deployments_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/deployments","created_at":"2015-11-24T12:42:01Z","updated_at":"2016-01-18T09:02:17Z","pushed_at":"2016-02-01T09:22:57Z","git_url":"git://github.com/if060-webui-RoR/Aid-Interview.git","ssh_url":"git@github.com:if060-webui-RoR/Aid-Interview.git","clone_url":"https://github.com/if060-webui-RoR/Aid-Interview.git","svn_url":"https://github.com/if060-webui-RoR/Aid-Interview","homepage":"https://aidinterview.herokuapp.com/","size":2823,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"if060-webui-RoR:master","ref":"master","sha":"e102de41eab4e007bcd7b25414a48d6d14f3baeb","user":{"login":"if060-webui-RoR","id":15673325,"avatar_url":"https://avatars.githubusercontent.com/u/15673325?v=3","gravatar_id":"","url":"https://api.github.com/users/if060-webui-RoR","html_url":"https://github.com/if060-webui-RoR","followers_url":"https://api.github.com/users/if060-webui-RoR/followers","following_url":"https://api.github.com/users/if060-webui-RoR/following{/other_user}","gists_url":"https://api.github.com/users/if060-webui-RoR/gists{/gist_id}","starred_url":"https://api.github.com/users/if060-webui-RoR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/if060-webui-RoR/subscriptions","organizations_url":"https://api.github.com/users/if060-webui-RoR/orgs","repos_url":"https://api.github.com/users/if060-webui-RoR/repos","events_url":"https://api.github.com/users/if060-webui-RoR/events{/privacy}","received_events_url":"https://api.github.com/users/if060-webui-RoR/received_events","type":"Organization","site_admin":false},"repo":{"id":46790920,"name":"Aid-Interview","full_name":"if060-webui-RoR/Aid-Interview","owner":{"login":"if060-webui-RoR","id":15673325,"avatar_url":"https://avatars.githubusercontent.com/u/15673325?v=3","gravatar_id":"","url":"https://api.github.com/users/if060-webui-RoR","html_url":"https://github.com/if060-webui-RoR","followers_url":"https://api.github.com/users/if060-webui-RoR/followers","following_url":"https://api.github.com/users/if060-webui-RoR/following{/other_user}","gists_url":"https://api.github.com/users/if060-webui-RoR/gists{/gist_id}","starred_url":"https://api.github.com/users/if060-webui-RoR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/if060-webui-RoR/subscriptions","organizations_url":"https://api.github.com/users/if060-webui-RoR/orgs","repos_url":"https://api.github.com/users/if060-webui-RoR/repos","events_url":"https://api.github.com/users/if060-webui-RoR/events{/privacy}","received_events_url":"https://api.github.com/users/if060-webui-RoR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/if060-webui-RoR/Aid-Interview","description":"Aid-Interview","fork":false,"url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview","forks_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/forks","keys_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/teams","hooks_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/hooks","issue_events_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/events{/number}","events_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/events","assignees_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/assignees{/user}","branches_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/branches{/branch}","tags_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/tags","blobs_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/refs{/sha}","trees_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/statuses/{sha}","languages_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/languages","stargazers_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/stargazers","contributors_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/contributors","subscribers_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/subscribers","subscription_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/subscription","commits_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/commits{/sha}","git_commits_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/commits{/sha}","comments_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/comments{/number}","issue_comment_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/comments{/number}","contents_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/contents/{+path}","compare_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/merges","archive_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/downloads","issues_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues{/number}","pulls_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls{/number}","milestones_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/milestones{/number}","notifications_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/labels{/name}","releases_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/releases{/id}","deployments_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/deployments","created_at":"2015-11-24T12:42:01Z","updated_at":"2016-01-18T09:02:17Z","pushed_at":"2016-02-01T09:22:57Z","git_url":"git://github.com/if060-webui-RoR/Aid-Interview.git","ssh_url":"git@github.com:if060-webui-RoR/Aid-Interview.git","clone_url":"https://github.com/if060-webui-RoR/Aid-Interview.git","svn_url":"https://github.com/if060-webui-RoR/Aid-Interview","homepage":"https://aidinterview.herokuapp.com/","size":2823,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/100"},"html":{"href":"https://github.com/if060-webui-RoR/Aid-Interview/pull/100"},"issue":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/100"},"comments":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/statuses/88e20a68b770a2113865676764987108b9ef8cca"}}}}