{"action":"created","issue":{"url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues/7057","repository_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow","labels_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues/7057/labels{/name}","comments_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues/7057/comments","events_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues/7057/events","html_url":"https://github.com/department-of-veterans-affairs/caseflow/issues/7057","id":361930402,"node_id":"MDU6SXNzdWUzNjE5MzA0MDI=","number":7057,"title":"Queue | Judges | Cases with dereceive not null and deprod = 'REA' should appear in the assign queue","user":{"login":"evankroske","id":357369,"node_id":"MDQ6VXNlcjM1NzM2OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/357369?v=4","gravatar_id":"","url":"https://api.github.com/users/evankroske","html_url":"https://github.com/evankroske","followers_url":"https://api.github.com/users/evankroske/followers","following_url":"https://api.github.com/users/evankroske/following{/other_user}","gists_url":"https://api.github.com/users/evankroske/gists{/gist_id}","starred_url":"https://api.github.com/users/evankroske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evankroske/subscriptions","organizations_url":"https://api.github.com/users/evankroske/orgs","repos_url":"https://api.github.com/users/evankroske/repos","events_url":"https://api.github.com/users/evankroske/events{/privacy}","received_events_url":"https://api.github.com/users/evankroske/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"evankroske","id":357369,"node_id":"MDQ6VXNlcjM1NzM2OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/357369?v=4","gravatar_id":"","url":"https://api.github.com/users/evankroske","html_url":"https://github.com/evankroske","followers_url":"https://api.github.com/users/evankroske/followers","following_url":"https://api.github.com/users/evankroske/following{/other_user}","gists_url":"https://api.github.com/users/evankroske/gists{/gist_id}","starred_url":"https://api.github.com/users/evankroske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evankroske/subscriptions","organizations_url":"https://api.github.com/users/evankroske/orgs","repos_url":"https://api.github.com/users/evankroske/repos","events_url":"https://api.github.com/users/evankroske/events{/privacy}","received_events_url":"https://api.github.com/users/evankroske/received_events","type":"User","site_admin":false},"assignees":[{"login":"evankroske","id":357369,"node_id":"MDQ6VXNlcjM1NzM2OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/357369?v=4","gravatar_id":"","url":"https://api.github.com/users/evankroske","html_url":"https://github.com/evankroske","followers_url":"https://api.github.com/users/evankroske/followers","following_url":"https://api.github.com/users/evankroske/following{/other_user}","gists_url":"https://api.github.com/users/evankroske/gists{/gist_id}","starred_url":"https://api.github.com/users/evankroske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evankroske/subscriptions","organizations_url":"https://api.github.com/users/evankroske/orgs","repos_url":"https://api.github.com/users/evankroske/repos","events_url":"https://api.github.com/users/evankroske/events{/privacy}","received_events_url":"https://api.github.com/users/evankroske/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-09-19T21:14:45Z","updated_at":"2018-09-20T01:12:41Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Today, these cases incorrectly appear in a judge's review queue. [Details](https://github.com/department-of-veterans-affairs/dsva-vacols/issues/39). You can find cases like this with the following query:\r\n\r\n```ruby\r\noutput = []\r\nConstants::AttorneyJudgeTeams::JUDGES[:prod].keys.each do |css_id|\r\n  user = User.find_by(css_id: css_id)\r\n  tasks, = LegacyWorkQueue.tasks_with_appeals(user, \"judge\")\r\n  tasks.each do |task|\r\n    if (task.action == \"assign\") != (!task.document_id || task.document_id.empty?) then\r\n      output << \"#{task.id} #{task.appeal.vacols_id} #{task.action} #{task.document_id}\"\r\n    end\r\n  end\r\nend\r\nputs output\r\n```"},"comment":{"url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues/comments/423007105","html_url":"https://github.com/department-of-veterans-affairs/caseflow/issues/7057#issuecomment-423007105","issue_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues/7057","id":423007105,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzAwNzEwNQ==","user":{"login":"amprokop","id":3781835,"node_id":"MDQ6VXNlcjM3ODE4MzU=","avatar_url":"https://avatars0.githubusercontent.com/u/3781835?v=4","gravatar_id":"","url":"https://api.github.com/users/amprokop","html_url":"https://github.com/amprokop","followers_url":"https://api.github.com/users/amprokop/followers","following_url":"https://api.github.com/users/amprokop/following{/other_user}","gists_url":"https://api.github.com/users/amprokop/gists{/gist_id}","starred_url":"https://api.github.com/users/amprokop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amprokop/subscriptions","organizations_url":"https://api.github.com/users/amprokop/orgs","repos_url":"https://api.github.com/users/amprokop/repos","events_url":"https://api.github.com/users/amprokop/events{/privacy}","received_events_url":"https://api.github.com/users/amprokop/received_events","type":"User","site_admin":false},"created_at":"2018-09-20T01:12:41Z","updated_at":"2018-09-20T01:12:41Z","author_association":"CONTRIBUTOR","body":"Nice job tracking this down. Let's fix it!"}}
{"actor":{"display_login":"amprokop"}}