{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/pulls/1","id":43297237,"html_url":"https://github.com/hitherejoe/MVVM_Hacker_News/pull/1","diff_url":"https://github.com/hitherejoe/MVVM_Hacker_News/pull/1.diff","patch_url":"https://github.com/hitherejoe/MVVM_Hacker_News/pull/1.patch","issue_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/issues/1","number":1,"state":"closed","locked":false,"title":"Reimplemented post adapter addItem to use notifyItemInserted and notifyItemChanged instead of notifyDataSetChanged","user":{"login":"cgomezmendez","id":2073238,"avatar_url":"https://avatars.githubusercontent.com/u/2073238?v=3","gravatar_id":"","url":"https://api.github.com/users/cgomezmendez","html_url":"https://github.com/cgomezmendez","followers_url":"https://api.github.com/users/cgomezmendez/followers","following_url":"https://api.github.com/users/cgomezmendez/following{/other_user}","gists_url":"https://api.github.com/users/cgomezmendez/gists{/gist_id}","starred_url":"https://api.github.com/users/cgomezmendez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgomezmendez/subscriptions","organizations_url":"https://api.github.com/users/cgomezmendez/orgs","repos_url":"https://api.github.com/users/cgomezmendez/repos","events_url":"https://api.github.com/users/cgomezmendez/events{/privacy}","received_events_url":"https://api.github.com/users/cgomezmendez/received_events","type":"User","site_admin":false},"body":"As you can read in the [documentation](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter.html#notifyDataSetChanged%28%29) NotifyDataSetChanged \r\n>RecyclerView will attempt to synthesize visible structural change events for adapters that report that they have stable IDs when this method is used. This can help for the purposes of animation and visual object persistence but individual item views will still need to be rebound and relaid out.\r\n\r\n>If you are writing an adapter it will always be more efficient to use the more specific change events if you can. Rely on notifyDataSetChanged() as a last resort.\r\n\r\nI implemented [NotifyItemInserted](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter.html#notifyItemInserted(int)) for when a new item is added and [NotifyItemChanged](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter.html#notifyItemChanged(int,%20java.lang.Object)) for when an item is updated (that's not happening right now but could in the future).","created_at":"2015-08-25T15:07:19Z","updated_at":"2015-09-14T13:05:53Z","closed_at":"2015-09-14T13:05:53Z","merged_at":"2015-09-14T13:05:53Z","merge_commit_sha":"30114b69a6a64cb9523819499d883768cc1312f7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/pulls/1/commits","review_comments_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/pulls/1/comments","review_comment_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/issues/1/comments","statuses_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/statuses/59a39ff3f3c61b7e4b5c754d954dc4cd11bb8c04","head":{"label":"cgomezmendez:master","ref":"master","sha":"59a39ff3f3c61b7e4b5c754d954dc4cd11bb8c04","user":{"login":"cgomezmendez","id":2073238,"avatar_url":"https://avatars.githubusercontent.com/u/2073238?v=3","gravatar_id":"","url":"https://api.github.com/users/cgomezmendez","html_url":"https://github.com/cgomezmendez","followers_url":"https://api.github.com/users/cgomezmendez/followers","following_url":"https://api.github.com/users/cgomezmendez/following{/other_user}","gists_url":"https://api.github.com/users/cgomezmendez/gists{/gist_id}","starred_url":"https://api.github.com/users/cgomezmendez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgomezmendez/subscriptions","organizations_url":"https://api.github.com/users/cgomezmendez/orgs","repos_url":"https://api.github.com/users/cgomezmendez/repos","events_url":"https://api.github.com/users/cgomezmendez/events{/privacy}","received_events_url":"https://api.github.com/users/cgomezmendez/received_events","type":"User","site_admin":false},"repo":{"id":41367463,"name":"MVVM_Hacker_News","full_name":"cgomezmendez/MVVM_Hacker_News","owner":{"login":"cgomezmendez","id":2073238,"avatar_url":"https://avatars.githubusercontent.com/u/2073238?v=3","gravatar_id":"","url":"https://api.github.com/users/cgomezmendez","html_url":"https://github.com/cgomezmendez","followers_url":"https://api.github.com/users/cgomezmendez/followers","following_url":"https://api.github.com/users/cgomezmendez/following{/other_user}","gists_url":"https://api.github.com/users/cgomezmendez/gists{/gist_id}","starred_url":"https://api.github.com/users/cgomezmendez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgomezmendez/subscriptions","organizations_url":"https://api.github.com/users/cgomezmendez/orgs","repos_url":"https://api.github.com/users/cgomezmendez/repos","events_url":"https://api.github.com/users/cgomezmendez/events{/privacy}","received_events_url":"https://api.github.com/users/cgomezmendez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cgomezmendez/MVVM_Hacker_News","description":"Android MVVM experiment project using the official Data Binding library","fork":true,"url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News","forks_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/forks","keys_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/teams","hooks_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/hooks","issue_events_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/issues/events{/number}","events_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/events","assignees_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/assignees{/user}","branches_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/branches{/branch}","tags_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/tags","blobs_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/git/refs{/sha}","trees_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/statuses/{sha}","languages_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/languages","stargazers_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/stargazers","contributors_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/contributors","subscribers_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/subscribers","subscription_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/subscription","commits_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/commits{/sha}","git_commits_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/git/commits{/sha}","comments_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/comments{/number}","issue_comment_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/issues/comments{/number}","contents_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/contents/{+path}","compare_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/merges","archive_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/downloads","issues_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/issues{/number}","pulls_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/pulls{/number}","milestones_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/milestones{/number}","notifications_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/labels{/name}","releases_url":"https://api.github.com/repos/cgomezmendez/MVVM_Hacker_News/releases{/id}","created_at":"2015-08-25T14:17:25Z","updated_at":"2015-08-25T14:17:27Z","pushed_at":"2015-08-25T15:01:39Z","git_url":"git://github.com/cgomezmendez/MVVM_Hacker_News.git","ssh_url":"git@github.com:cgomezmendez/MVVM_Hacker_News.git","clone_url":"https://github.com/cgomezmendez/MVVM_Hacker_News.git","svn_url":"https://github.com/cgomezmendez/MVVM_Hacker_News","homepage":null,"size":4894,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"hitherejoe:master","ref":"master","sha":"d096a71dace3e775507b06424bac5f7f5dc23b4f","user":{"login":"hitherejoe","id":3879281,"avatar_url":"https://avatars.githubusercontent.com/u/3879281?v=3","gravatar_id":"","url":"https://api.github.com/users/hitherejoe","html_url":"https://github.com/hitherejoe","followers_url":"https://api.github.com/users/hitherejoe/followers","following_url":"https://api.github.com/users/hitherejoe/following{/other_user}","gists_url":"https://api.github.com/users/hitherejoe/gists{/gist_id}","starred_url":"https://api.github.com/users/hitherejoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hitherejoe/subscriptions","organizations_url":"https://api.github.com/users/hitherejoe/orgs","repos_url":"https://api.github.com/users/hitherejoe/repos","events_url":"https://api.github.com/users/hitherejoe/events{/privacy}","received_events_url":"https://api.github.com/users/hitherejoe/received_events","type":"User","site_admin":false},"repo":{"id":41359411,"name":"MVVM_Hacker_News","full_name":"hitherejoe/MVVM_Hacker_News","owner":{"login":"hitherejoe","id":3879281,"avatar_url":"https://avatars.githubusercontent.com/u/3879281?v=3","gravatar_id":"","url":"https://api.github.com/users/hitherejoe","html_url":"https://github.com/hitherejoe","followers_url":"https://api.github.com/users/hitherejoe/followers","following_url":"https://api.github.com/users/hitherejoe/following{/other_user}","gists_url":"https://api.github.com/users/hitherejoe/gists{/gist_id}","starred_url":"https://api.github.com/users/hitherejoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hitherejoe/subscriptions","organizations_url":"https://api.github.com/users/hitherejoe/orgs","repos_url":"https://api.github.com/users/hitherejoe/repos","events_url":"https://api.github.com/users/hitherejoe/events{/privacy}","received_events_url":"https://api.github.com/users/hitherejoe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hitherejoe/MVVM_Hacker_News","description":"Android MVVM experiment project using the official Data Binding library","fork":false,"url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News","forks_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/forks","keys_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/teams","hooks_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/hooks","issue_events_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/issues/events{/number}","events_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/events","assignees_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/assignees{/user}","branches_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/branches{/branch}","tags_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/tags","blobs_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/git/refs{/sha}","trees_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/statuses/{sha}","languages_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/languages","stargazers_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/stargazers","contributors_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/contributors","subscribers_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/subscribers","subscription_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/subscription","commits_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/commits{/sha}","git_commits_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/git/commits{/sha}","comments_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/comments{/number}","issue_comment_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/issues/comments{/number}","contents_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/contents/{+path}","compare_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/merges","archive_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/downloads","issues_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/issues{/number}","pulls_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/pulls{/number}","milestones_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/milestones{/number}","notifications_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/labels{/name}","releases_url":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/releases{/id}","created_at":"2015-08-25T11:21:45Z","updated_at":"2015-09-14T06:44:36Z","pushed_at":"2015-09-14T13:05:54Z","git_url":"git://github.com/hitherejoe/MVVM_Hacker_News.git","ssh_url":"git@github.com:hitherejoe/MVVM_Hacker_News.git","clone_url":"https://github.com/hitherejoe/MVVM_Hacker_News.git","svn_url":"https://github.com/hitherejoe/MVVM_Hacker_News","homepage":null,"size":5021,"stargazers_count":236,"watchers_count":236,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":0,"forks":19,"open_issues":0,"watchers":236,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/pulls/1"},"html":{"href":"https://github.com/hitherejoe/MVVM_Hacker_News/pull/1"},"issue":{"href":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/issues/1"},"comments":{"href":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/hitherejoe/MVVM_Hacker_News/statuses/59a39ff3f3c61b7e4b5c754d954dc4cd11bb8c04"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"hitherejoe","id":3879281,"avatar_url":"https://avatars.githubusercontent.com/u/3879281?v=3","gravatar_id":"","url":"https://api.github.com/users/hitherejoe","html_url":"https://github.com/hitherejoe","followers_url":"https://api.github.com/users/hitherejoe/followers","following_url":"https://api.github.com/users/hitherejoe/following{/other_user}","gists_url":"https://api.github.com/users/hitherejoe/gists{/gist_id}","starred_url":"https://api.github.com/users/hitherejoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hitherejoe/subscriptions","organizations_url":"https://api.github.com/users/hitherejoe/orgs","repos_url":"https://api.github.com/users/hitherejoe/repos","events_url":"https://api.github.com/users/hitherejoe/events{/privacy}","received_events_url":"https://api.github.com/users/hitherejoe/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":2,"changed_files":1}}