-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Add triggerer info and extra links section to task instance details tab. #46074
Add triggerer info and extra links section to task instance details tab. #46074
Conversation
Can you verify extra link works also for mapped tasks? We have #43757 open for the old ui |
The API endpoint to fetch extra links doesn't accept |
@tirkarthi Can you build using #46107 and check your changes for mapped tasks ones? This should fix it. |
Thanks @shubhamraj-git , I had a similar patch locally and I think the PR should work. I will wait for the changes to be merged to rebase here or take the frontend changes in a new PR after the PR. |
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.
Nice!
I agree, let's add a check for mapIndex for now with a TODO comment to remind us to add in support for mapped tasks soon
9fe2b33
to
b826122
Compare
Is that working locally in breeze ? Are you using another executor because Task SDK does not support extra links so I expect errors there. |
@pierrejeambrun Yaa possible, I think |
@pierrejeambrun I am using a virtual environment to pull from git and do https://airflow.apache.org/docs/apache-airflow/stable/howto/define-extra-link.html |
See https://github.com/apache/airflow/blob/main/contributing-docs/07_local_virtualenv.rst - when we explain how to work with the new virtualenv model where we have mutliple packages: |
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.
Nice, a few suggestions.
Are we happy with having it in the details tab? I am not UX expert but I think we need better place for the extra links than the details tab. |
In Airflow 2 usually clicking on the task instance in grid leads to the task instance details tab. In Airflow 3 logs are made as the default tab. I am fine with moving extra links there if okay. |
b826122
to
68f5fce
Compare
Getting to the extra links in 2.10 is very inconvenient to my taste. |
68f5fce
to
3646bf3
Compare
@@ -118,7 +118,7 @@ export const Details = () => { | |||
</Table.Row> | |||
{dagRun.external_trigger ? ( | |||
<Table.Row> | |||
<Table.Cell>Externally Trigger Source</Table.Cell> | |||
<Table.Cell>External Trigger Source</Table.Cell> |
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.
@pierrejeambrun @bbovenzi We should nix this "external" word here, as some of the values are "timetable", or "asset" which aren't external.
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.
Do we always want to show dagRun.triggered_by
then? instead of only on external triggers?
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.
While we decide on that we can maybe just remove the External
word from here as this is misleading:
#46559
…ab. (apache#46074) * Add triggerer info and extra links section to task instance details tab. * Change button variant from default solid to surface to make it lighter. * Add map_index support. * PR comments refactor. * Add section name for task instance details.
…ab. (apache#46074) * Add triggerer info and extra links section to task instance details tab. * Change button variant from default solid to surface to make it lighter. * Add map_index support. * PR comments refactor. * Add section name for task instance details.
…ab. (apache#46074) * Add triggerer info and extra links section to task instance details tab. * Change button variant from default solid to surface to make it lighter. * Add map_index support. * PR comments refactor. * Add section name for task instance details.
Add triggerer info on deferred state and extra links section to task instance details like legacy UI .
Closes #45614