{"action":"created","issue":{"url":"https://api.github.com/repos/optimizely/ruby-sdk/issues/101","repository_url":"https://api.github.com/repos/optimizely/ruby-sdk","labels_url":"https://api.github.com/repos/optimizely/ruby-sdk/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/optimizely/ruby-sdk/issues/101/comments","events_url":"https://api.github.com/repos/optimizely/ruby-sdk/issues/101/events","html_url":"https://github.com/optimizely/ruby-sdk/issues/101","id":314742872,"number":101,"title":"NoMethodError: undefined method `empty?' when activating an integer id","user":{"login":"clinejj","id":2057878,"avatar_url":"https://avatars2.githubusercontent.com/u/2057878?v=4","gravatar_id":"","url":"https://api.github.com/users/clinejj","html_url":"https://github.com/clinejj","followers_url":"https://api.github.com/users/clinejj/followers","following_url":"https://api.github.com/users/clinejj/following{/other_user}","gists_url":"https://api.github.com/users/clinejj/gists{/gist_id}","starred_url":"https://api.github.com/users/clinejj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clinejj/subscriptions","organizations_url":"https://api.github.com/users/clinejj/orgs","repos_url":"https://api.github.com/users/clinejj/repos","events_url":"https://api.github.com/users/clinejj/events{/privacy}","received_events_url":"https://api.github.com/users/clinejj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-16T17:07:28Z","updated_at":"2018-04-16T17:31:13Z","closed_at":null,"author_association":"NONE","body":"It looks like #63 introduced an error where the `DecisionService#get_variation` calls `get_forced_variation`, which doesn't validate that the user ID is a string before calling `empty?` at https://github.com/optimizely/ruby-sdk/blob/master/lib/optimizely/project_config.rb#L279\r\n\r\nThis leads to a NoMethodError when trying to activate an experiment or getting a variation for an integer based user id. https://github.com/optimizely/ruby-sdk/pull/93 fixed some of these validations, but not all of them."},"comment":{"url":"https://api.github.com/repos/optimizely/ruby-sdk/issues/comments/381685929","html_url":"https://github.com/optimizely/ruby-sdk/issues/101#issuecomment-381685929","issue_url":"https://api.github.com/repos/optimizely/ruby-sdk/issues/101","id":381685929,"user":{"login":"mikeng13","id":1365958,"avatar_url":"https://avatars3.githubusercontent.com/u/1365958?v=4","gravatar_id":"","url":"https://api.github.com/users/mikeng13","html_url":"https://github.com/mikeng13","followers_url":"https://api.github.com/users/mikeng13/followers","following_url":"https://api.github.com/users/mikeng13/following{/other_user}","gists_url":"https://api.github.com/users/mikeng13/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeng13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeng13/subscriptions","organizations_url":"https://api.github.com/users/mikeng13/orgs","repos_url":"https://api.github.com/users/mikeng13/repos","events_url":"https://api.github.com/users/mikeng13/events{/privacy}","received_events_url":"https://api.github.com/users/mikeng13/received_events","type":"User","site_admin":false},"created_at":"2018-04-16T17:31:13Z","updated_at":"2018-04-16T17:31:13Z","author_association":"CONTRIBUTOR","body":"@clinejj thanks, I've logged an internal ticket for us to look into it and will prioritize with the team accordingly."}}
{"actor":{"display_login":"mikeng13"}}