Skip to content

Add more dagrun centered view in UI - #19936

Closed
hterik wants to merge 1 commit into
apache:mainfrom
hterik:dagrun_table
Closed

hterik wants to merge 1 commit into
apache:mainfrom
hterik:dagrun_table

Conversation

@hterik

@hterik hterik commented Dec 1, 2021

Copy link
Copy Markdown
Contributor

This adds a new view under each dag that provides
quick access to a table of the most recent dag runs
and their status.

The previous views providing similar functionality are

  • Tree, which can be a bit hard to navigate for new users and
    if you are looking for one specific dagrun where you care
    more about input arguments or results, rather than execution date.
  • DAG Runs under the browse menu, which can be very hard to reach
    and requires user to fill in the dag id as search parameter
    each time to not get too many results.

This new view is intended to provide a middle ground, containing all
the details (and more) of that under DAG Runs, but with equally easy
access as the tree view.

Included is also a proof of concept for allow DAG authors to provide
custom formatters to add arbitary columns in this new dagrun table.
As example, you can provide links to downlaod results or logs, and
can visualize the most important values of their specific dag, such
as the input config. For dags which are more depending on user input,
rather than the logical date and time tables.
The idea is that adding new columns should be equally easy as writing
a DAG and not require rebuilding webserver or providers.
This final step is not finalized and is left open for suggestions
on how to best proceed, given AIP-38 is in progress this might
not be worth pursuing further.

How it looks:

image

This adds a new view under each dag that provides
quick access to a table of the most recent dag runs
and their status.

The previous views providing similar functionality are
- Tree, which can be a bit hard to navigate for new users and
  if you are looking for one specific dagrun where you care
  more about input arguments or results, rather than execution date.
- DAG Runs under the browse menu, which can be very hard to reach
  and requires user to fill in the dag id as search parameter
  each time to not get too many results.

This new view is intended to provide a middle ground, containing all
the details (and more) of that under DAG Runs, but with equally easy
access as the tree view.

Included is also a proof of concept for allow DAG authors to provide
custom formatters to add arbitary columns in this new dagrun table.
As example, you can provide links to downlaod results or logs, and
can visualize the most important values of their specific dag, such
as the input config. For dags which are more depending on user input,
rather than the logical date and time tables.
The idea is that adding new columns should be equally easy as writing
a DAG and not require rebuilding webserver or providers.
This final step is not finalized and is left open for suggestions
on how to best proceed, given AIP-38 is in progress this might
not be worth pursuing further.
@boring-cyborg boring-cyborg Bot added area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels Dec 1, 2021
@hterik

hterik commented Dec 1, 2021

Copy link
Copy Markdown
Contributor Author

Note that this change is just a very rough draft to get initial feedback on the direction of how to proceed.
Halfway through i realized there is a new UI project going on, AIP-38, is there any roadmap or estimate for when this might be done. I don't want to spend too much effort on this if it will be replaced soon anyway.

There is another PR raised today also, providing the same thing #19921.

@bbovenzi

bbovenzi commented Dec 1, 2021 •

Copy link
Copy Markdown
Contributor

Two PRs doing the same thing in the same day? What a coincidence.

My feedback to this PR is the same. I think we can achieve this within the new tree view. I will write out a roadmap to prevent confusion in the future.

For the extra columns, I do think it would be helpful to put any of that in the new dag run details page that was added in #19705

Edit: I'll keep this project board updated from now on: https://github.com/apache/airflow/projects/9

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the stale Stale PRs per the .github/workflows/stale.yml policy file label Jan 16, 2022
@hterik hterik closed this Jan 20, 2022
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 stale Stale PRs per the .github/workflows/stale.yml policy file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants