{"action":"opened","number":457,"pull_request":{"url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/pulls/457","id":70210921,"html_url":"https://github.com/stormpath/stormpath-sdk-node/pull/457","diff_url":"https://github.com/stormpath/stormpath-sdk-node/pull/457.diff","patch_url":"https://github.com/stormpath/stormpath-sdk-node/pull/457.patch","issue_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/issues/457","number":457,"state":"open","locked":false,"title":"Fix organization.save() for custom data","user":{"login":"typerandom","id":1331778,"avatar_url":"https://avatars.githubusercontent.com/u/1331778?v=3","gravatar_id":"","url":"https://api.github.com/users/typerandom","html_url":"https://github.com/typerandom","followers_url":"https://api.github.com/users/typerandom/followers","following_url":"https://api.github.com/users/typerandom/following{/other_user}","gists_url":"https://api.github.com/users/typerandom/gists{/gist_id}","starred_url":"https://api.github.com/users/typerandom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typerandom/subscriptions","organizations_url":"https://api.github.com/users/typerandom/orgs","repos_url":"https://api.github.com/users/typerandom/repos","events_url":"https://api.github.com/users/typerandom/events{/privacy}","received_events_url":"https://api.github.com/users/typerandom/received_events","type":"User","site_admin":false},"body":"Fixes the issue where protected custom data fields weren't removed before saving the Organization.\r\n\r\n#### How to verify\r\n\r\n1. Create a new app using [this gist](https://gist.github.com/typerandom/376a13f3e7ddc40aeac9d3c1c110f5a9).\r\n2. Test the app against the Node SDK's master branch.\r\n3. Verify that you get the error described in #455.\r\n4. Checkout this branch and test the app against it.\r\n5. Verify that the custom data of the organization is updated.\r\n\r\nFix #455 ","created_at":"2016-05-16T15:12:15Z","updated_at":"2016-05-16T15:12:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/pulls/457/commits","review_comments_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/pulls/457/comments","review_comment_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/issues/457/comments","statuses_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/statuses/543bfc261acdee4f8527185b50df6e9843d3e7fa","head":{"label":"stormpath:fix-organization-custom-data-save","ref":"fix-organization-custom-data-save","sha":"543bfc261acdee4f8527185b50df6e9843d3e7fa","user":{"login":"stormpath","id":1377453,"avatar_url":"https://avatars.githubusercontent.com/u/1377453?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpath","html_url":"https://github.com/stormpath","followers_url":"https://api.github.com/users/stormpath/followers","following_url":"https://api.github.com/users/stormpath/following{/other_user}","gists_url":"https://api.github.com/users/stormpath/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpath/subscriptions","organizations_url":"https://api.github.com/users/stormpath/orgs","repos_url":"https://api.github.com/users/stormpath/repos","events_url":"https://api.github.com/users/stormpath/events{/privacy}","received_events_url":"https://api.github.com/users/stormpath/received_events","type":"Organization","site_admin":false},"repo":{"id":16016386,"name":"stormpath-sdk-node","full_name":"stormpath/stormpath-sdk-node","owner":{"login":"stormpath","id":1377453,"avatar_url":"https://avatars.githubusercontent.com/u/1377453?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpath","html_url":"https://github.com/stormpath","followers_url":"https://api.github.com/users/stormpath/followers","following_url":"https://api.github.com/users/stormpath/following{/other_user}","gists_url":"https://api.github.com/users/stormpath/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpath/subscriptions","organizations_url":"https://api.github.com/users/stormpath/orgs","repos_url":"https://api.github.com/users/stormpath/repos","events_url":"https://api.github.com/users/stormpath/events{/privacy}","received_events_url":"https://api.github.com/users/stormpath/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stormpath/stormpath-sdk-node","description":"Official Node.js SDK for the Stormpath User Management REST API","fork":false,"url":"https://api.github.com/repos/stormpath/stormpath-sdk-node","forks_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/forks","keys_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/teams","hooks_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/hooks","issue_events_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/issues/events{/number}","events_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/events","assignees_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/assignees{/user}","branches_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/branches{/branch}","tags_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/tags","blobs_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/statuses/{sha}","languages_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/languages","stargazers_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/stargazers","contributors_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/contributors","subscribers_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/subscribers","subscription_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/subscription","commits_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/contents/{+path}","compare_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/merges","archive_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/downloads","issues_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/issues{/number}","pulls_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/pulls{/number}","milestones_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/milestones{/number}","notifications_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/labels{/name}","releases_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/releases{/id}","deployments_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/deployments","created_at":"2014-01-18T01:03:26Z","updated_at":"2016-05-12T13:46:52Z","pushed_at":"2016-05-14T19:18:42Z","git_url":"git://github.com/stormpath/stormpath-sdk-node.git","ssh_url":"git@github.com:stormpath/stormpath-sdk-node.git","clone_url":"https://github.com/stormpath/stormpath-sdk-node.git","svn_url":"https://github.com/stormpath/stormpath-sdk-node","homepage":null,"size":1718,"stargazers_count":79,"watchers_count":79,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":66,"forks":27,"open_issues":66,"watchers":79,"default_branch":"master"}},"base":{"label":"stormpath:master","ref":"master","sha":"66fb9229cb08da4eca255c2728d325cc80b3e1ce","user":{"login":"stormpath","id":1377453,"avatar_url":"https://avatars.githubusercontent.com/u/1377453?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpath","html_url":"https://github.com/stormpath","followers_url":"https://api.github.com/users/stormpath/followers","following_url":"https://api.github.com/users/stormpath/following{/other_user}","gists_url":"https://api.github.com/users/stormpath/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpath/subscriptions","organizations_url":"https://api.github.com/users/stormpath/orgs","repos_url":"https://api.github.com/users/stormpath/repos","events_url":"https://api.github.com/users/stormpath/events{/privacy}","received_events_url":"https://api.github.com/users/stormpath/received_events","type":"Organization","site_admin":false},"repo":{"id":16016386,"name":"stormpath-sdk-node","full_name":"stormpath/stormpath-sdk-node","owner":{"login":"stormpath","id":1377453,"avatar_url":"https://avatars.githubusercontent.com/u/1377453?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpath","html_url":"https://github.com/stormpath","followers_url":"https://api.github.com/users/stormpath/followers","following_url":"https://api.github.com/users/stormpath/following{/other_user}","gists_url":"https://api.github.com/users/stormpath/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpath/subscriptions","organizations_url":"https://api.github.com/users/stormpath/orgs","repos_url":"https://api.github.com/users/stormpath/repos","events_url":"https://api.github.com/users/stormpath/events{/privacy}","received_events_url":"https://api.github.com/users/stormpath/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stormpath/stormpath-sdk-node","description":"Official Node.js SDK for the Stormpath User Management REST API","fork":false,"url":"https://api.github.com/repos/stormpath/stormpath-sdk-node","forks_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/forks","keys_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/teams","hooks_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/hooks","issue_events_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/issues/events{/number}","events_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/events","assignees_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/assignees{/user}","branches_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/branches{/branch}","tags_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/tags","blobs_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/statuses/{sha}","languages_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/languages","stargazers_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/stargazers","contributors_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/contributors","subscribers_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/subscribers","subscription_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/subscription","commits_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/contents/{+path}","compare_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/merges","archive_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/downloads","issues_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/issues{/number}","pulls_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/pulls{/number}","milestones_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/milestones{/number}","notifications_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/labels{/name}","releases_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/releases{/id}","deployments_url":"https://api.github.com/repos/stormpath/stormpath-sdk-node/deployments","created_at":"2014-01-18T01:03:26Z","updated_at":"2016-05-12T13:46:52Z","pushed_at":"2016-05-14T19:18:42Z","git_url":"git://github.com/stormpath/stormpath-sdk-node.git","ssh_url":"git@github.com:stormpath/stormpath-sdk-node.git","clone_url":"https://github.com/stormpath/stormpath-sdk-node.git","svn_url":"https://github.com/stormpath/stormpath-sdk-node","homepage":null,"size":1718,"stargazers_count":79,"watchers_count":79,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":66,"forks":27,"open_issues":66,"watchers":79,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-node/pulls/457"},"html":{"href":"https://github.com/stormpath/stormpath-sdk-node/pull/457"},"issue":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-node/issues/457"},"comments":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-node/issues/457/comments"},"review_comments":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-node/pulls/457/comments"},"review_comment":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-node/pulls/457/commits"},"statuses":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-node/statuses/543bfc261acdee4f8527185b50df6e9843d3e7fa"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":76,"deletions":28,"changed_files":5}}