{"action":"created","comment":{"url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/comments/84076693","pull_request_review_id":4876173,"id":84076693,"diff_hunk":"@@ -1,99 +1,106 @@\n module ReportsHelper\n \n-def render_new_element(hide)\n-  render partial: \"reports/elements/new_element.html.erb\",\n-        locals: { hide: hide }\n-end\n+  def render_new_element(hide)\n+    render partial: \"reports/elements/new_element.html.erb\",\n+          locals: { hide: hide }\n+  end\n \n-def render_report_element(element, provided_locals = nil)\n-  children_html = \"\".html_safe\n+  def render_report_element(element, provided_locals = nil)\n+    children_html = \"\".html_safe\n \n-  # First, recursively render element's children\n-  if element.comments? or element.project_header?\n-    # Render no children\n-  elsif element.result?\n-    # Special handling for result comments\n-    if element.has_children?\n-      children_html.safe_concat render_new_element(true)\n-      element.children.each do |child|\n-        children_html.safe_concat render_report_element(child, provided_locals)\n+    # First, recursively render element's children\n+    if element.comments? or element.project_header?\n+      # Render no children\n+    elsif element.result?\n+      # Special handling for result comments\n+      if element.has_children?\n+        children_html.safe_concat render_new_element(true)\n+        element.children.each do |child|\n+          children_html.safe_concat render_report_element(child, provided_locals)","path":"app/helpers/reports_helper.rb","position":34,"original_position":34,"commit_id":"4aded455e8317e5b19b06d2b2eee1d9196d26b1b","original_commit_id":"4aded455e8317e5b19b06d2b2eee1d9196d26b1b","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line is too long. [81/80]","created_at":"2016-10-19T14:01:40Z","updated_at":"2016-10-19T14:01:40Z","html_url":"https://github.com/biosistemika/scinote-web/pull/224#discussion_r84076693","pull_request_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/224","_links":{"self":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/comments/84076693"},"html":{"href":"https://github.com/biosistemika/scinote-web/pull/224#discussion_r84076693"},"pull_request":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/224"}}},"pull_request":{"url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/224","id":90015457,"html_url":"https://github.com/biosistemika/scinote-web/pull/224","diff_url":"https://github.com/biosistemika/scinote-web/pull/224.diff","patch_url":"https://github.com/biosistemika/scinote-web/pull/224.patch","issue_url":"https://api.github.com/repos/biosistemika/scinote-web/issues/224","number":224,"state":"open","locked":false,"title":"Zd sci 516 move reports to top bar","user":{"login":"ZmagoD","id":7046787,"avatar_url":"https://avatars.githubusercontent.com/u/7046787?v=3","gravatar_id":"","url":"https://api.github.com/users/ZmagoD","html_url":"https://github.com/ZmagoD","followers_url":"https://api.github.com/users/ZmagoD/followers","following_url":"https://api.github.com/users/ZmagoD/following{/other_user}","gists_url":"https://api.github.com/users/ZmagoD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZmagoD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZmagoD/subscriptions","organizations_url":"https://api.github.com/users/ZmagoD/orgs","repos_url":"https://api.github.com/users/ZmagoD/repos","events_url":"https://api.github.com/users/ZmagoD/events{/privacy}","received_events_url":"https://api.github.com/users/ZmagoD/received_events","type":"User","site_admin":false},"body":"https://biosistemika.atlassian.net/browse/SCI-516","created_at":"2016-10-19T14:01:24Z","updated_at":"2016-10-19T14:01:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/224/commits","review_comments_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/224/comments","review_comment_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biosistemika/scinote-web/issues/224/comments","statuses_url":"https://api.github.com/repos/biosistemika/scinote-web/statuses/4aded455e8317e5b19b06d2b2eee1d9196d26b1b","head":{"label":"ZmagoD:zd_SCI_516_move_reports_to_top_bar","ref":"zd_SCI_516_move_reports_to_top_bar","sha":"4aded455e8317e5b19b06d2b2eee1d9196d26b1b","user":{"login":"ZmagoD","id":7046787,"avatar_url":"https://avatars.githubusercontent.com/u/7046787?v=3","gravatar_id":"","url":"https://api.github.com/users/ZmagoD","html_url":"https://github.com/ZmagoD","followers_url":"https://api.github.com/users/ZmagoD/followers","following_url":"https://api.github.com/users/ZmagoD/following{/other_user}","gists_url":"https://api.github.com/users/ZmagoD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZmagoD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZmagoD/subscriptions","organizations_url":"https://api.github.com/users/ZmagoD/orgs","repos_url":"https://api.github.com/users/ZmagoD/repos","events_url":"https://api.github.com/users/ZmagoD/events{/privacy}","received_events_url":"https://api.github.com/users/ZmagoD/received_events","type":"User","site_admin":false},"repo":{"id":55899998,"name":"scinote-web","full_name":"ZmagoD/scinote-web","owner":{"login":"ZmagoD","id":7046787,"avatar_url":"https://avatars.githubusercontent.com/u/7046787?v=3","gravatar_id":"","url":"https://api.github.com/users/ZmagoD","html_url":"https://github.com/ZmagoD","followers_url":"https://api.github.com/users/ZmagoD/followers","following_url":"https://api.github.com/users/ZmagoD/following{/other_user}","gists_url":"https://api.github.com/users/ZmagoD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZmagoD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZmagoD/subscriptions","organizations_url":"https://api.github.com/users/ZmagoD/orgs","repos_url":"https://api.github.com/users/ZmagoD/repos","events_url":"https://api.github.com/users/ZmagoD/events{/privacy}","received_events_url":"https://api.github.com/users/ZmagoD/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZmagoD/scinote-web","description":"Open source electronic scientific notebook (ELN) that helps you manage your laboratory work and stores all your experimental data in one place.","fork":true,"url":"https://api.github.com/repos/ZmagoD/scinote-web","forks_url":"https://api.github.com/repos/ZmagoD/scinote-web/forks","keys_url":"https://api.github.com/repos/ZmagoD/scinote-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZmagoD/scinote-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZmagoD/scinote-web/teams","hooks_url":"https://api.github.com/repos/ZmagoD/scinote-web/hooks","issue_events_url":"https://api.github.com/repos/ZmagoD/scinote-web/issues/events{/number}","events_url":"https://api.github.com/repos/ZmagoD/scinote-web/events","assignees_url":"https://api.github.com/repos/ZmagoD/scinote-web/assignees{/user}","branches_url":"https://api.github.com/repos/ZmagoD/scinote-web/branches{/branch}","tags_url":"https://api.github.com/repos/ZmagoD/scinote-web/tags","blobs_url":"https://api.github.com/repos/ZmagoD/scinote-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZmagoD/scinote-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZmagoD/scinote-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZmagoD/scinote-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZmagoD/scinote-web/statuses/{sha}","languages_url":"https://api.github.com/repos/ZmagoD/scinote-web/languages","stargazers_url":"https://api.github.com/repos/ZmagoD/scinote-web/stargazers","contributors_url":"https://api.github.com/repos/ZmagoD/scinote-web/contributors","subscribers_url":"https://api.github.com/repos/ZmagoD/scinote-web/subscribers","subscription_url":"https://api.github.com/repos/ZmagoD/scinote-web/subscription","commits_url":"https://api.github.com/repos/ZmagoD/scinote-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZmagoD/scinote-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZmagoD/scinote-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZmagoD/scinote-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZmagoD/scinote-web/contents/{+path}","compare_url":"https://api.github.com/repos/ZmagoD/scinote-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZmagoD/scinote-web/merges","archive_url":"https://api.github.com/repos/ZmagoD/scinote-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZmagoD/scinote-web/downloads","issues_url":"https://api.github.com/repos/ZmagoD/scinote-web/issues{/number}","pulls_url":"https://api.github.com/repos/ZmagoD/scinote-web/pulls{/number}","milestones_url":"https://api.github.com/repos/ZmagoD/scinote-web/milestones{/number}","notifications_url":"https://api.github.com/repos/ZmagoD/scinote-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZmagoD/scinote-web/labels{/name}","releases_url":"https://api.github.com/repos/ZmagoD/scinote-web/releases{/id}","deployments_url":"https://api.github.com/repos/ZmagoD/scinote-web/deployments","created_at":"2016-04-10T13:19:11Z","updated_at":"2016-04-10T13:19:12Z","pushed_at":"2016-10-19T14:00:08Z","git_url":"git://github.com/ZmagoD/scinote-web.git","ssh_url":"git@github.com:ZmagoD/scinote-web.git","clone_url":"https://github.com/ZmagoD/scinote-web.git","svn_url":"https://github.com/ZmagoD/scinote-web","homepage":"http://www.scinote.net","size":6858,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"biosistemika:modular-tasks","ref":"modular-tasks","sha":"d6892d024c32dd9b7d88471bf1d42b850b104b57","user":{"login":"biosistemika","id":15630206,"avatar_url":"https://avatars.githubusercontent.com/u/15630206?v=3","gravatar_id":"","url":"https://api.github.com/users/biosistemika","html_url":"https://github.com/biosistemika","followers_url":"https://api.github.com/users/biosistemika/followers","following_url":"https://api.github.com/users/biosistemika/following{/other_user}","gists_url":"https://api.github.com/users/biosistemika/gists{/gist_id}","starred_url":"https://api.github.com/users/biosistemika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biosistemika/subscriptions","organizations_url":"https://api.github.com/users/biosistemika/orgs","repos_url":"https://api.github.com/users/biosistemika/repos","events_url":"https://api.github.com/users/biosistemika/events{/privacy}","received_events_url":"https://api.github.com/users/biosistemika/received_events","type":"Organization","site_admin":false},"repo":{"id":51598133,"name":"scinote-web","full_name":"biosistemika/scinote-web","owner":{"login":"biosistemika","id":15630206,"avatar_url":"https://avatars.githubusercontent.com/u/15630206?v=3","gravatar_id":"","url":"https://api.github.com/users/biosistemika","html_url":"https://github.com/biosistemika","followers_url":"https://api.github.com/users/biosistemika/followers","following_url":"https://api.github.com/users/biosistemika/following{/other_user}","gists_url":"https://api.github.com/users/biosistemika/gists{/gist_id}","starred_url":"https://api.github.com/users/biosistemika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biosistemika/subscriptions","organizations_url":"https://api.github.com/users/biosistemika/orgs","repos_url":"https://api.github.com/users/biosistemika/repos","events_url":"https://api.github.com/users/biosistemika/events{/privacy}","received_events_url":"https://api.github.com/users/biosistemika/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biosistemika/scinote-web","description":"Open source electronic scientific notebook (ELN) that helps you manage your laboratory work and stores all your experimental data in one place.","fork":false,"url":"https://api.github.com/repos/biosistemika/scinote-web","forks_url":"https://api.github.com/repos/biosistemika/scinote-web/forks","keys_url":"https://api.github.com/repos/biosistemika/scinote-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biosistemika/scinote-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biosistemika/scinote-web/teams","hooks_url":"https://api.github.com/repos/biosistemika/scinote-web/hooks","issue_events_url":"https://api.github.com/repos/biosistemika/scinote-web/issues/events{/number}","events_url":"https://api.github.com/repos/biosistemika/scinote-web/events","assignees_url":"https://api.github.com/repos/biosistemika/scinote-web/assignees{/user}","branches_url":"https://api.github.com/repos/biosistemika/scinote-web/branches{/branch}","tags_url":"https://api.github.com/repos/biosistemika/scinote-web/tags","blobs_url":"https://api.github.com/repos/biosistemika/scinote-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biosistemika/scinote-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biosistemika/scinote-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/biosistemika/scinote-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biosistemika/scinote-web/statuses/{sha}","languages_url":"https://api.github.com/repos/biosistemika/scinote-web/languages","stargazers_url":"https://api.github.com/repos/biosistemika/scinote-web/stargazers","contributors_url":"https://api.github.com/repos/biosistemika/scinote-web/contributors","subscribers_url":"https://api.github.com/repos/biosistemika/scinote-web/subscribers","subscription_url":"https://api.github.com/repos/biosistemika/scinote-web/subscription","commits_url":"https://api.github.com/repos/biosistemika/scinote-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/biosistemika/scinote-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/biosistemika/scinote-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/biosistemika/scinote-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/biosistemika/scinote-web/contents/{+path}","compare_url":"https://api.github.com/repos/biosistemika/scinote-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biosistemika/scinote-web/merges","archive_url":"https://api.github.com/repos/biosistemika/scinote-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biosistemika/scinote-web/downloads","issues_url":"https://api.github.com/repos/biosistemika/scinote-web/issues{/number}","pulls_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls{/number}","milestones_url":"https://api.github.com/repos/biosistemika/scinote-web/milestones{/number}","notifications_url":"https://api.github.com/repos/biosistemika/scinote-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biosistemika/scinote-web/labels{/name}","releases_url":"https://api.github.com/repos/biosistemika/scinote-web/releases{/id}","deployments_url":"https://api.github.com/repos/biosistemika/scinote-web/deployments","created_at":"2016-02-12T15:47:19Z","updated_at":"2016-10-09T01:20:56Z","pushed_at":"2016-10-19T14:01:24Z","git_url":"git://github.com/biosistemika/scinote-web.git","ssh_url":"git@github.com:biosistemika/scinote-web.git","clone_url":"https://github.com/biosistemika/scinote-web.git","svn_url":"https://github.com/biosistemika/scinote-web","homepage":"http://www.scinote.net","size":7015,"stargazers_count":30,"watchers_count":30,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":5,"forks":15,"open_issues":5,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/224"},"html":{"href":"https://github.com/biosistemika/scinote-web/pull/224"},"issue":{"href":"https://api.github.com/repos/biosistemika/scinote-web/issues/224"},"comments":{"href":"https://api.github.com/repos/biosistemika/scinote-web/issues/224/comments"},"review_comments":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/224/comments"},"review_comment":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/224/commits"},"statuses":{"href":"https://api.github.com/repos/biosistemika/scinote-web/statuses/4aded455e8317e5b19b06d2b2eee1d9196d26b1b"}}}}
{"actor":{"display_login":"houndci-bot"}}