{"action":"created","comment":{"url":"https://api.github.com/repos/vesh95/test-guru/pulls/comments/360705940","pull_request_review_id":335650652,"id":360705940,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM2MDcwNTk0MA==","diff_hunk":"@@ -0,0 +1,57 @@\n+class Admin::TestsController < Admin::BaseController\n+  before_action :set_test, only: %i[edit show update destroy]\n+\n+  rescue_from ActiveRecord::RecordNotFound, with: :rescue_with_test_not_found\n+\n+  def index\n+    @tests = Test.all\n+  end\n+\n+  def show; end\n+\n+  def new\n+    @test = Test.new\n+  end\n+\n+  def edit; end\n+\n+  def create\n+    @test = Test.new(test_params)\n+    @test.author = current_user","path":"app/controllers/admin/tests_controller.rb","position":null,"original_position":20,"commit_id":"e661c3a762b1206856fb5f54c1f4200a1ebb086a","original_commit_id":"67f4bfd6a4b39afa808b56d5854dca3c67a83966","user":{"login":"vesh95","id":16884979,"node_id":"MDQ6VXNlcjE2ODg0OTc5","avatar_url":"https://avatars0.githubusercontent.com/u/16884979?v=4","gravatar_id":"","url":"https://api.github.com/users/vesh95","html_url":"https://github.com/vesh95","followers_url":"https://api.github.com/users/vesh95/followers","following_url":"https://api.github.com/users/vesh95/following{/other_user}","gists_url":"https://api.github.com/users/vesh95/gists{/gist_id}","starred_url":"https://api.github.com/users/vesh95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vesh95/subscriptions","organizations_url":"https://api.github.com/users/vesh95/orgs","repos_url":"https://api.github.com/users/vesh95/repos","events_url":"https://api.github.com/users/vesh95/events{/privacy}","received_events_url":"https://api.github.com/users/vesh95/received_events","type":"User","site_admin":false},"body":"Commit: e661c3a762b1206856fb5f54c1f4200a1ebb086a","created_at":"2019-12-22T13:35:11Z","updated_at":"2019-12-22T13:35:12Z","html_url":"https://github.com/vesh95/test-guru/pull/11#discussion_r360705940","pull_request_url":"https://api.github.com/repos/vesh95/test-guru/pulls/11","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/vesh95/test-guru/pulls/comments/360705940"},"html":{"href":"https://github.com/vesh95/test-guru/pull/11#discussion_r360705940"},"pull_request":{"href":"https://api.github.com/repos/vesh95/test-guru/pulls/11"}},"in_reply_to_id":360699861},"pull_request":{"url":"https://api.github.com/repos/vesh95/test-guru/pulls/11","id":356060618,"node_id":"MDExOlB1bGxSZXF1ZXN0MzU2MDYwNjE4","html_url":"https://github.com/vesh95/test-guru/pull/11","diff_url":"https://github.com/vesh95/test-guru/pull/11.diff","patch_url":"https://github.com/vesh95/test-guru/pull/11.patch","issue_url":"https://api.github.com/repos/vesh95/test-guru/issues/11","number":11,"state":"open","locked":false,"title":"Lesson10","user":{"login":"vesh95","id":16884979,"node_id":"MDQ6VXNlcjE2ODg0OTc5","avatar_url":"https://avatars0.githubusercontent.com/u/16884979?v=4","gravatar_id":"","url":"https://api.github.com/users/vesh95","html_url":"https://github.com/vesh95","followers_url":"https://api.github.com/users/vesh95/followers","following_url":"https://api.github.com/users/vesh95/following{/other_user}","gists_url":"https://api.github.com/users/vesh95/gists{/gist_id}","starred_url":"https://api.github.com/users/vesh95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vesh95/subscriptions","organizations_url":"https://api.github.com/users/vesh95/orgs","repos_url":"https://api.github.com/users/vesh95/repos","events_url":"https://api.github.com/users/vesh95/events{/privacy}","received_events_url":"https://api.github.com/users/vesh95/received_events","type":"User","site_admin":false},"body":"1. Реализуйте аутентификацию в проекте при помощи библиотеки Devise\r\n2. Сделайте управление ресурсами вопросов и ответов доступным только для администраторов\r\n3. С помощью хэлпера Devise реализуйте перенаправление администраторов на страницу /admin/tests после логина\r\n4. При создании нового теста администратором назначайте его в качестве автора теста\r\n\r\nУсложненное задание:\r\n* При регистрации пользователя запрашивать его имя и фамилию и после входа, выводить флэш-сообщение \"Привет, <имя пользователя>!\" ","created_at":"2019-12-22T06:40:08Z","updated_at":"2019-12-22T13:35:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54008580b5f74a71047204bee4d5fdd0b19f4594","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vesh95/test-guru/pulls/11/commits","review_comments_url":"https://api.github.com/repos/vesh95/test-guru/pulls/11/comments","review_comment_url":"https://api.github.com/repos/vesh95/test-guru/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vesh95/test-guru/issues/11/comments","statuses_url":"https://api.github.com/repos/vesh95/test-guru/statuses/e661c3a762b1206856fb5f54c1f4200a1ebb086a","head":{"label":"vesh95:lesson10","ref":"lesson10","sha":"e661c3a762b1206856fb5f54c1f4200a1ebb086a","user":{"login":"vesh95","id":16884979,"node_id":"MDQ6VXNlcjE2ODg0OTc5","avatar_url":"https://avatars0.githubusercontent.com/u/16884979?v=4","gravatar_id":"","url":"https://api.github.com/users/vesh95","html_url":"https://github.com/vesh95","followers_url":"https://api.github.com/users/vesh95/followers","following_url":"https://api.github.com/users/vesh95/following{/other_user}","gists_url":"https://api.github.com/users/vesh95/gists{/gist_id}","starred_url":"https://api.github.com/users/vesh95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vesh95/subscriptions","organizations_url":"https://api.github.com/users/vesh95/orgs","repos_url":"https://api.github.com/users/vesh95/repos","events_url":"https://api.github.com/users/vesh95/events{/privacy}","received_events_url":"https://api.github.com/users/vesh95/received_events","type":"User","site_admin":false},"repo":{"id":226497740,"node_id":"MDEwOlJlcG9zaXRvcnkyMjY0OTc3NDA=","name":"test-guru","full_name":"vesh95/test-guru","private":false,"owner":{"login":"vesh95","id":16884979,"node_id":"MDQ6VXNlcjE2ODg0OTc5","avatar_url":"https://avatars0.githubusercontent.com/u/16884979?v=4","gravatar_id":"","url":"https://api.github.com/users/vesh95","html_url":"https://github.com/vesh95","followers_url":"https://api.github.com/users/vesh95/followers","following_url":"https://api.github.com/users/vesh95/following{/other_user}","gists_url":"https://api.github.com/users/vesh95/gists{/gist_id}","starred_url":"https://api.github.com/users/vesh95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vesh95/subscriptions","organizations_url":"https://api.github.com/users/vesh95/orgs","repos_url":"https://api.github.com/users/vesh95/repos","events_url":"https://api.github.com/users/vesh95/events{/privacy}","received_events_url":"https://api.github.com/users/vesh95/received_events","type":"User","site_admin":false},"html_url":"https://github.com/vesh95/test-guru","description":"Учебный проект Thinknetica","fork":false,"url":"https://api.github.com/repos/vesh95/test-guru","forks_url":"https://api.github.com/repos/vesh95/test-guru/forks","keys_url":"https://api.github.com/repos/vesh95/test-guru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vesh95/test-guru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vesh95/test-guru/teams","hooks_url":"https://api.github.com/repos/vesh95/test-guru/hooks","issue_events_url":"https://api.github.com/repos/vesh95/test-guru/issues/events{/number}","events_url":"https://api.github.com/repos/vesh95/test-guru/events","assignees_url":"https://api.github.com/repos/vesh95/test-guru/assignees{/user}","branches_url":"https://api.github.com/repos/vesh95/test-guru/branches{/branch}","tags_url":"https://api.github.com/repos/vesh95/test-guru/tags","blobs_url":"https://api.github.com/repos/vesh95/test-guru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vesh95/test-guru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vesh95/test-guru/git/refs{/sha}","trees_url":"https://api.github.com/repos/vesh95/test-guru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vesh95/test-guru/statuses/{sha}","languages_url":"https://api.github.com/repos/vesh95/test-guru/languages","stargazers_url":"https://api.github.com/repos/vesh95/test-guru/stargazers","contributors_url":"https://api.github.com/repos/vesh95/test-guru/contributors","subscribers_url":"https://api.github.com/repos/vesh95/test-guru/subscribers","subscription_url":"https://api.github.com/repos/vesh95/test-guru/subscription","commits_url":"https://api.github.com/repos/vesh95/test-guru/commits{/sha}","git_commits_url":"https://api.github.com/repos/vesh95/test-guru/git/commits{/sha}","comments_url":"https://api.github.com/repos/vesh95/test-guru/comments{/number}","issue_comment_url":"https://api.github.com/repos/vesh95/test-guru/issues/comments{/number}","contents_url":"https://api.github.com/repos/vesh95/test-guru/contents/{+path}","compare_url":"https://api.github.com/repos/vesh95/test-guru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vesh95/test-guru/merges","archive_url":"https://api.github.com/repos/vesh95/test-guru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vesh95/test-guru/downloads","issues_url":"https://api.github.com/repos/vesh95/test-guru/issues{/number}","pulls_url":"https://api.github.com/repos/vesh95/test-guru/pulls{/number}","milestones_url":"https://api.github.com/repos/vesh95/test-guru/milestones{/number}","notifications_url":"https://api.github.com/repos/vesh95/test-guru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vesh95/test-guru/labels{/name}","releases_url":"https://api.github.com/repos/vesh95/test-guru/releases{/id}","deployments_url":"https://api.github.com/repos/vesh95/test-guru/deployments","created_at":"2019-12-07T11:09:38Z","updated_at":"2019-12-21T11:00:35Z","pushed_at":"2019-12-22T13:35:06Z","git_url":"git://github.com/vesh95/test-guru.git","ssh_url":"git@github.com:vesh95/test-guru.git","clone_url":"https://github.com/vesh95/test-guru.git","svn_url":"https://github.com/vesh95/test-guru","homepage":null,"size":253,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"vesh95:master","ref":"master","sha":"d613ac94968ed3928c8ec7d5903297562a2c7006","user":{"login":"vesh95","id":16884979,"node_id":"MDQ6VXNlcjE2ODg0OTc5","avatar_url":"https://avatars0.githubusercontent.com/u/16884979?v=4","gravatar_id":"","url":"https://api.github.com/users/vesh95","html_url":"https://github.com/vesh95","followers_url":"https://api.github.com/users/vesh95/followers","following_url":"https://api.github.com/users/vesh95/following{/other_user}","gists_url":"https://api.github.com/users/vesh95/gists{/gist_id}","starred_url":"https://api.github.com/users/vesh95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vesh95/subscriptions","organizations_url":"https://api.github.com/users/vesh95/orgs","repos_url":"https://api.github.com/users/vesh95/repos","events_url":"https://api.github.com/users/vesh95/events{/privacy}","received_events_url":"https://api.github.com/users/vesh95/received_events","type":"User","site_admin":false},"repo":{"id":226497740,"node_id":"MDEwOlJlcG9zaXRvcnkyMjY0OTc3NDA=","name":"test-guru","full_name":"vesh95/test-guru","private":false,"owner":{"login":"vesh95","id":16884979,"node_id":"MDQ6VXNlcjE2ODg0OTc5","avatar_url":"https://avatars0.githubusercontent.com/u/16884979?v=4","gravatar_id":"","url":"https://api.github.com/users/vesh95","html_url":"https://github.com/vesh95","followers_url":"https://api.github.com/users/vesh95/followers","following_url":"https://api.github.com/users/vesh95/following{/other_user}","gists_url":"https://api.github.com/users/vesh95/gists{/gist_id}","starred_url":"https://api.github.com/users/vesh95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vesh95/subscriptions","organizations_url":"https://api.github.com/users/vesh95/orgs","repos_url":"https://api.github.com/users/vesh95/repos","events_url":"https://api.github.com/users/vesh95/events{/privacy}","received_events_url":"https://api.github.com/users/vesh95/received_events","type":"User","site_admin":false},"html_url":"https://github.com/vesh95/test-guru","description":"Учебный проект Thinknetica","fork":false,"url":"https://api.github.com/repos/vesh95/test-guru","forks_url":"https://api.github.com/repos/vesh95/test-guru/forks","keys_url":"https://api.github.com/repos/vesh95/test-guru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vesh95/test-guru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vesh95/test-guru/teams","hooks_url":"https://api.github.com/repos/vesh95/test-guru/hooks","issue_events_url":"https://api.github.com/repos/vesh95/test-guru/issues/events{/number}","events_url":"https://api.github.com/repos/vesh95/test-guru/events","assignees_url":"https://api.github.com/repos/vesh95/test-guru/assignees{/user}","branches_url":"https://api.github.com/repos/vesh95/test-guru/branches{/branch}","tags_url":"https://api.github.com/repos/vesh95/test-guru/tags","blobs_url":"https://api.github.com/repos/vesh95/test-guru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vesh95/test-guru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vesh95/test-guru/git/refs{/sha}","trees_url":"https://api.github.com/repos/vesh95/test-guru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vesh95/test-guru/statuses/{sha}","languages_url":"https://api.github.com/repos/vesh95/test-guru/languages","stargazers_url":"https://api.github.com/repos/vesh95/test-guru/stargazers","contributors_url":"https://api.github.com/repos/vesh95/test-guru/contributors","subscribers_url":"https://api.github.com/repos/vesh95/test-guru/subscribers","subscription_url":"https://api.github.com/repos/vesh95/test-guru/subscription","commits_url":"https://api.github.com/repos/vesh95/test-guru/commits{/sha}","git_commits_url":"https://api.github.com/repos/vesh95/test-guru/git/commits{/sha}","comments_url":"https://api.github.com/repos/vesh95/test-guru/comments{/number}","issue_comment_url":"https://api.github.com/repos/vesh95/test-guru/issues/comments{/number}","contents_url":"https://api.github.com/repos/vesh95/test-guru/contents/{+path}","compare_url":"https://api.github.com/repos/vesh95/test-guru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vesh95/test-guru/merges","archive_url":"https://api.github.com/repos/vesh95/test-guru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vesh95/test-guru/downloads","issues_url":"https://api.github.com/repos/vesh95/test-guru/issues{/number}","pulls_url":"https://api.github.com/repos/vesh95/test-guru/pulls{/number}","milestones_url":"https://api.github.com/repos/vesh95/test-guru/milestones{/number}","notifications_url":"https://api.github.com/repos/vesh95/test-guru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vesh95/test-guru/labels{/name}","releases_url":"https://api.github.com/repos/vesh95/test-guru/releases{/id}","deployments_url":"https://api.github.com/repos/vesh95/test-guru/deployments","created_at":"2019-12-07T11:09:38Z","updated_at":"2019-12-21T11:00:35Z","pushed_at":"2019-12-22T13:35:06Z","git_url":"git://github.com/vesh95/test-guru.git","ssh_url":"git@github.com:vesh95/test-guru.git","clone_url":"https://github.com/vesh95/test-guru.git","svn_url":"https://github.com/vesh95/test-guru","homepage":null,"size":253,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vesh95/test-guru/pulls/11"},"html":{"href":"https://github.com/vesh95/test-guru/pull/11"},"issue":{"href":"https://api.github.com/repos/vesh95/test-guru/issues/11"},"comments":{"href":"https://api.github.com/repos/vesh95/test-guru/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/vesh95/test-guru/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/vesh95/test-guru/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vesh95/test-guru/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/vesh95/test-guru/statuses/e661c3a762b1206856fb5f54c1f4200a1ebb086a"}},"author_association":"OWNER"}}
{"actor":{"display_login":"vesh95"}}