-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Add details drawer to Grid View #22123
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
Conversation
| Duration: | ||
| {' '} | ||
| {endDate && formatDateTime(endDate)} | ||
| {formatDuration(duration || getDuration(startDate, endDate))} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this show when the task is still in progress?
Do we not show end date anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
endDate is in the details but not in the tooltip.
When in progress it will use Date.now() instead of enddate
74d739c to
1a9e6f3
Compare
| } | ||
| } | ||
|
|
||
| export function callModalDag(dag) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only called this in the grid view, so we can fully replace it
| </div> | ||
| </div> | ||
| </div> | ||
| <!-- Modal for DAG run --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now all in React instead.
What did the current confirm page default to? |
It highlighted "Cancel" by default. |
74fada2 to
60445c4
Compare
|
Thanks for all the testing @eladkal!
|
|
Great. Since I'm not familiar with the UI side of the code I can't do a proper code review but I can confirm that functionality wise it work as expected. |
airflow/www/static/js/tree/details/content/dagRun/MarkFailedRun.jsx
Outdated
Show resolved
Hide resolved
airflow/www/static/js/tree/details/content/taskInstance/ExtraLinks.jsx
Outdated
Show resolved
Hide resolved
airflow/www/static/js/tree/details/content/taskInstance/taskActions/Clear.jsx
Outdated
Show resolved
Hide resolved
|
Python logic looks good to me, but we can probably do better sharing logic between HTML and JSON requests. |
uranusjr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the Python part
|
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. |
|
I added a commit to fix the KeyError. There are still a couple of failures relating to argument count that need fixing, I’ll leave those to you. |
- Remove details panel title - Add button to reset root - Make "More Details" buttons more specific - Specify timezone as DAG timezone
None of these changes were relevant to this PR. Better to be done separately.
- useState vs useDisclosure - Remove extraneous elements - Copy changes - Wire up params for runTask - Breadcrumb padding
- Pass 'Accept' headers for json returns - Consolidate more endpoints to return json or redirect
- add readme - rename context providers to avoid confusion with Airflow Providers
bc06078 to
ea3551d
Compare







Add a details drawer to the right side of the grid view to quickly see details and actions for the DAG / Dag Run / Task Instance. This replaces the modal when clicking on a dag run or task instance. (Modals still exist for graph and gantt views)
Benefits:
Next Up:
Closes #19938
Closes #21428
Related #20382
Closes #19674
Other notes:
Python isn't my strong suit so any help with the changes I had to make to the webserver (
views.pyandutils.py) would be greatly appreciated.Dag Details:

Run Details:

Task Instance Details:

Navigating between details:

Scrolling:

Marking a Task Failed:

Clearing a DAG Run:

Changing Timezone:

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.