Skip to content

Table for affected tasks in grid actions#30633

Merged
pierrejeambrun merged 1 commit intoapache:mainfrom
pierrejeambrun:table-for-affected-tasks-in-actions
Apr 14, 2023
Merged

Table for affected tasks in grid actions#30633
pierrejeambrun merged 1 commit intoapache:mainfrom
pierrejeambrun:table-for-affected-tasks-in-actions

Conversation

@pierrejeambrun
Copy link
Copy Markdown
Member

@pierrejeambrun pierrejeambrun commented Apr 13, 2023

Follow up of #30373, you can only look at the last commit that allows to display the affected task instances in a table for more visibility when performing an action in the grid view.

I wish we could serialize the data using a standardized schema for both api_connexion and views. In such case being able to use a shared TaskInstanceSchema would be helpful for consistency. I don't think we need many representations of a serialized TaskInstance (or any other object) for the webserver.

Right now api_connexion and views are well separated, coupling the two by importing this schema into the view feels wrong but maybe having some shared schema in a parent folder could prove useful. Also at the moment TaskInstanceSchema works on a tuple with SLA miss, and cannot dump bare 'TaskInstance' objects which can be an issue when you don't have the sla miss for serialization. (In this case for instance)

Before

image

After

image

@boring-cyborg boring-cyborg bot added area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels Apr 13, 2023
@pierrejeambrun pierrejeambrun requested a review from uranusjr April 13, 2023 23:06
@pierrejeambrun pierrejeambrun changed the title Table for affected tasks in actions Table for affected tasks in grid actions Apr 13, 2023
@pierrejeambrun pierrejeambrun added this to the Airflow 2.6.0 milestone Apr 13, 2023
@bbovenzi
Copy link
Copy Markdown
Contributor

I just merged #30373 but looks like we need to rebase this one.

@pierrejeambrun pierrejeambrun force-pushed the table-for-affected-tasks-in-actions branch from 6da7f70 to 9cba57a Compare April 14, 2023 18:01
Copy link
Copy Markdown
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

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

Nice!

@potiuk
Copy link
Copy Markdown
Member

potiuk commented Apr 14, 2023

(liteally nice :D)

@pierrejeambrun
Copy link
Copy Markdown
Member Author

Thanks @bbovenzi, I just rebased it

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

Task Actions are going to be so much better!

Eventually, we should get rid of the task actions in views.py and only use the REST API

@pierrejeambrun pierrejeambrun added the type:misc/internal Changelog: Misc changes that should appear in change log label Apr 14, 2023
@pierrejeambrun
Copy link
Copy Markdown
Member Author

Sync PR is already up for 2.6.0. I think this one is a little late to make it, marking for 2.6.1

@pierrejeambrun pierrejeambrun merged commit 90ee763 into apache:main Apr 14, 2023
@pierrejeambrun pierrejeambrun deleted the table-for-affected-tasks-in-actions branch April 14, 2023 19:27
wookiist pushed a commit to wookiist/airflow that referenced this pull request Apr 19, 2023
ephraimbuddy pushed a commit that referenced this pull request May 8, 2023
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:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants