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 task instance modal in gantt view #19258

Merged
merged 1 commit into from
Oct 29, 2021

Conversation

robinedwards
Copy link
Contributor

2.2.0 removed the execution_date from the task_instance table.

So the execution date won't be provided by simply calling alchemy_to_dict on the task_instance model. Subsequently this broke the links in the task instance modal on the gantt view.

Closes #19252

2.2.0 removed the execution_date from the task_instance table. So the
  execution date won't be provided by simply calling `alchemy_to_dict`.
@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Oct 27, 2021
@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Oct 27, 2021
@github-actions
Copy link

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

@uranusjr
Copy link
Member

We may need a test for this, but I'm not sure how it should be implemented.

@robinedwards
Copy link
Contributor Author

I guess ideally the payload should be served by its own endpoint similar to the way we have tree_data. Which would make it easier to test.

Copy link
Contributor

@bbovenzi bbovenzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I eventually want to redo the gantt view like I'm updating the tree view in #18675
We can do a /gantt_data endpoint then.

@uranusjr uranusjr merged commit aa6c951 into apache:main Oct 29, 2021
@jedcunningham jedcunningham added this to the Airflow 2.2.2 milestone Nov 5, 2021
jedcunningham pushed a commit that referenced this pull request Nov 5, 2021
@jedcunningham jedcunningham added the type:bug-fix Changelog: Bug Fixes label Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues okay to merge It's ok to merge this PR as it does not require more tests type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task modal links are broken in the dag gantt view
5 participants