{"action":"created","comment":{"url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/comments/60659549","id":60659549,"diff_hunk":"@@ -77,21 +91,35 @@\n             .then(function(response) {\n               timeEntries.addEntry(response.data);\n               resetTimer();\n+              if (!response.data.description) {\n+                if (confirm(\"You didn't enter a description for this time entry. Would you like to view your timecard and edit it there?\")) {\n+                  workTimer.viewTimecard();\n+                }\n+              }\n             }, function() {\n                 alert('Could not stop timer');\n             });\n           };\n \n-          workTimer.updateDescription = function() {\n-            var url = '/orchestra/api/interface/timer/description/';\n-            $http.post(url, {\n-              description: workTimer.description,\n-            })\n+          workTimer.updateTimer = function() {\n+            var url = '/orchestra/api/interface/timer/update/';\n+            var assignment_id = workTimer.task ? workTimer.task.assignment_id : null;\n+            var data = {\n+              assignment: assignment_id,\n+              description: workTimer.description\n+            };\n+            $http.post(url, data)\n             .catch(function() {\n                 alert('Could not update timer description');\n             });\n           };\n \n+          $scope.$watch('workTimer.task', function(newVal, oldVal) {","path":"orchestra/static/orchestra/timing/timer/directives.js","position":81,"original_position":81,"commit_id":"bc279db3ae47456a25f533844bad4248672da9e3","original_commit_id":"bc279db3ae47456a25f533844bad4248672da9e3","user":{"login":"lydiagu","id":630462,"avatar_url":"https://avatars.githubusercontent.com/u/630462?v=3","gravatar_id":"","url":"https://api.github.com/users/lydiagu","html_url":"https://github.com/lydiagu","followers_url":"https://api.github.com/users/lydiagu/followers","following_url":"https://api.github.com/users/lydiagu/following{/other_user}","gists_url":"https://api.github.com/users/lydiagu/gists{/gist_id}","starred_url":"https://api.github.com/users/lydiagu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lydiagu/subscriptions","organizations_url":"https://api.github.com/users/lydiagu/orgs","repos_url":"https://api.github.com/users/lydiagu/repos","events_url":"https://api.github.com/users/lydiagu/events{/privacy}","received_events_url":"https://api.github.com/users/lydiagu/received_events","type":"User","site_admin":false},"body":"do you need this watch?","created_at":"2016-04-21T21:38:33Z","updated_at":"2016-04-21T21:38:33Z","html_url":"https://github.com/unlimitedlabs/orchestra/pull/194#discussion_r60659549","pull_request_url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/194","_links":{"self":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/comments/60659549"},"html":{"href":"https://github.com/unlimitedlabs/orchestra/pull/194#discussion_r60659549"},"pull_request":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/194"}}},"pull_request":{"url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/194","id":67420788,"html_url":"https://github.com/unlimitedlabs/orchestra/pull/194","diff_url":"https://github.com/unlimitedlabs/orchestra/pull/194.diff","patch_url":"https://github.com/unlimitedlabs/orchestra/pull/194.patch","issue_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/194","number":194,"state":"open","locked":false,"title":"Allow assignment selection from timer","user":{"login":"jrbotros","id":2992765,"avatar_url":"https://avatars.githubusercontent.com/u/2992765?v=3","gravatar_id":"","url":"https://api.github.com/users/jrbotros","html_url":"https://github.com/jrbotros","followers_url":"https://api.github.com/users/jrbotros/followers","following_url":"https://api.github.com/users/jrbotros/following{/other_user}","gists_url":"https://api.github.com/users/jrbotros/gists{/gist_id}","starred_url":"https://api.github.com/users/jrbotros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrbotros/subscriptions","organizations_url":"https://api.github.com/users/jrbotros/orgs","repos_url":"https://api.github.com/users/jrbotros/repos","events_url":"https://api.github.com/users/jrbotros/events{/privacy}","received_events_url":"https://api.github.com/users/jrbotros/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-21T20:55:03Z","updated_at":"2016-04-21T21:38:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"060693b22d86078e7654cfc6dd857df46caef8c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/194/commits","review_comments_url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/194/comments","review_comment_url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/194/comments","statuses_url":"https://api.github.com/repos/unlimitedlabs/orchestra/statuses/bc279db3ae47456a25f533844bad4248672da9e3","head":{"label":"unlimitedlabs:timer-updates","ref":"timer-updates","sha":"bc279db3ae47456a25f533844bad4248672da9e3","user":{"login":"unlimitedlabs","id":12401025,"avatar_url":"https://avatars.githubusercontent.com/u/12401025?v=3","gravatar_id":"","url":"https://api.github.com/users/unlimitedlabs","html_url":"https://github.com/unlimitedlabs","followers_url":"https://api.github.com/users/unlimitedlabs/followers","following_url":"https://api.github.com/users/unlimitedlabs/following{/other_user}","gists_url":"https://api.github.com/users/unlimitedlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/unlimitedlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlimitedlabs/subscriptions","organizations_url":"https://api.github.com/users/unlimitedlabs/orgs","repos_url":"https://api.github.com/users/unlimitedlabs/repos","events_url":"https://api.github.com/users/unlimitedlabs/events{/privacy}","received_events_url":"https://api.github.com/users/unlimitedlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":42593972,"name":"orchestra","full_name":"unlimitedlabs/orchestra","owner":{"login":"unlimitedlabs","id":12401025,"avatar_url":"https://avatars.githubusercontent.com/u/12401025?v=3","gravatar_id":"","url":"https://api.github.com/users/unlimitedlabs","html_url":"https://github.com/unlimitedlabs","followers_url":"https://api.github.com/users/unlimitedlabs/followers","following_url":"https://api.github.com/users/unlimitedlabs/following{/other_user}","gists_url":"https://api.github.com/users/unlimitedlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/unlimitedlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlimitedlabs/subscriptions","organizations_url":"https://api.github.com/users/unlimitedlabs/orgs","repos_url":"https://api.github.com/users/unlimitedlabs/repos","events_url":"https://api.github.com/users/unlimitedlabs/events{/privacy}","received_events_url":"https://api.github.com/users/unlimitedlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/unlimitedlabs/orchestra","description":"Orchestra is a system for orchestrating project teams of experts and machines.","fork":false,"url":"https://api.github.com/repos/unlimitedlabs/orchestra","forks_url":"https://api.github.com/repos/unlimitedlabs/orchestra/forks","keys_url":"https://api.github.com/repos/unlimitedlabs/orchestra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unlimitedlabs/orchestra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unlimitedlabs/orchestra/teams","hooks_url":"https://api.github.com/repos/unlimitedlabs/orchestra/hooks","issue_events_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/events{/number}","events_url":"https://api.github.com/repos/unlimitedlabs/orchestra/events","assignees_url":"https://api.github.com/repos/unlimitedlabs/orchestra/assignees{/user}","branches_url":"https://api.github.com/repos/unlimitedlabs/orchestra/branches{/branch}","tags_url":"https://api.github.com/repos/unlimitedlabs/orchestra/tags","blobs_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/refs{/sha}","trees_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unlimitedlabs/orchestra/statuses/{sha}","languages_url":"https://api.github.com/repos/unlimitedlabs/orchestra/languages","stargazers_url":"https://api.github.com/repos/unlimitedlabs/orchestra/stargazers","contributors_url":"https://api.github.com/repos/unlimitedlabs/orchestra/contributors","subscribers_url":"https://api.github.com/repos/unlimitedlabs/orchestra/subscribers","subscription_url":"https://api.github.com/repos/unlimitedlabs/orchestra/subscription","commits_url":"https://api.github.com/repos/unlimitedlabs/orchestra/commits{/sha}","git_commits_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/commits{/sha}","comments_url":"https://api.github.com/repos/unlimitedlabs/orchestra/comments{/number}","issue_comment_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/comments{/number}","contents_url":"https://api.github.com/repos/unlimitedlabs/orchestra/contents/{+path}","compare_url":"https://api.github.com/repos/unlimitedlabs/orchestra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unlimitedlabs/orchestra/merges","archive_url":"https://api.github.com/repos/unlimitedlabs/orchestra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unlimitedlabs/orchestra/downloads","issues_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues{/number}","pulls_url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls{/number}","milestones_url":"https://api.github.com/repos/unlimitedlabs/orchestra/milestones{/number}","notifications_url":"https://api.github.com/repos/unlimitedlabs/orchestra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unlimitedlabs/orchestra/labels{/name}","releases_url":"https://api.github.com/repos/unlimitedlabs/orchestra/releases{/id}","deployments_url":"https://api.github.com/repos/unlimitedlabs/orchestra/deployments","created_at":"2015-09-16T14:55:16Z","updated_at":"2016-04-17T08:38:54Z","pushed_at":"2016-04-21T21:09:05Z","git_url":"git://github.com/unlimitedlabs/orchestra.git","ssh_url":"git@github.com:unlimitedlabs/orchestra.git","clone_url":"https://github.com/unlimitedlabs/orchestra.git","svn_url":"https://github.com/unlimitedlabs/orchestra","homepage":"http://orchestra.unlimitedlabs.com/","size":7327,"stargazers_count":221,"watchers_count":221,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":35,"forks":15,"open_issues":35,"watchers":221,"default_branch":"master"}},"base":{"label":"unlimitedlabs:time-tracking","ref":"time-tracking","sha":"43950e95b88d68d4a5fba21866031803476c465c","user":{"login":"unlimitedlabs","id":12401025,"avatar_url":"https://avatars.githubusercontent.com/u/12401025?v=3","gravatar_id":"","url":"https://api.github.com/users/unlimitedlabs","html_url":"https://github.com/unlimitedlabs","followers_url":"https://api.github.com/users/unlimitedlabs/followers","following_url":"https://api.github.com/users/unlimitedlabs/following{/other_user}","gists_url":"https://api.github.com/users/unlimitedlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/unlimitedlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlimitedlabs/subscriptions","organizations_url":"https://api.github.com/users/unlimitedlabs/orgs","repos_url":"https://api.github.com/users/unlimitedlabs/repos","events_url":"https://api.github.com/users/unlimitedlabs/events{/privacy}","received_events_url":"https://api.github.com/users/unlimitedlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":42593972,"name":"orchestra","full_name":"unlimitedlabs/orchestra","owner":{"login":"unlimitedlabs","id":12401025,"avatar_url":"https://avatars.githubusercontent.com/u/12401025?v=3","gravatar_id":"","url":"https://api.github.com/users/unlimitedlabs","html_url":"https://github.com/unlimitedlabs","followers_url":"https://api.github.com/users/unlimitedlabs/followers","following_url":"https://api.github.com/users/unlimitedlabs/following{/other_user}","gists_url":"https://api.github.com/users/unlimitedlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/unlimitedlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlimitedlabs/subscriptions","organizations_url":"https://api.github.com/users/unlimitedlabs/orgs","repos_url":"https://api.github.com/users/unlimitedlabs/repos","events_url":"https://api.github.com/users/unlimitedlabs/events{/privacy}","received_events_url":"https://api.github.com/users/unlimitedlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/unlimitedlabs/orchestra","description":"Orchestra is a system for orchestrating project teams of experts and machines.","fork":false,"url":"https://api.github.com/repos/unlimitedlabs/orchestra","forks_url":"https://api.github.com/repos/unlimitedlabs/orchestra/forks","keys_url":"https://api.github.com/repos/unlimitedlabs/orchestra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unlimitedlabs/orchestra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unlimitedlabs/orchestra/teams","hooks_url":"https://api.github.com/repos/unlimitedlabs/orchestra/hooks","issue_events_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/events{/number}","events_url":"https://api.github.com/repos/unlimitedlabs/orchestra/events","assignees_url":"https://api.github.com/repos/unlimitedlabs/orchestra/assignees{/user}","branches_url":"https://api.github.com/repos/unlimitedlabs/orchestra/branches{/branch}","tags_url":"https://api.github.com/repos/unlimitedlabs/orchestra/tags","blobs_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/refs{/sha}","trees_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unlimitedlabs/orchestra/statuses/{sha}","languages_url":"https://api.github.com/repos/unlimitedlabs/orchestra/languages","stargazers_url":"https://api.github.com/repos/unlimitedlabs/orchestra/stargazers","contributors_url":"https://api.github.com/repos/unlimitedlabs/orchestra/contributors","subscribers_url":"https://api.github.com/repos/unlimitedlabs/orchestra/subscribers","subscription_url":"https://api.github.com/repos/unlimitedlabs/orchestra/subscription","commits_url":"https://api.github.com/repos/unlimitedlabs/orchestra/commits{/sha}","git_commits_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/commits{/sha}","comments_url":"https://api.github.com/repos/unlimitedlabs/orchestra/comments{/number}","issue_comment_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/comments{/number}","contents_url":"https://api.github.com/repos/unlimitedlabs/orchestra/contents/{+path}","compare_url":"https://api.github.com/repos/unlimitedlabs/orchestra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unlimitedlabs/orchestra/merges","archive_url":"https://api.github.com/repos/unlimitedlabs/orchestra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unlimitedlabs/orchestra/downloads","issues_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues{/number}","pulls_url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls{/number}","milestones_url":"https://api.github.com/repos/unlimitedlabs/orchestra/milestones{/number}","notifications_url":"https://api.github.com/repos/unlimitedlabs/orchestra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unlimitedlabs/orchestra/labels{/name}","releases_url":"https://api.github.com/repos/unlimitedlabs/orchestra/releases{/id}","deployments_url":"https://api.github.com/repos/unlimitedlabs/orchestra/deployments","created_at":"2015-09-16T14:55:16Z","updated_at":"2016-04-17T08:38:54Z","pushed_at":"2016-04-21T21:09:05Z","git_url":"git://github.com/unlimitedlabs/orchestra.git","ssh_url":"git@github.com:unlimitedlabs/orchestra.git","clone_url":"https://github.com/unlimitedlabs/orchestra.git","svn_url":"https://github.com/unlimitedlabs/orchestra","homepage":"http://orchestra.unlimitedlabs.com/","size":7327,"stargazers_count":221,"watchers_count":221,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":35,"forks":15,"open_issues":35,"watchers":221,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/194"},"html":{"href":"https://github.com/unlimitedlabs/orchestra/pull/194"},"issue":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/194"},"comments":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/194/comments"},"review_comments":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/194/comments"},"review_comment":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/194/commits"},"statuses":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/statuses/bc279db3ae47456a25f533844bad4248672da9e3"}}}}