Skip to content

Fix task instance modal in gantt view#19258

Merged
uranusjr merged 1 commit into
apache:mainfrom
robinedwards:hotfix/task-instance-modal-gantt
Oct 29, 2021
Merged

Fix task instance modal in gantt view#19258
uranusjr merged 1 commit into
apache:mainfrom
robinedwards:hotfix/task-instance-modal-gantt

Conversation

@robinedwards

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
Member

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

@robinedwards

Copy link
Copy Markdown
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.

@bbovenzi bbovenzi left a comment

Copy link
Copy Markdown
Contributor

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