{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/4664","repository_url":"https://api.github.com/repos/chef/chef","labels_url":"https://api.github.com/repos/chef/chef/issues/4664/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/4664/comments","events_url":"https://api.github.com/repos/chef/chef/issues/4664/events","html_url":"https://github.com/chef/chef/pull/4664","id":138338779,"number":4664,"title":"Data bag item hash can have name key","user":{"login":"chefsalim","id":13542112,"avatar_url":"https://avatars.githubusercontent.com/u/13542112?v=3","gravatar_id":"","url":"https://api.github.com/users/chefsalim","html_url":"https://github.com/chefsalim","followers_url":"https://api.github.com/users/chefsalim/followers","following_url":"https://api.github.com/users/chefsalim/following{/other_user}","gists_url":"https://api.github.com/users/chefsalim/gists{/gist_id}","starred_url":"https://api.github.com/users/chefsalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chefsalim/subscriptions","organizations_url":"https://api.github.com/users/chefsalim/orgs","repos_url":"https://api.github.com/users/chefsalim/repos","events_url":"https://api.github.com/users/chefsalim/events{/privacy}","received_events_url":"https://api.github.com/users/chefsalim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-04T00:26:59Z","updated_at":"2016-03-04T07:22:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chef/chef/pulls/4664","html_url":"https://github.com/chef/chef/pull/4664","diff_url":"https://github.com/chef/chef/pull/4664.diff","patch_url":"https://github.com/chef/chef/pull/4664.patch"},"body":"This PR resolves https://github.com/chef/chef/issues/4392\r\n\r\nIn cases where the data bag item is loaded with json that does not have the canonical knife format (with the user fields in \"raw_data\"), then the loading code was explicitly deleting the \"name\" key.  It is not clear whether the deletion of the \"name\" key actually served any purpose (in the case where the raw_data IS present, deleting \"name\" is a no-op), so removing it.\r\n\r\n@chef/client-core @thommay @tas50 @lamont-granquist "},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/192155028","html_url":"https://github.com/chef/chef/pull/4664#issuecomment-192155028","issue_url":"https://api.github.com/repos/chef/chef/issues/4664","id":192155028,"user":{"login":"lamont-granquist","id":454857,"avatar_url":"https://avatars.githubusercontent.com/u/454857?v=3","gravatar_id":"","url":"https://api.github.com/users/lamont-granquist","html_url":"https://github.com/lamont-granquist","followers_url":"https://api.github.com/users/lamont-granquist/followers","following_url":"https://api.github.com/users/lamont-granquist/following{/other_user}","gists_url":"https://api.github.com/users/lamont-granquist/gists{/gist_id}","starred_url":"https://api.github.com/users/lamont-granquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamont-granquist/subscriptions","organizations_url":"https://api.github.com/users/lamont-granquist/orgs","repos_url":"https://api.github.com/users/lamont-granquist/repos","events_url":"https://api.github.com/users/lamont-granquist/events{/privacy}","received_events_url":"https://api.github.com/users/lamont-granquist/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T07:22:21Z","updated_at":"2016-03-04T07:22:21Z","body":"seems odd that was ever there, still kinda wonder how that happened...  but :+1:\r\n"}}