grid view: first mapped task logs link points to map index: -1, should point to 0 #25616
Closed
1 of 2 tasks
Labels
affected_version:main_branch
Issues Reported for main branch
area:UI
Related to UI/UX. For Frontend Developers.
kind:bug
This is a clearly a bug
Apache Airflow version
main (development)
What happened
Any mapped task will do, but here's a DAG with two:
If you run it and navigate to the graph view, you can view the logs for both mapped tasks ("hello foo" and "goodbye bar"). But if you try to do the same thing via the grid view, you can only view the second one ("goodbye bar"). This is because the link to view the first one's logs is pointing to:
http://localhost:8080/log?dag_id=zip_tf&dag_id=zip_tf&task_id=salutations&execution_date=1970-01-01T00%3A00%3A00%2B00%3A00&map_index=-1
But
-1
is used for when there are no mapped tasks, not for the first one. So when you follow the link, you don't see any logs at all.What you think should happen instead
the correct logs should appear
How to reproduce
see above
Operating System
NixOS (linux)
Versions of Apache Airflow Providers
n/a
Deployment
Virtualenv installation
Deployment details
LocalExecutor
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: