{"action":"opened","issue":{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-KyCodeHuynh/issues/15","repository_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-KyCodeHuynh","labels_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-KyCodeHuynh/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-KyCodeHuynh/issues/15/comments","events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-KyCodeHuynh/issues/15/events","html_url":"https://github.com/AppFolioOnboarding/image-sharer-KyCodeHuynh/issues/15","id":160290469,"number":15,"title":"Favorite Image","user":{"login":"AppFolioRopes","id":17462904,"avatar_url":"https://avatars.githubusercontent.com/u/17462904?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioRopes","html_url":"https://github.com/AppFolioRopes","followers_url":"https://api.github.com/users/AppFolioRopes/followers","following_url":"https://api.github.com/users/AppFolioRopes/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioRopes/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioRopes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioRopes/subscriptions","organizations_url":"https://api.github.com/users/AppFolioRopes/orgs","repos_url":"https://api.github.com/users/AppFolioRopes/repos","events_url":"https://api.github.com/users/AppFolioRopes/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioRopes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-KyCodeHuynh/labels/unstarted","name":"unstarted","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"rmacklin","id":1863540,"avatar_url":"https://avatars.githubusercontent.com/u/1863540?v=3","gravatar_id":"","url":"https://api.github.com/users/rmacklin","html_url":"https://github.com/rmacklin","followers_url":"https://api.github.com/users/rmacklin/followers","following_url":"https://api.github.com/users/rmacklin/following{/other_user}","gists_url":"https://api.github.com/users/rmacklin/gists{/gist_id}","starred_url":"https://api.github.com/users/rmacklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmacklin/subscriptions","organizations_url":"https://api.github.com/users/rmacklin/orgs","repos_url":"https://api.github.com/users/rmacklin/repos","events_url":"https://api.github.com/users/rmacklin/events{/privacy}","received_events_url":"https://api.github.com/users/rmacklin/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-06-14T21:39:26Z","updated_at":"2016-06-14T21:39:26Z","closed_at":null,"body":"#### As a logged in user I want to favorite an image.\n\nAcceptance criteria:\n- [ ] Each image on the index page has a \"favorite\" button.\n- [ ] The button indicates how many users have favorited that image.\n- [ ] When you favorite an image the button state changes to a \"favorited\"\n  state.\n- [ ] When you favorite an image the count of users who have favorited that\n  image is updated.\n- [ ] If you have already favorited an image, clicking the button \"unfavorites\"\n  the image.\n- [ ] Favoriting/unfavoriting is done via AJAX.\n\nDiscussion topics:\n- [ ] What can we do to cache the favorites count?\n- [ ] How can we make our images relation for the index page include whether\n  the image was favorited by the current user?\n- [ ] How can we develop the front end and back end separately?\n- [ ] How can we reuse templates on the server and client?\n- [ ] What are the different types of errors we should handle?\n\nReference material:\n- http://guides.rubyonrails.org/association_basics.html#counter-cache\n- http://guides.rubyonrails.org/active_record_querying.html#scopes\n- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template\n\nDependencies:\n- Authorization\n"}}
{"actor":{"display_login":"AppFolioRopes"}}