{"action":"closed","issue":{"url":"https://api.github.com/repos/project-koku/koku/issues/500","repository_url":"https://api.github.com/repos/project-koku/koku","labels_url":"https://api.github.com/repos/project-koku/koku/issues/500/labels{/name}","comments_url":"https://api.github.com/repos/project-koku/koku/issues/500/comments","events_url":"https://api.github.com/repos/project-koku/koku/issues/500/events","html_url":"https://github.com/project-koku/koku/issues/500","id":386601981,"node_id":"MDU6SXNzdWUzODY2MDE5ODE=","number":500,"title":"Filter and group_by not working correctly with node","user":{"login":"lcouzens","id":18352403,"node_id":"MDQ6VXNlcjE4MzUyNDAz","avatar_url":"https://avatars0.githubusercontent.com/u/18352403?v=4","gravatar_id":"","url":"https://api.github.com/users/lcouzens","html_url":"https://github.com/lcouzens","followers_url":"https://api.github.com/users/lcouzens/followers","following_url":"https://api.github.com/users/lcouzens/following{/other_user}","gists_url":"https://api.github.com/users/lcouzens/gists{/gist_id}","starred_url":"https://api.github.com/users/lcouzens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcouzens/subscriptions","organizations_url":"https://api.github.com/users/lcouzens/orgs","repos_url":"https://api.github.com/users/lcouzens/repos","events_url":"https://api.github.com/users/lcouzens/events{/privacy}","received_events_url":"https://api.github.com/users/lcouzens/received_events","type":"User","site_admin":false},"labels":[{"id":877324545,"node_id":"MDU6TGFiZWw4NzczMjQ1NDU=","url":"https://api.github.com/repos/project-koku/koku/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":1056983875,"node_id":"MDU6TGFiZWwxMDU2OTgzODc1","url":"https://api.github.com/repos/project-koku/koku/labels/ocp","name":"ocp","color":"8a97ea","default":false},{"id":914761552,"node_id":"MDU6TGFiZWw5MTQ3NjE1NTI=","url":"https://api.github.com/repos/project-koku/koku/labels/priority%20-%20medium","name":"priority - medium","color":"45adc1","default":false},{"id":975211922,"node_id":"MDU6TGFiZWw5NzUyMTE5MjI=","url":"https://api.github.com/repos/project-koku/koku/labels/ready%20to%20test","name":"ready to test","color":"e0749a","default":false}],"state":"closed","locked":false,"assignee":{"login":"adberglund","id":3845021,"node_id":"MDQ6VXNlcjM4NDUwMjE=","avatar_url":"https://avatars1.githubusercontent.com/u/3845021?v=4","gravatar_id":"","url":"https://api.github.com/users/adberglund","html_url":"https://github.com/adberglund","followers_url":"https://api.github.com/users/adberglund/followers","following_url":"https://api.github.com/users/adberglund/following{/other_user}","gists_url":"https://api.github.com/users/adberglund/gists{/gist_id}","starred_url":"https://api.github.com/users/adberglund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adberglund/subscriptions","organizations_url":"https://api.github.com/users/adberglund/orgs","repos_url":"https://api.github.com/users/adberglund/repos","events_url":"https://api.github.com/users/adberglund/events{/privacy}","received_events_url":"https://api.github.com/users/adberglund/received_events","type":"User","site_admin":false},"assignees":[{"login":"adberglund","id":3845021,"node_id":"MDQ6VXNlcjM4NDUwMjE=","avatar_url":"https://avatars1.githubusercontent.com/u/3845021?v=4","gravatar_id":"","url":"https://api.github.com/users/adberglund","html_url":"https://github.com/adberglund","followers_url":"https://api.github.com/users/adberglund/followers","following_url":"https://api.github.com/users/adberglund/following{/other_user}","gists_url":"https://api.github.com/users/adberglund/gists{/gist_id}","starred_url":"https://api.github.com/users/adberglund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adberglund/subscriptions","organizations_url":"https://api.github.com/users/adberglund/orgs","repos_url":"https://api.github.com/users/adberglund/repos","events_url":"https://api.github.com/users/adberglund/events{/privacy}","received_events_url":"https://api.github.com/users/adberglund/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-12-02T21:28:09Z","updated_at":"2018-12-10T19:02:40Z","closed_at":"2018-12-10T19:02:40Z","author_association":"CONTRIBUTOR","body":"**Describe the bug**\r\nWhen using filtering and group_bys with [node] report data is not changing\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Add OCP provider\r\n2. head to api/v1/reports/charges/ocp/?group_by[node]=blah or ?filter[node]=blah\r\n3. See report results\r\n\r\n**Expected behavior**\r\nFilter / group_by should return no results as nothing contains 'blah'\r\n\r\n**Context (please complete the following information):**\r\n - OS: Fedora\r\n - Browser: Firefox\r\n - Commit Hash from status endpoint:\r\n\"commit\": \"79267e27f71d8818fcc3b6ff584137a33f1e058c\"\r\n\r\n**Additional context**\r\nSee below filtering and group_bys on [node]=blah (nothing contains that naming)\r\n```\r\n{\r\n    \"filter\": {\r\n        \"node\": [\r\n            \"blah\"\r\n        ]\r\n    },\r\n    \"data\": [\r\n        {\r\n            \"date\": \"2018-11-23\",\r\n            \"values\": [\r\n                {\r\n                    \"date\": \"2018-11-23\",\r\n                    \"charge\": 63.853233,\r\n                    \"units\": \"USD\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"date\": \"2018-11-24\",\r\n            \"values\": [\r\n                {\r\n                    \"date\": \"2018-11-24\",\r\n                    \"charge\": 59.61111,\r\n                    \"units\": \"USD\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n\r\n{\r\n    \"group_by\": {\r\n        \"node\": [\r\n            \"blah\"\r\n        ]\r\n    },\r\n    \"data\": [\r\n        {\r\n            \"date\": \"2018-11-23\",\r\n            \"nodes\": [\r\n                {\r\n                    \"node\": \"node_area\",\r\n                    \"values\": [\r\n                        {\r\n                            \"node\": \"node_area\",\r\n                            \"date\": \"2018-11-23\",\r\n                            \"charge\": 26.098632,\r\n                            \"units\": \"USD\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n                    \"node\": \"node_administration\",\r\n                    \"values\": [\r\n                        {\r\n                            \"node\": \"node_administration\",\r\n                            \"date\": \"2018-11-23\",\r\n                            \"charge\": 18.798715,```"}}
{"actor":{"display_login":"lcouzens"}}