{"action":"created","comment":{"url":"https://api.github.com/repos/zendesk/timetracking_app/pulls/comments/42721981","id":42721981,"diff_hunk":"@@ -29,6 +29,11 @@\n       \"default\": true\n     },\n     {\n+      \"name\": \"hide_from_agents\",\n+      \"type\": \"checkbox\",\n+      \"default\": false","path":"manifest.json","position":15,"original_position":15,"commit_id":"823f8a9c26103b5e8b888a3e8ce2099b8cbd4906","original_commit_id":"823f8a9c26103b5e8b888a3e8ce2099b8cbd4906","user":{"login":"danielbreves","id":2517811,"avatar_url":"https://avatars.githubusercontent.com/u/2517811?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbreves","html_url":"https://github.com/danielbreves","followers_url":"https://api.github.com/users/danielbreves/followers","following_url":"https://api.github.com/users/danielbreves/following{/other_user}","gists_url":"https://api.github.com/users/danielbreves/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbreves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbreves/subscriptions","organizations_url":"https://api.github.com/users/danielbreves/orgs","repos_url":"https://api.github.com/users/danielbreves/repos","events_url":"https://api.github.com/users/danielbreves/events{/privacy}","received_events_url":"https://api.github.com/users/danielbreves/received_events","type":"User","site_admin":false},"body":"You probably don't need a default here.","created_at":"2015-10-22T08:20:42Z","updated_at":"2015-10-22T08:20:42Z","html_url":"https://github.com/zendesk/timetracking_app/pull/58#discussion_r42721981","pull_request_url":"https://api.github.com/repos/zendesk/timetracking_app/pulls/58","_links":{"self":{"href":"https://api.github.com/repos/zendesk/timetracking_app/pulls/comments/42721981"},"html":{"href":"https://github.com/zendesk/timetracking_app/pull/58#discussion_r42721981"},"pull_request":{"href":"https://api.github.com/repos/zendesk/timetracking_app/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/zendesk/timetracking_app/pulls/58","id":48168087,"html_url":"https://github.com/zendesk/timetracking_app/pull/58","diff_url":"https://github.com/zendesk/timetracking_app/pull/58.diff","patch_url":"https://github.com/zendesk/timetracking_app/pull/58.patch","issue_url":"https://api.github.com/repos/zendesk/timetracking_app/issues/58","number":58,"state":"open","locked":false,"title":"added setting to hide app, including edit modal, from non-admin agents","user":{"login":"jstjoe","id":2015604,"avatar_url":"https://avatars.githubusercontent.com/u/2015604?v=3","gravatar_id":"","url":"https://api.github.com/users/jstjoe","html_url":"https://github.com/jstjoe","followers_url":"https://api.github.com/users/jstjoe/followers","following_url":"https://api.github.com/users/jstjoe/following{/other_user}","gists_url":"https://api.github.com/users/jstjoe/gists{/gist_id}","starred_url":"https://api.github.com/users/jstjoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstjoe/subscriptions","organizations_url":"https://api.github.com/users/jstjoe/orgs","repos_url":"https://api.github.com/users/jstjoe/repos","events_url":"https://api.github.com/users/jstjoe/events{/privacy}","received_events_url":"https://api.github.com/users/jstjoe/received_events","type":"User","site_admin":false},"body":"added new setting that will enable admins to hide the app from non-admin agents for super-sneaky time tracking :ghost: \r\n\r\nthe setting and user role are evaluated on `app.created`\r\nif setting enabled and user not an admin -> app is hidden and variable set\r\n\r\nadded condition for that variable to if statement for showing the edit modal on submit (so Admins can still have the option to edit their own submission with this setting enabled)\r\n\r\n\r\n\r\n","created_at":"2015-10-20T08:05:32Z","updated_at":"2015-10-22T08:20:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a6ad08618557c3195b209fa9676908bea96c13d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zendesk/timetracking_app/pulls/58/commits","review_comments_url":"https://api.github.com/repos/zendesk/timetracking_app/pulls/58/comments","review_comment_url":"https://api.github.com/repos/zendesk/timetracking_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zendesk/timetracking_app/issues/58/comments","statuses_url":"https://api.github.com/repos/zendesk/timetracking_app/statuses/823f8a9c26103b5e8b888a3e8ce2099b8cbd4906","head":{"label":"zendesk:jstjoe/hide_from_agents_option","ref":"jstjoe/hide_from_agents_option","sha":"823f8a9c26103b5e8b888a3e8ce2099b8cbd4906","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":18617077,"name":"timetracking_app","full_name":"zendesk/timetracking_app","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/timetracking_app","description":"Zendesk official time-tracking app","fork":false,"url":"https://api.github.com/repos/zendesk/timetracking_app","forks_url":"https://api.github.com/repos/zendesk/timetracking_app/forks","keys_url":"https://api.github.com/repos/zendesk/timetracking_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/timetracking_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/timetracking_app/teams","hooks_url":"https://api.github.com/repos/zendesk/timetracking_app/hooks","issue_events_url":"https://api.github.com/repos/zendesk/timetracking_app/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/timetracking_app/events","assignees_url":"https://api.github.com/repos/zendesk/timetracking_app/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/timetracking_app/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/timetracking_app/tags","blobs_url":"https://api.github.com/repos/zendesk/timetracking_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/timetracking_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/timetracking_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/timetracking_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/timetracking_app/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/timetracking_app/languages","stargazers_url":"https://api.github.com/repos/zendesk/timetracking_app/stargazers","contributors_url":"https://api.github.com/repos/zendesk/timetracking_app/contributors","subscribers_url":"https://api.github.com/repos/zendesk/timetracking_app/subscribers","subscription_url":"https://api.github.com/repos/zendesk/timetracking_app/subscription","commits_url":"https://api.github.com/repos/zendesk/timetracking_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/timetracking_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/timetracking_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/timetracking_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/timetracking_app/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/timetracking_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/timetracking_app/merges","archive_url":"https://api.github.com/repos/zendesk/timetracking_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/timetracking_app/downloads","issues_url":"https://api.github.com/repos/zendesk/timetracking_app/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/timetracking_app/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/timetracking_app/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/timetracking_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/timetracking_app/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/timetracking_app/releases{/id}","created_at":"2014-04-09T23:31:44Z","updated_at":"2015-10-16T23:59:02Z","pushed_at":"2015-10-21T05:52:16Z","git_url":"git://github.com/zendesk/timetracking_app.git","ssh_url":"git@github.com:zendesk/timetracking_app.git","clone_url":"https://github.com/zendesk/timetracking_app.git","svn_url":"https://github.com/zendesk/timetracking_app","homepage":null,"size":1324,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":3,"forks":9,"open_issues":3,"watchers":6,"default_branch":"master"}},"base":{"label":"zendesk:master","ref":"master","sha":"b5736572b011170001ec2a8969dafe4c67338cb7","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":18617077,"name":"timetracking_app","full_name":"zendesk/timetracking_app","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/timetracking_app","description":"Zendesk official time-tracking app","fork":false,"url":"https://api.github.com/repos/zendesk/timetracking_app","forks_url":"https://api.github.com/repos/zendesk/timetracking_app/forks","keys_url":"https://api.github.com/repos/zendesk/timetracking_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/timetracking_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/timetracking_app/teams","hooks_url":"https://api.github.com/repos/zendesk/timetracking_app/hooks","issue_events_url":"https://api.github.com/repos/zendesk/timetracking_app/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/timetracking_app/events","assignees_url":"https://api.github.com/repos/zendesk/timetracking_app/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/timetracking_app/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/timetracking_app/tags","blobs_url":"https://api.github.com/repos/zendesk/timetracking_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/timetracking_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/timetracking_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/timetracking_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/timetracking_app/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/timetracking_app/languages","stargazers_url":"https://api.github.com/repos/zendesk/timetracking_app/stargazers","contributors_url":"https://api.github.com/repos/zendesk/timetracking_app/contributors","subscribers_url":"https://api.github.com/repos/zendesk/timetracking_app/subscribers","subscription_url":"https://api.github.com/repos/zendesk/timetracking_app/subscription","commits_url":"https://api.github.com/repos/zendesk/timetracking_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/timetracking_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/timetracking_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/timetracking_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/timetracking_app/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/timetracking_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/timetracking_app/merges","archive_url":"https://api.github.com/repos/zendesk/timetracking_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/timetracking_app/downloads","issues_url":"https://api.github.com/repos/zendesk/timetracking_app/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/timetracking_app/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/timetracking_app/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/timetracking_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/timetracking_app/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/timetracking_app/releases{/id}","created_at":"2014-04-09T23:31:44Z","updated_at":"2015-10-16T23:59:02Z","pushed_at":"2015-10-21T05:52:16Z","git_url":"git://github.com/zendesk/timetracking_app.git","ssh_url":"git@github.com:zendesk/timetracking_app.git","clone_url":"https://github.com/zendesk/timetracking_app.git","svn_url":"https://github.com/zendesk/timetracking_app","homepage":null,"size":1324,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":3,"forks":9,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zendesk/timetracking_app/pulls/58"},"html":{"href":"https://github.com/zendesk/timetracking_app/pull/58"},"issue":{"href":"https://api.github.com/repos/zendesk/timetracking_app/issues/58"},"comments":{"href":"https://api.github.com/repos/zendesk/timetracking_app/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/zendesk/timetracking_app/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/zendesk/timetracking_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zendesk/timetracking_app/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/zendesk/timetracking_app/statuses/823f8a9c26103b5e8b888a3e8ce2099b8cbd4906"}}}}