<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.4.0</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">Upgraded airflow from 2.1.4 to 2.4.0, did airflow db upgrade, all seems to work ok<br>
In the new grid view UI though, we don't seem to be able to see running DAGs in the default grid view (All run states)<br>
Filtering for "Running" does show the DAG is actually running, with the latest DAGRun, I'm just wondering why it doesn't show for All run states, the DAG runs shown there are 1 run behind.</p>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto">Shows all DAG runs from latest backwards, as with old UI</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">Upgrade from 2.1.4 to 2.4 and look at grid view for DAGs that have been upgraded and have many runs over the past few years.</p>
<p dir="auto">Not sure if one actually needs to upgrade airflow and db or if the bug is purely from 2.4 Grid view, probably the latter.</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Ubuntu 18.04.6 LTS (Bionic Beaver)</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto">2.4 apache-airflow</p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Virtualenv installation</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto">AWS Ec2 running airflow using the pinned requirements files you have</p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul>
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.4.0</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">Airflow 2.4.0's grid view has an issue:</p>
<p dir="auto"><strong>Grid view stop showing the latest DAG runs in 2.4.0 (regardless of schedule, it shows old dag runs)</strong></p>
<ul dir="auto">
<li>
<p dir="auto">case 1 (all 25 are old dag runs)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14293802/191109057-53522453-907d-4476-b7ef-cc40a9818422.png"><img src="https://user-images.githubusercontent.com/14293802/191109057-53522453-907d-4476-b7ef-cc40a9818422.png" alt="2022-09-19_16-12" style="max-width: 100%;"></a></p>
</li>
<li>
<p dir="auto">case 2 (old and new dag runs are mixed)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14293802/191372514-e0d87eb9-92be-4c89-bae4-d4361a5f582b.png"><img src="https://user-images.githubusercontent.com/14293802/191372514-e0d87eb9-92be-4c89-bae4-d4361a5f582b.png" alt="2022-09-20_17-59" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14293802/191371326-b1a81a54-d1f3-4f55-b668-6ad563a73102.png"><img src="https://user-images.githubusercontent.com/14293802/191371326-b1a81a54-d1f3-4f55-b668-6ad563a73102.png" alt="2022-09-20_17-50" style="max-width: 100%;"></a></p>
</li>
</ul>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">How to reproduce</h3>
<ol dir="auto">
<li>Go to a DAG with &gt;365 dag runs</li>
<li>The place where it's supposed to show the latest dag run in the "grid view" now shows an old dag run ~1 year ago</li>
</ol>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Linux Mint 20.3 Una</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Other Docker-based deployment</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul>