{"action":"closed","number":161,"pull_request":{"url":"https://api.github.com/repos/litaio/lita/pulls/161","id":52879487,"html_url":"https://github.com/litaio/lita/pull/161","diff_url":"https://github.com/litaio/lita/pull/161.diff","patch_url":"https://github.com/litaio/lita/pull/161.patch","issue_url":"https://api.github.com/repos/litaio/lita/issues/161","number":161,"state":"closed","locked":false,"title":"user: Check to see if fields item in user metadata is an empty array","user":{"login":"ErebusBat","id":93973,"avatar_url":"https://avatars.githubusercontent.com/u/93973?v=3","gravatar_id":"","url":"https://api.github.com/users/ErebusBat","html_url":"https://github.com/ErebusBat","followers_url":"https://api.github.com/users/ErebusBat/followers","following_url":"https://api.github.com/users/ErebusBat/following{/other_user}","gists_url":"https://api.github.com/users/ErebusBat/gists{/gist_id}","starred_url":"https://api.github.com/users/ErebusBat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErebusBat/subscriptions","organizations_url":"https://api.github.com/users/ErebusBat/orgs","repos_url":"https://api.github.com/users/ErebusBat/repos","events_url":"https://api.github.com/users/ErebusBat/events{/privacy}","received_events_url":"https://api.github.com/users/ErebusBat/received_events","type":"User","site_admin":false},"body":"if adapter returns an empty array then the flatten call below will misalign the redis.hmset call, causing the bot to fail startup.\r\n\r\nWe are using `lita-slack` and my fields array was my Skype ID.   \r\n\r\nWe added a new employee and then our bot failed to start, do to this bug.   I am not sure if this is the proper fix or not, but this works :)","created_at":"2015-12-07T18:06:49Z","updated_at":"2015-12-07T19:38:27Z","closed_at":"2015-12-07T19:38:26Z","merged_at":null,"merge_commit_sha":"9d2f316056826a53148b4c5b02034a492f34024f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/litaio/lita/pulls/161/commits","review_comments_url":"https://api.github.com/repos/litaio/lita/pulls/161/comments","review_comment_url":"https://api.github.com/repos/litaio/lita/pulls/comments{/number}","comments_url":"https://api.github.com/repos/litaio/lita/issues/161/comments","statuses_url":"https://api.github.com/repos/litaio/lita/statuses/d8ed094f6a8d8f0ab9f6d41fe1f2aa3d3717e72c","head":{"label":"ErebusBat:fix-empty-user-fields","ref":"fix-empty-user-fields","sha":"d8ed094f6a8d8f0ab9f6d41fe1f2aa3d3717e72c","user":{"login":"ErebusBat","id":93973,"avatar_url":"https://avatars.githubusercontent.com/u/93973?v=3","gravatar_id":"","url":"https://api.github.com/users/ErebusBat","html_url":"https://github.com/ErebusBat","followers_url":"https://api.github.com/users/ErebusBat/followers","following_url":"https://api.github.com/users/ErebusBat/following{/other_user}","gists_url":"https://api.github.com/users/ErebusBat/gists{/gist_id}","starred_url":"https://api.github.com/users/ErebusBat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErebusBat/subscriptions","organizations_url":"https://api.github.com/users/ErebusBat/orgs","repos_url":"https://api.github.com/users/ErebusBat/repos","events_url":"https://api.github.com/users/ErebusBat/events{/privacy}","received_events_url":"https://api.github.com/users/ErebusBat/received_events","type":"User","site_admin":false},"repo":{"id":47569707,"name":"lita","full_name":"ErebusBat/lita","owner":{"login":"ErebusBat","id":93973,"avatar_url":"https://avatars.githubusercontent.com/u/93973?v=3","gravatar_id":"","url":"https://api.github.com/users/ErebusBat","html_url":"https://github.com/ErebusBat","followers_url":"https://api.github.com/users/ErebusBat/followers","following_url":"https://api.github.com/users/ErebusBat/following{/other_user}","gists_url":"https://api.github.com/users/ErebusBat/gists{/gist_id}","starred_url":"https://api.github.com/users/ErebusBat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErebusBat/subscriptions","organizations_url":"https://api.github.com/users/ErebusBat/orgs","repos_url":"https://api.github.com/users/ErebusBat/repos","events_url":"https://api.github.com/users/ErebusBat/events{/privacy}","received_events_url":"https://api.github.com/users/ErebusBat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ErebusBat/lita","description":"ChatOps for Ruby.","fork":true,"url":"https://api.github.com/repos/ErebusBat/lita","forks_url":"https://api.github.com/repos/ErebusBat/lita/forks","keys_url":"https://api.github.com/repos/ErebusBat/lita/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ErebusBat/lita/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ErebusBat/lita/teams","hooks_url":"https://api.github.com/repos/ErebusBat/lita/hooks","issue_events_url":"https://api.github.com/repos/ErebusBat/lita/issues/events{/number}","events_url":"https://api.github.com/repos/ErebusBat/lita/events","assignees_url":"https://api.github.com/repos/ErebusBat/lita/assignees{/user}","branches_url":"https://api.github.com/repos/ErebusBat/lita/branches{/branch}","tags_url":"https://api.github.com/repos/ErebusBat/lita/tags","blobs_url":"https://api.github.com/repos/ErebusBat/lita/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ErebusBat/lita/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ErebusBat/lita/git/refs{/sha}","trees_url":"https://api.github.com/repos/ErebusBat/lita/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ErebusBat/lita/statuses/{sha}","languages_url":"https://api.github.com/repos/ErebusBat/lita/languages","stargazers_url":"https://api.github.com/repos/ErebusBat/lita/stargazers","contributors_url":"https://api.github.com/repos/ErebusBat/lita/contributors","subscribers_url":"https://api.github.com/repos/ErebusBat/lita/subscribers","subscription_url":"https://api.github.com/repos/ErebusBat/lita/subscription","commits_url":"https://api.github.com/repos/ErebusBat/lita/commits{/sha}","git_commits_url":"https://api.github.com/repos/ErebusBat/lita/git/commits{/sha}","comments_url":"https://api.github.com/repos/ErebusBat/lita/comments{/number}","issue_comment_url":"https://api.github.com/repos/ErebusBat/lita/issues/comments{/number}","contents_url":"https://api.github.com/repos/ErebusBat/lita/contents/{+path}","compare_url":"https://api.github.com/repos/ErebusBat/lita/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ErebusBat/lita/merges","archive_url":"https://api.github.com/repos/ErebusBat/lita/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ErebusBat/lita/downloads","issues_url":"https://api.github.com/repos/ErebusBat/lita/issues{/number}","pulls_url":"https://api.github.com/repos/ErebusBat/lita/pulls{/number}","milestones_url":"https://api.github.com/repos/ErebusBat/lita/milestones{/number}","notifications_url":"https://api.github.com/repos/ErebusBat/lita/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ErebusBat/lita/labels{/name}","releases_url":"https://api.github.com/repos/ErebusBat/lita/releases{/id}","created_at":"2015-12-07T17:59:53Z","updated_at":"2015-12-07T17:59:54Z","pushed_at":"2015-12-07T18:05:06Z","git_url":"git://github.com/ErebusBat/lita.git","ssh_url":"git@github.com:ErebusBat/lita.git","clone_url":"https://github.com/ErebusBat/lita.git","svn_url":"https://github.com/ErebusBat/lita","homepage":"https://www.lita.io/","size":908,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"litaio:master","ref":"master","sha":"a366781fa4a56278fabe087d0af94330d306ae5f","user":{"login":"litaio","id":7534537,"avatar_url":"https://avatars.githubusercontent.com/u/7534537?v=3","gravatar_id":"","url":"https://api.github.com/users/litaio","html_url":"https://github.com/litaio","followers_url":"https://api.github.com/users/litaio/followers","following_url":"https://api.github.com/users/litaio/following{/other_user}","gists_url":"https://api.github.com/users/litaio/gists{/gist_id}","starred_url":"https://api.github.com/users/litaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/litaio/subscriptions","organizations_url":"https://api.github.com/users/litaio/orgs","repos_url":"https://api.github.com/users/litaio/repos","events_url":"https://api.github.com/users/litaio/events{/privacy}","received_events_url":"https://api.github.com/users/litaio/received_events","type":"Organization","site_admin":false},"repo":{"id":9562528,"name":"lita","full_name":"litaio/lita","owner":{"login":"litaio","id":7534537,"avatar_url":"https://avatars.githubusercontent.com/u/7534537?v=3","gravatar_id":"","url":"https://api.github.com/users/litaio","html_url":"https://github.com/litaio","followers_url":"https://api.github.com/users/litaio/followers","following_url":"https://api.github.com/users/litaio/following{/other_user}","gists_url":"https://api.github.com/users/litaio/gists{/gist_id}","starred_url":"https://api.github.com/users/litaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/litaio/subscriptions","organizations_url":"https://api.github.com/users/litaio/orgs","repos_url":"https://api.github.com/users/litaio/repos","events_url":"https://api.github.com/users/litaio/events{/privacy}","received_events_url":"https://api.github.com/users/litaio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/litaio/lita","description":"ChatOps for Ruby.","fork":false,"url":"https://api.github.com/repos/litaio/lita","forks_url":"https://api.github.com/repos/litaio/lita/forks","keys_url":"https://api.github.com/repos/litaio/lita/keys{/key_id}","collaborators_url":"https://api.github.com/repos/litaio/lita/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/litaio/lita/teams","hooks_url":"https://api.github.com/repos/litaio/lita/hooks","issue_events_url":"https://api.github.com/repos/litaio/lita/issues/events{/number}","events_url":"https://api.github.com/repos/litaio/lita/events","assignees_url":"https://api.github.com/repos/litaio/lita/assignees{/user}","branches_url":"https://api.github.com/repos/litaio/lita/branches{/branch}","tags_url":"https://api.github.com/repos/litaio/lita/tags","blobs_url":"https://api.github.com/repos/litaio/lita/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/litaio/lita/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/litaio/lita/git/refs{/sha}","trees_url":"https://api.github.com/repos/litaio/lita/git/trees{/sha}","statuses_url":"https://api.github.com/repos/litaio/lita/statuses/{sha}","languages_url":"https://api.github.com/repos/litaio/lita/languages","stargazers_url":"https://api.github.com/repos/litaio/lita/stargazers","contributors_url":"https://api.github.com/repos/litaio/lita/contributors","subscribers_url":"https://api.github.com/repos/litaio/lita/subscribers","subscription_url":"https://api.github.com/repos/litaio/lita/subscription","commits_url":"https://api.github.com/repos/litaio/lita/commits{/sha}","git_commits_url":"https://api.github.com/repos/litaio/lita/git/commits{/sha}","comments_url":"https://api.github.com/repos/litaio/lita/comments{/number}","issue_comment_url":"https://api.github.com/repos/litaio/lita/issues/comments{/number}","contents_url":"https://api.github.com/repos/litaio/lita/contents/{+path}","compare_url":"https://api.github.com/repos/litaio/lita/compare/{base}...{head}","merges_url":"https://api.github.com/repos/litaio/lita/merges","archive_url":"https://api.github.com/repos/litaio/lita/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/litaio/lita/downloads","issues_url":"https://api.github.com/repos/litaio/lita/issues{/number}","pulls_url":"https://api.github.com/repos/litaio/lita/pulls{/number}","milestones_url":"https://api.github.com/repos/litaio/lita/milestones{/number}","notifications_url":"https://api.github.com/repos/litaio/lita/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/litaio/lita/labels{/name}","releases_url":"https://api.github.com/repos/litaio/lita/releases{/id}","created_at":"2013-04-20T10:35:36Z","updated_at":"2015-12-07T10:55:17Z","pushed_at":"2015-12-07T18:06:49Z","git_url":"git://github.com/litaio/lita.git","ssh_url":"git@github.com:litaio/lita.git","clone_url":"https://github.com/litaio/lita.git","svn_url":"https://github.com/litaio/lita","homepage":"https://www.lita.io/","size":1038,"stargazers_count":946,"watchers_count":946,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":98,"mirror_url":null,"open_issues_count":19,"forks":98,"open_issues":19,"watchers":946,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/litaio/lita/pulls/161"},"html":{"href":"https://github.com/litaio/lita/pull/161"},"issue":{"href":"https://api.github.com/repos/litaio/lita/issues/161"},"comments":{"href":"https://api.github.com/repos/litaio/lita/issues/161/comments"},"review_comments":{"href":"https://api.github.com/repos/litaio/lita/pulls/161/comments"},"review_comment":{"href":"https://api.github.com/repos/litaio/lita/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/litaio/lita/pulls/161/commits"},"statuses":{"href":"https://api.github.com/repos/litaio/lita/statuses/d8ed094f6a8d8f0ab9f6d41fe1f2aa3d3717e72c"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":6,"deletions":0,"changed_files":1}}