bbovenzi commented on a change in pull request #22123:
URL: https://github.com/apache/airflow/pull/22123#discussion_r829370840
##########
File path: airflow/www/static/js/tree/InstanceTooltip.jsx
##########
@@ -78,86 +76,27 @@ const InstanceTooltip = ({
});
}
- const taskIdTitle = isGroup ? 'Task Group Id: ' : 'Task Id: ';
-
return (
- <Box fontSize="12px" py="4px">
+ <Box fontSize="12px" py="2px">
{group.tooltip && (
<Text>{group.tooltip}</Text>
)}
<Text>
- <Text as="strong">Status:</Text>
+ {isGroup ? 'Overall ' : ''}
+ Status:
{' '}
{state || 'no status'}
</Text>
- {isGroup && (
- <>
- <br />
- <Text as="strong">Group Summary</Text>
- {groupSummary}
- </>
- )}
- {group.isMapped && (
- <>
- <br />
- <Text as="strong">
- {mappedStates.length}
- {' '}
- {mappedStates.length === 1 ? 'Task ' : 'Tasks '}
- Mapped
- </Text>
- {mapSummary}
- </>
- )}
- <br />
- <Text>
- {taskIdTitle}
- {taskId}
- </Text>
- <Text whiteSpace="nowrap">
- Run Id:
- {' '}
- {runId}
- </Text>
- {operator && (
- <Text>
- Operator:
- {' '}
- {operator}
- </Text>
- )}
- <Text>
- Duration:
- {' '}
- {formatDuration(duration || getDuration(startDate, endDate))}
- </Text>
- <br />
- <Text as="strong">UTC</Text>
- <Text>
- Started:
- {' '}
- {startDate && formatDateTime(moment.utc(startDate))}
- </Text>
- <Text>
- Ended:
- {' '}
- {endDate && formatDateTime(moment.utc(endDate))}
- </Text>
- <br />
- <Text as="strong">
- Local:
- {' '}
- {moment().format('Z')}
- </Text>
+ {isGroup && groupSummary}
<Text>
Started:
{' '}
{startDate && formatDateTime(startDate)}
</Text>
<Text>
- Ended:
+ Duration:
{' '}
- {endDate && formatDateTime(endDate)}
+ {formatDuration(duration || getDuration(startDate, endDate))}
Review comment:
`endDate` is in the details but not in the tooltip.
When in progress it will use `Date.now()` instead of enddate
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]