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 and adjust URL generation for UI grid and older runs #40764

Conversation

jscheffl
Copy link
Contributor

Even though there was a PR #39642 and linked several others there is a serious regression to have valid and working links for older DAG runs pointing to grid.
I got a report for such a bug during the week and was stumbling into this with a lot of follow-up issues. I think the grid UI needs to be in general improved towards this but could not find a good entry point.

Nevertheless following other PRs attempting to fix I relalized that passing base_date helps until the Grid properly is able to handle older run calls. But the TaskInstance.log_url property does not generate a compatible URL.

This PR adjusts the URL generated to be working for older runs.

As I had my hands on it, optimized the map_index off if task is not mapped.

@jscheffl jscheffl requested a review from bbovenzi July 13, 2024 09:11
@jscheffl jscheffl added the area:UI Related to UI/UX. For Frontend Developers. label Jul 13, 2024
@eladkal eladkal added this to the Airflow 2.9.4 milestone Jul 13, 2024
@eladkal eladkal added the type:bug-fix Changelog: Bug Fixes label Jul 13, 2024
@hussein-awala hussein-awala merged commit 9c13c09 into apache:main Jul 13, 2024
52 checks passed
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Jul 26, 2024
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. type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants