Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dag run selection #38941

Merged
merged 3 commits into from
Apr 11, 2024
Merged

Fix dag run selection #38941

merged 3 commits into from
Apr 11, 2024

Conversation

bbovenzi
Copy link
Contributor

Fixes: #38939

We added logic to change the date filters for the grid data when the selected run_id was out of range. But that created its own issue that if you refreshed the page, we could change the runs returned and there was no way to reset the page.

Mixing run_id as a url parameter and as an API param led to a messy source of truth. Now all of these checks happen during the grid_data request. We check if the run_id is within the current response. If not, we check against the API if the run_id is valid. If it is not valid, we remove the run_id selection. Otherwise, we update the base_date with the run's execution_date and refetch the grid_data.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@bbovenzi bbovenzi added this to the Airflow 2.9.1 milestone Apr 11, 2024
@boring-cyborg boring-cyborg bot added area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels Apr 11, 2024
@eladkal eladkal added the type:bug-fix Changelog: Bug Fixes label Apr 11, 2024
@eladkal eladkal merged commit f87772f into apache:main Apr 11, 2024
39 checks passed
@jedcunningham jedcunningham deleted the fix-dag-run-selection branch April 26, 2024 21:22
jedcunningham pushed a commit that referenced this pull request Apr 26, 2024
* Fix dag run link params

* Do run_id checks inside of the grid_data hook

* remove firstRunId context

(cherry picked from commit f87772f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

You cannot see newer DAG runs if you open a link to a specific DAG run [UI Bug] [New as of 2.9.0?]
4 participants