{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/pulls/comments/84052759","pull_request_review_id":4853888,"id":84052759,"diff_hunk":"@@ -1,10 +1,13 @@\n <div class='reminder-list'>\n   <ul>\n     {{#each model as |reminder|}}\n-      <li>\n+      <li class={{if reminder.hasDirtyAttributes 'unsaved-reminder' 'saved-reminder'}}>\n         {{#link-to 'reminders.reminder' reminder}}\n           <p class=\"spec-reminder-item\">\n             {{reminder.title}}\n+            {{#if reminder.hasDirtyAttributes}}\n+              💩","path":"app/templates/reminders.hbs","position":10,"original_position":10,"commit_id":"99ebb27f159804694f2c23f5428f99a073a23314","original_commit_id":"99ebb27f159804694f2c23f5428f99a073a23314","user":{"login":"brittanystoroz","id":856935,"avatar_url":"https://avatars.githubusercontent.com/u/856935?v=3","gravatar_id":"","url":"https://api.github.com/users/brittanystoroz","html_url":"https://github.com/brittanystoroz","followers_url":"https://api.github.com/users/brittanystoroz/followers","following_url":"https://api.github.com/users/brittanystoroz/following{/other_user}","gists_url":"https://api.github.com/users/brittanystoroz/gists{/gist_id}","starred_url":"https://api.github.com/users/brittanystoroz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brittanystoroz/subscriptions","organizations_url":"https://api.github.com/users/brittanystoroz/orgs","repos_url":"https://api.github.com/users/brittanystoroz/repos","events_url":"https://api.github.com/users/brittanystoroz/events{/privacy}","received_events_url":"https://api.github.com/users/brittanystoroz/received_events","type":"User","site_admin":false},"body":"💯 ","created_at":"2016-10-19T11:55:31Z","updated_at":"2016-10-19T11:55:31Z","html_url":"https://github.com/turingschool-projects/1606-remember-1/pull/18#discussion_r84052759","pull_request_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/turingschool-projects/1606-remember-1/pulls/comments/84052759"},"html":{"href":"https://github.com/turingschool-projects/1606-remember-1/pull/18#discussion_r84052759"},"pull_request":{"href":"https://api.github.com/repos/turingschool-projects/1606-remember-1/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/pulls/18","id":89898154,"html_url":"https://github.com/turingschool-projects/1606-remember-1/pull/18","diff_url":"https://github.com/turingschool-projects/1606-remember-1/pull/18.diff","patch_url":"https://github.com/turingschool-projects/1606-remember-1/pull/18.patch","issue_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/issues/18","number":18,"state":"open","locked":false,"title":"closes #12 closes #15","user":{"login":"kerrd89","id":16307700,"avatar_url":"https://avatars.githubusercontent.com/u/16307700?v=3","gravatar_id":"","url":"https://api.github.com/users/kerrd89","html_url":"https://github.com/kerrd89","followers_url":"https://api.github.com/users/kerrd89/followers","following_url":"https://api.github.com/users/kerrd89/following{/other_user}","gists_url":"https://api.github.com/users/kerrd89/gists{/gist_id}","starred_url":"https://api.github.com/users/kerrd89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerrd89/subscriptions","organizations_url":"https://api.github.com/users/kerrd89/orgs","repos_url":"https://api.github.com/users/kerrd89/repos","events_url":"https://api.github.com/users/kerrd89/events{/privacy}","received_events_url":"https://api.github.com/users/kerrd89/received_events","type":"User","site_admin":false},"body":"## Purpose\r\n\r\nUsers can delete reminders and added a visual cue to the list on the left when an item is unsaved.\r\n\r\n## Approach\r\n\r\nAdded a button to delete on the reminder template.  This button routes back to the index reminders.reminder route on completion.\r\n\r\nInside the each, we pass a class of unsaved if that reminder is dirty.\r\n\r\n### Learning\r\n\r\nHow to route back within the controller on delete: \r\nhttps://emberigniter.com/5-essential-ember-2.0-concepts/.\r\n\r\nWillTransition to toggle edit when we navigate away: \r\nhttp://stackoverflow.com/questions/28372064/how-to-fire-ember-js-action-on-navigating-away-from-a-page\r\n\r\n### Test coverage \r\n\r\nTest when reminders are dirty that the class of 'unsaved-reminder' appears once.  Test that when no reminders are dirty that class doesn't appear at all.\r\n\r\nTest when you delete a reminder it no longer appears on the list and you have been routed back to the index reminder.\r\n\r\n@stevekinney @brittanystoroz @martensonbj ","created_at":"2016-10-18T21:02:04Z","updated_at":"2016-10-19T11:55:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"990249aafb31a0fc9c32cf3c1acdfc1f4cd1db93","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/pulls/18/commits","review_comments_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/pulls/18/comments","review_comment_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/issues/18/comments","statuses_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/statuses/99ebb27f159804694f2c23f5428f99a073a23314","head":{"label":"kerrd89:feature-7","ref":"feature-7","sha":"99ebb27f159804694f2c23f5428f99a073a23314","user":{"login":"kerrd89","id":16307700,"avatar_url":"https://avatars.githubusercontent.com/u/16307700?v=3","gravatar_id":"","url":"https://api.github.com/users/kerrd89","html_url":"https://github.com/kerrd89","followers_url":"https://api.github.com/users/kerrd89/followers","following_url":"https://api.github.com/users/kerrd89/following{/other_user}","gists_url":"https://api.github.com/users/kerrd89/gists{/gist_id}","starred_url":"https://api.github.com/users/kerrd89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerrd89/subscriptions","organizations_url":"https://api.github.com/users/kerrd89/orgs","repos_url":"https://api.github.com/users/kerrd89/repos","events_url":"https://api.github.com/users/kerrd89/events{/privacy}","received_events_url":"https://api.github.com/users/kerrd89/received_events","type":"User","site_admin":false},"repo":{"id":70736889,"name":"1606-remember-1","full_name":"kerrd89/1606-remember-1","owner":{"login":"kerrd89","id":16307700,"avatar_url":"https://avatars.githubusercontent.com/u/16307700?v=3","gravatar_id":"","url":"https://api.github.com/users/kerrd89","html_url":"https://github.com/kerrd89","followers_url":"https://api.github.com/users/kerrd89/followers","following_url":"https://api.github.com/users/kerrd89/following{/other_user}","gists_url":"https://api.github.com/users/kerrd89/gists{/gist_id}","starred_url":"https://api.github.com/users/kerrd89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerrd89/subscriptions","organizations_url":"https://api.github.com/users/kerrd89/orgs","repos_url":"https://api.github.com/users/kerrd89/repos","events_url":"https://api.github.com/users/kerrd89/events{/privacy}","received_events_url":"https://api.github.com/users/kerrd89/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kerrd89/1606-remember-1","description":null,"fork":true,"url":"https://api.github.com/repos/kerrd89/1606-remember-1","forks_url":"https://api.github.com/repos/kerrd89/1606-remember-1/forks","keys_url":"https://api.github.com/repos/kerrd89/1606-remember-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kerrd89/1606-remember-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kerrd89/1606-remember-1/teams","hooks_url":"https://api.github.com/repos/kerrd89/1606-remember-1/hooks","issue_events_url":"https://api.github.com/repos/kerrd89/1606-remember-1/issues/events{/number}","events_url":"https://api.github.com/repos/kerrd89/1606-remember-1/events","assignees_url":"https://api.github.com/repos/kerrd89/1606-remember-1/assignees{/user}","branches_url":"https://api.github.com/repos/kerrd89/1606-remember-1/branches{/branch}","tags_url":"https://api.github.com/repos/kerrd89/1606-remember-1/tags","blobs_url":"https://api.github.com/repos/kerrd89/1606-remember-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kerrd89/1606-remember-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kerrd89/1606-remember-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/kerrd89/1606-remember-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kerrd89/1606-remember-1/statuses/{sha}","languages_url":"https://api.github.com/repos/kerrd89/1606-remember-1/languages","stargazers_url":"https://api.github.com/repos/kerrd89/1606-remember-1/stargazers","contributors_url":"https://api.github.com/repos/kerrd89/1606-remember-1/contributors","subscribers_url":"https://api.github.com/repos/kerrd89/1606-remember-1/subscribers","subscription_url":"https://api.github.com/repos/kerrd89/1606-remember-1/subscription","commits_url":"https://api.github.com/repos/kerrd89/1606-remember-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/kerrd89/1606-remember-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/kerrd89/1606-remember-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/kerrd89/1606-remember-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/kerrd89/1606-remember-1/contents/{+path}","compare_url":"https://api.github.com/repos/kerrd89/1606-remember-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kerrd89/1606-remember-1/merges","archive_url":"https://api.github.com/repos/kerrd89/1606-remember-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kerrd89/1606-remember-1/downloads","issues_url":"https://api.github.com/repos/kerrd89/1606-remember-1/issues{/number}","pulls_url":"https://api.github.com/repos/kerrd89/1606-remember-1/pulls{/number}","milestones_url":"https://api.github.com/repos/kerrd89/1606-remember-1/milestones{/number}","notifications_url":"https://api.github.com/repos/kerrd89/1606-remember-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kerrd89/1606-remember-1/labels{/name}","releases_url":"https://api.github.com/repos/kerrd89/1606-remember-1/releases{/id}","deployments_url":"https://api.github.com/repos/kerrd89/1606-remember-1/deployments","created_at":"2016-10-12T20:04:23Z","updated_at":"2016-10-12T20:04:25Z","pushed_at":"2016-10-18T23:54:56Z","git_url":"git://github.com/kerrd89/1606-remember-1.git","ssh_url":"git@github.com:kerrd89/1606-remember-1.git","clone_url":"https://github.com/kerrd89/1606-remember-1.git","svn_url":"https://github.com/kerrd89/1606-remember-1","homepage":null,"size":57,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"turingschool-projects:master","ref":"master","sha":"a6560890bfcc7f35ced3d5773378bf8b1ca36734","user":{"login":"turingschool-projects","id":10454571,"avatar_url":"https://avatars.githubusercontent.com/u/10454571?v=3","gravatar_id":"","url":"https://api.github.com/users/turingschool-projects","html_url":"https://github.com/turingschool-projects","followers_url":"https://api.github.com/users/turingschool-projects/followers","following_url":"https://api.github.com/users/turingschool-projects/following{/other_user}","gists_url":"https://api.github.com/users/turingschool-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool-projects/subscriptions","organizations_url":"https://api.github.com/users/turingschool-projects/orgs","repos_url":"https://api.github.com/users/turingschool-projects/repos","events_url":"https://api.github.com/users/turingschool-projects/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":70725090,"name":"1606-remember-1","full_name":"turingschool-projects/1606-remember-1","owner":{"login":"turingschool-projects","id":10454571,"avatar_url":"https://avatars.githubusercontent.com/u/10454571?v=3","gravatar_id":"","url":"https://api.github.com/users/turingschool-projects","html_url":"https://github.com/turingschool-projects","followers_url":"https://api.github.com/users/turingschool-projects/followers","following_url":"https://api.github.com/users/turingschool-projects/following{/other_user}","gists_url":"https://api.github.com/users/turingschool-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool-projects/subscriptions","organizations_url":"https://api.github.com/users/turingschool-projects/orgs","repos_url":"https://api.github.com/users/turingschool-projects/repos","events_url":"https://api.github.com/users/turingschool-projects/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/turingschool-projects/1606-remember-1","description":null,"fork":false,"url":"https://api.github.com/repos/turingschool-projects/1606-remember-1","forks_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/forks","keys_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/teams","hooks_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/hooks","issue_events_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/issues/events{/number}","events_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/events","assignees_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/assignees{/user}","branches_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/branches{/branch}","tags_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/tags","blobs_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/statuses/{sha}","languages_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/languages","stargazers_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/stargazers","contributors_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/contributors","subscribers_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/subscribers","subscription_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/subscription","commits_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/contents/{+path}","compare_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/merges","archive_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/downloads","issues_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/issues{/number}","pulls_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/pulls{/number}","milestones_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/milestones{/number}","notifications_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/labels{/name}","releases_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/releases{/id}","deployments_url":"https://api.github.com/repos/turingschool-projects/1606-remember-1/deployments","created_at":"2016-10-12T17:40:03Z","updated_at":"2016-10-12T19:11:41Z","pushed_at":"2016-10-18T22:10:43Z","git_url":"git://github.com/turingschool-projects/1606-remember-1.git","ssh_url":"git@github.com:turingschool-projects/1606-remember-1.git","clone_url":"https://github.com/turingschool-projects/1606-remember-1.git","svn_url":"https://github.com/turingschool-projects/1606-remember-1","homepage":null,"size":52,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/turingschool-projects/1606-remember-1/pulls/18"},"html":{"href":"https://github.com/turingschool-projects/1606-remember-1/pull/18"},"issue":{"href":"https://api.github.com/repos/turingschool-projects/1606-remember-1/issues/18"},"comments":{"href":"https://api.github.com/repos/turingschool-projects/1606-remember-1/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool-projects/1606-remember-1/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/turingschool-projects/1606-remember-1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/turingschool-projects/1606-remember-1/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool-projects/1606-remember-1/statuses/99ebb27f159804694f2c23f5428f99a073a23314"}}}}
{"actor":{"display_login":"brittanystoroz"}}