{"action":"opened","number":36,"pull_request":{"url":"https://api.github.com/repos/jamon/playmusic/pulls/36","id":56453370,"html_url":"https://github.com/jamon/playmusic/pull/36","diff_url":"https://github.com/jamon/playmusic/pull/36.diff","patch_url":"https://github.com/jamon/playmusic/pull/36.patch","issue_url":"https://api.github.com/repos/jamon/playmusic/issues/36","number":36,"state":"open","locked":false,"title":"Batch mutations for adding and removing from playlist","user":{"login":"tavvy","id":660635,"avatar_url":"https://avatars.githubusercontent.com/u/660635?v=3","gravatar_id":"","url":"https://api.github.com/users/tavvy","html_url":"https://github.com/tavvy","followers_url":"https://api.github.com/users/tavvy/followers","following_url":"https://api.github.com/users/tavvy/following{/other_user}","gists_url":"https://api.github.com/users/tavvy/gists{/gist_id}","starred_url":"https://api.github.com/users/tavvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tavvy/subscriptions","organizations_url":"https://api.github.com/users/tavvy/orgs","repos_url":"https://api.github.com/users/tavvy/repos","events_url":"https://api.github.com/users/tavvy/events{/privacy}","received_events_url":"https://api.github.com/users/tavvy/received_events","type":"User","site_admin":false},"body":"Batch mutations\r\n----\r\n**! This would be a breaking change !**\r\n- Allows the bunching of mutations in a single GPM request\r\n- Changes applied to playlist functionality (adding or removing songs)\r\n\r\nIt takes a while for GPM changes to propagate. So when making multiple removal requests at the same time, there is a noticeable delay (up to several minutes) for GPM to update with the changes. This results in playlists seemingly shrinking in size as more songs are deleted with each page reload.\r\n\r\nBenefits\r\n----\r\n- By batching, the delay is either removed or reduced greatly (seconds rather than minutes)\r\n- Better performance due to fewer outgoing requests to GPM\r\n- Simplifies code when performing multiple track additions\r\n- Simplifies code when performing multiple playlist entry removals \r\n\r\nMigration Guide\r\n----\r\npm.addTrackToPlayList('12345-6789', cb())\r\n*becomes*\r\npm.addTrack**s**ToPlayList(**[**'12345-6789'**]**, cb())\r\n\r\npm.removePlayListEntry('12345-6789', cb())\r\n*becomes*\r\npm.removePlayList**Entries**(**[**'12345-6789'**]**, cb())","created_at":"2016-01-19T11:28:23Z","updated_at":"2016-01-19T11:28:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jamon/playmusic/pulls/36/commits","review_comments_url":"https://api.github.com/repos/jamon/playmusic/pulls/36/comments","review_comment_url":"https://api.github.com/repos/jamon/playmusic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jamon/playmusic/issues/36/comments","statuses_url":"https://api.github.com/repos/jamon/playmusic/statuses/572c534964ae4386e43703bb79968276176fcfc3","head":{"label":"tavvy:batch-mutations","ref":"batch-mutations","sha":"572c534964ae4386e43703bb79968276176fcfc3","user":{"login":"tavvy","id":660635,"avatar_url":"https://avatars.githubusercontent.com/u/660635?v=3","gravatar_id":"","url":"https://api.github.com/users/tavvy","html_url":"https://github.com/tavvy","followers_url":"https://api.github.com/users/tavvy/followers","following_url":"https://api.github.com/users/tavvy/following{/other_user}","gists_url":"https://api.github.com/users/tavvy/gists{/gist_id}","starred_url":"https://api.github.com/users/tavvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tavvy/subscriptions","organizations_url":"https://api.github.com/users/tavvy/orgs","repos_url":"https://api.github.com/users/tavvy/repos","events_url":"https://api.github.com/users/tavvy/events{/privacy}","received_events_url":"https://api.github.com/users/tavvy/received_events","type":"User","site_admin":false},"repo":{"id":49944857,"name":"playmusic","full_name":"tavvy/playmusic","owner":{"login":"tavvy","id":660635,"avatar_url":"https://avatars.githubusercontent.com/u/660635?v=3","gravatar_id":"","url":"https://api.github.com/users/tavvy","html_url":"https://github.com/tavvy","followers_url":"https://api.github.com/users/tavvy/followers","following_url":"https://api.github.com/users/tavvy/following{/other_user}","gists_url":"https://api.github.com/users/tavvy/gists{/gist_id}","starred_url":"https://api.github.com/users/tavvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tavvy/subscriptions","organizations_url":"https://api.github.com/users/tavvy/orgs","repos_url":"https://api.github.com/users/tavvy/repos","events_url":"https://api.github.com/users/tavvy/events{/privacy}","received_events_url":"https://api.github.com/users/tavvy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tavvy/playmusic","description":"Google Play Music client for node.js.","fork":true,"url":"https://api.github.com/repos/tavvy/playmusic","forks_url":"https://api.github.com/repos/tavvy/playmusic/forks","keys_url":"https://api.github.com/repos/tavvy/playmusic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tavvy/playmusic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tavvy/playmusic/teams","hooks_url":"https://api.github.com/repos/tavvy/playmusic/hooks","issue_events_url":"https://api.github.com/repos/tavvy/playmusic/issues/events{/number}","events_url":"https://api.github.com/repos/tavvy/playmusic/events","assignees_url":"https://api.github.com/repos/tavvy/playmusic/assignees{/user}","branches_url":"https://api.github.com/repos/tavvy/playmusic/branches{/branch}","tags_url":"https://api.github.com/repos/tavvy/playmusic/tags","blobs_url":"https://api.github.com/repos/tavvy/playmusic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tavvy/playmusic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tavvy/playmusic/git/refs{/sha}","trees_url":"https://api.github.com/repos/tavvy/playmusic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tavvy/playmusic/statuses/{sha}","languages_url":"https://api.github.com/repos/tavvy/playmusic/languages","stargazers_url":"https://api.github.com/repos/tavvy/playmusic/stargazers","contributors_url":"https://api.github.com/repos/tavvy/playmusic/contributors","subscribers_url":"https://api.github.com/repos/tavvy/playmusic/subscribers","subscription_url":"https://api.github.com/repos/tavvy/playmusic/subscription","commits_url":"https://api.github.com/repos/tavvy/playmusic/commits{/sha}","git_commits_url":"https://api.github.com/repos/tavvy/playmusic/git/commits{/sha}","comments_url":"https://api.github.com/repos/tavvy/playmusic/comments{/number}","issue_comment_url":"https://api.github.com/repos/tavvy/playmusic/issues/comments{/number}","contents_url":"https://api.github.com/repos/tavvy/playmusic/contents/{+path}","compare_url":"https://api.github.com/repos/tavvy/playmusic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tavvy/playmusic/merges","archive_url":"https://api.github.com/repos/tavvy/playmusic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tavvy/playmusic/downloads","issues_url":"https://api.github.com/repos/tavvy/playmusic/issues{/number}","pulls_url":"https://api.github.com/repos/tavvy/playmusic/pulls{/number}","milestones_url":"https://api.github.com/repos/tavvy/playmusic/milestones{/number}","notifications_url":"https://api.github.com/repos/tavvy/playmusic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tavvy/playmusic/labels{/name}","releases_url":"https://api.github.com/repos/tavvy/playmusic/releases{/id}","created_at":"2016-01-19T10:23:15Z","updated_at":"2016-01-19T10:23:16Z","pushed_at":"2016-01-19T11:11:40Z","git_url":"git://github.com/tavvy/playmusic.git","ssh_url":"git@github.com:tavvy/playmusic.git","clone_url":"https://github.com/tavvy/playmusic.git","svn_url":"https://github.com/tavvy/playmusic","homepage":"","size":113,"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":"jamon:master","ref":"master","sha":"bbd7ece7390e5d70d8c59800ac86f8185fc5096c","user":{"login":"jamon","id":272949,"avatar_url":"https://avatars.githubusercontent.com/u/272949?v=3","gravatar_id":"","url":"https://api.github.com/users/jamon","html_url":"https://github.com/jamon","followers_url":"https://api.github.com/users/jamon/followers","following_url":"https://api.github.com/users/jamon/following{/other_user}","gists_url":"https://api.github.com/users/jamon/gists{/gist_id}","starred_url":"https://api.github.com/users/jamon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamon/subscriptions","organizations_url":"https://api.github.com/users/jamon/orgs","repos_url":"https://api.github.com/users/jamon/repos","events_url":"https://api.github.com/users/jamon/events{/privacy}","received_events_url":"https://api.github.com/users/jamon/received_events","type":"User","site_admin":false},"repo":{"id":20391209,"name":"playmusic","full_name":"jamon/playmusic","owner":{"login":"jamon","id":272949,"avatar_url":"https://avatars.githubusercontent.com/u/272949?v=3","gravatar_id":"","url":"https://api.github.com/users/jamon","html_url":"https://github.com/jamon","followers_url":"https://api.github.com/users/jamon/followers","following_url":"https://api.github.com/users/jamon/following{/other_user}","gists_url":"https://api.github.com/users/jamon/gists{/gist_id}","starred_url":"https://api.github.com/users/jamon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamon/subscriptions","organizations_url":"https://api.github.com/users/jamon/orgs","repos_url":"https://api.github.com/users/jamon/repos","events_url":"https://api.github.com/users/jamon/events{/privacy}","received_events_url":"https://api.github.com/users/jamon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamon/playmusic","description":"Google Play Music client for node.js.","fork":false,"url":"https://api.github.com/repos/jamon/playmusic","forks_url":"https://api.github.com/repos/jamon/playmusic/forks","keys_url":"https://api.github.com/repos/jamon/playmusic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamon/playmusic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamon/playmusic/teams","hooks_url":"https://api.github.com/repos/jamon/playmusic/hooks","issue_events_url":"https://api.github.com/repos/jamon/playmusic/issues/events{/number}","events_url":"https://api.github.com/repos/jamon/playmusic/events","assignees_url":"https://api.github.com/repos/jamon/playmusic/assignees{/user}","branches_url":"https://api.github.com/repos/jamon/playmusic/branches{/branch}","tags_url":"https://api.github.com/repos/jamon/playmusic/tags","blobs_url":"https://api.github.com/repos/jamon/playmusic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamon/playmusic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamon/playmusic/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamon/playmusic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamon/playmusic/statuses/{sha}","languages_url":"https://api.github.com/repos/jamon/playmusic/languages","stargazers_url":"https://api.github.com/repos/jamon/playmusic/stargazers","contributors_url":"https://api.github.com/repos/jamon/playmusic/contributors","subscribers_url":"https://api.github.com/repos/jamon/playmusic/subscribers","subscription_url":"https://api.github.com/repos/jamon/playmusic/subscription","commits_url":"https://api.github.com/repos/jamon/playmusic/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamon/playmusic/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamon/playmusic/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamon/playmusic/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamon/playmusic/contents/{+path}","compare_url":"https://api.github.com/repos/jamon/playmusic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamon/playmusic/merges","archive_url":"https://api.github.com/repos/jamon/playmusic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamon/playmusic/downloads","issues_url":"https://api.github.com/repos/jamon/playmusic/issues{/number}","pulls_url":"https://api.github.com/repos/jamon/playmusic/pulls{/number}","milestones_url":"https://api.github.com/repos/jamon/playmusic/milestones{/number}","notifications_url":"https://api.github.com/repos/jamon/playmusic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamon/playmusic/labels{/name}","releases_url":"https://api.github.com/repos/jamon/playmusic/releases{/id}","created_at":"2014-06-02T02:19:19Z","updated_at":"2016-01-16T13:18:59Z","pushed_at":"2016-01-19T11:28:23Z","git_url":"git://github.com/jamon/playmusic.git","ssh_url":"git@github.com:jamon/playmusic.git","clone_url":"https://github.com/jamon/playmusic.git","svn_url":"https://github.com/jamon/playmusic","homepage":"","size":119,"stargazers_count":81,"watchers_count":81,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":9,"forks":17,"open_issues":9,"watchers":81,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jamon/playmusic/pulls/36"},"html":{"href":"https://github.com/jamon/playmusic/pull/36"},"issue":{"href":"https://api.github.com/repos/jamon/playmusic/issues/36"},"comments":{"href":"https://api.github.com/repos/jamon/playmusic/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/jamon/playmusic/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/jamon/playmusic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jamon/playmusic/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/jamon/playmusic/statuses/572c534964ae4386e43703bb79968276176fcfc3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":26,"deletions":20,"changed_files":1}}