{"action":"created","issue":{"url":"https://api.github.com/repos/ari5av/dw/issues/39","repository_url":"https://api.github.com/repos/ari5av/dw","labels_url":"https://api.github.com/repos/ari5av/dw/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/ari5av/dw/issues/39/comments","events_url":"https://api.github.com/repos/ari5av/dw/issues/39/events","html_url":"https://github.com/ari5av/dw/issues/39","id":149599151,"number":39,"title":"API fix: \"Variable not found\" when adding user value to a global parent variable.","user":{"login":"ari5av","id":458788,"avatar_url":"https://avatars.githubusercontent.com/u/458788?v=3","gravatar_id":"","url":"https://api.github.com/users/ari5av","html_url":"https://github.com/ari5av","followers_url":"https://api.github.com/users/ari5av/followers","following_url":"https://api.github.com/users/ari5av/following{/other_user}","gists_url":"https://api.github.com/users/ari5av/gists{/gist_id}","starred_url":"https://api.github.com/users/ari5av/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ari5av/subscriptions","organizations_url":"https://api.github.com/users/ari5av/orgs","repos_url":"https://api.github.com/users/ari5av/repos","events_url":"https://api.github.com/users/ari5av/events{/privacy}","received_events_url":"https://api.github.com/users/ari5av/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ari5av/dw/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"ari5av","id":458788,"avatar_url":"https://avatars.githubusercontent.com/u/458788?v=3","gravatar_id":"","url":"https://api.github.com/users/ari5av","html_url":"https://github.com/ari5av","followers_url":"https://api.github.com/users/ari5av/followers","following_url":"https://api.github.com/users/ari5av/following{/other_user}","gists_url":"https://api.github.com/users/ari5av/gists{/gist_id}","starred_url":"https://api.github.com/users/ari5av/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ari5av/subscriptions","organizations_url":"https://api.github.com/users/ari5av/orgs","repos_url":"https://api.github.com/users/ari5av/repos","events_url":"https://api.github.com/users/ari5av/events{/privacy}","received_events_url":"https://api.github.com/users/ari5av/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ari5av/dw/milestones/4","html_url":"https://github.com/ari5av/dw/milestones/Phase%201.1","labels_url":"https://api.github.com/repos/ari5av/dw/milestones/4/labels","id":1571584,"number":4,"title":"Phase 1.1","description":"","creator":{"login":"breakf5","id":13798515,"avatar_url":"https://avatars.githubusercontent.com/u/13798515?v=3","gravatar_id":"","url":"https://api.github.com/users/breakf5","html_url":"https://github.com/breakf5","followers_url":"https://api.github.com/users/breakf5/followers","following_url":"https://api.github.com/users/breakf5/following{/other_user}","gists_url":"https://api.github.com/users/breakf5/gists{/gist_id}","starred_url":"https://api.github.com/users/breakf5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breakf5/subscriptions","organizations_url":"https://api.github.com/users/breakf5/orgs","repos_url":"https://api.github.com/users/breakf5/repos","events_url":"https://api.github.com/users/breakf5/events{/privacy}","received_events_url":"https://api.github.com/users/breakf5/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":10,"state":"open","created_at":"2016-02-08T23:16:43Z","updated_at":"2016-04-19T23:18:57Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-04-19T22:15:57Z","updated_at":"2016-04-27T13:25:53Z","closed_at":null,"body":"When adding a new user value to a global variable by variable key, the data isn't added to the db and the API errors out with \"variable not found\".  This is because the function looks for a variable with the same wpuserid, by key (not by id).\r\n\r\nI suspect that this issue exists in:\r\n- get_values_by_keys\r\n- new_value_by_key"},"comment":{"url":"https://api.github.com/repos/ari5av/dw/issues/comments/215082144","html_url":"https://github.com/ari5av/dw/issues/39#issuecomment-215082144","issue_url":"https://api.github.com/repos/ari5av/dw/issues/39","id":215082144,"user":{"login":"ari5av","id":458788,"avatar_url":"https://avatars.githubusercontent.com/u/458788?v=3","gravatar_id":"","url":"https://api.github.com/users/ari5av","html_url":"https://github.com/ari5av","followers_url":"https://api.github.com/users/ari5av/followers","following_url":"https://api.github.com/users/ari5av/following{/other_user}","gists_url":"https://api.github.com/users/ari5av/gists{/gist_id}","starred_url":"https://api.github.com/users/ari5av/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ari5av/subscriptions","organizations_url":"https://api.github.com/users/ari5av/orgs","repos_url":"https://api.github.com/users/ari5av/repos","events_url":"https://api.github.com/users/ari5av/events{/privacy}","received_events_url":"https://api.github.com/users/ari5av/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T13:25:53Z","updated_at":"2016-04-27T13:25:53Z","body":"The issue does not exist in get_values_by_keys."}}