{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/airflow/issues/1348","repository_url":"https://api.github.com/repos/airbnb/airflow","labels_url":"https://api.github.com/repos/airbnb/airflow/issues/1348/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/airflow/issues/1348/comments","events_url":"https://api.github.com/repos/airbnb/airflow/issues/1348/events","html_url":"https://github.com/airbnb/airflow/issues/1348","id":147559396,"number":1348,"title":"dag_stats are empty if the Dag has no DagRuns","user":{"login":"dgies","id":4491601,"avatar_url":"https://avatars.githubusercontent.com/u/4491601?v=3","gravatar_id":"","url":"https://api.github.com/users/dgies","html_url":"https://github.com/dgies","followers_url":"https://api.github.com/users/dgies/followers","following_url":"https://api.github.com/users/dgies/following{/other_user}","gists_url":"https://api.github.com/users/dgies/gists{/gist_id}","starred_url":"https://api.github.com/users/dgies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgies/subscriptions","organizations_url":"https://api.github.com/users/dgies/orgs","repos_url":"https://api.github.com/users/dgies/repos","events_url":"https://api.github.com/users/dgies/events{/privacy}","received_events_url":"https://api.github.com/users/dgies/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-11T21:23:29Z","updated_at":"2016-04-11T22:36:12Z","closed_at":null,"body":"I was trying out 1.7.1rc1 and noticed that on the home page none of the dag stats were being populated.\r\nDigging deeper I found out this was because this commit introduced filtering to show only stats for the most recent or current dag run:\r\nhttps://github.com/airbnb/airflow/commit/7a0d4a1aedabd89b3162426427aa72f828680598#diff-948e87b4f8f644b3ad8c7950958df033\r\n\r\nThe problem with this is a Dag may have TaskInstances but no DagRuns if it gets executed either by backfills or individual task run commands.  \r\n\r\nThe dag_stats query should be changed to include all TaskInstances from Dags which do not have any DagRuns."},"comment":{"url":"https://api.github.com/repos/airbnb/airflow/issues/comments/208594607","html_url":"https://github.com/airbnb/airflow/issues/1348#issuecomment-208594607","issue_url":"https://api.github.com/repos/airbnb/airflow/issues/1348","id":208594607,"user":{"login":"r39132","id":581734,"avatar_url":"https://avatars.githubusercontent.com/u/581734?v=3","gravatar_id":"","url":"https://api.github.com/users/r39132","html_url":"https://github.com/r39132","followers_url":"https://api.github.com/users/r39132/followers","following_url":"https://api.github.com/users/r39132/following{/other_user}","gists_url":"https://api.github.com/users/r39132/gists{/gist_id}","starred_url":"https://api.github.com/users/r39132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r39132/subscriptions","organizations_url":"https://api.github.com/users/r39132/orgs","repos_url":"https://api.github.com/users/r39132/repos","events_url":"https://api.github.com/users/r39132/events{/privacy}","received_events_url":"https://api.github.com/users/r39132/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T22:36:12Z","updated_at":"2016-04-11T22:36:12Z","body":"@dgies To be clear, the status circles that appear after your fix reflect what exactly?\r\n"}}