Ayushrawatcy009 commented on code in PR #77455:
URL: https://github.com/apache/airflow/pull/77455#discussion_r4707481057
##########
airflow-core/src/airflow/ui/src/layouts/Details/Grid/GridTI.tsx:
##########
@@ -68,10 +72,29 @@ export const GridTI = ({
const { groupId: selectedGroupId, runId: selectedRunId, taskId:
selectedTaskId } = useParams();
const { colorMode = "light" } = useColorMode();
const location = useLocation();
+ const { t: translate } = useTranslation("components");
const [searchParams] = useSearchParams();
+ const [isHovered, setIsHovered] = useState(false);
const hasTaskInstance = instance.dag_version_number !== null &&
instance.dag_version_number !== undefined;
+ const tryNumberParam = searchParams.get(SearchParamsKeys.TRY_NUMBER);
+
+ const links = useTaskInstanceExtraLinks({
+ dagId,
+ dagRunId: runId,
+ enabled: isHovered && hasTaskInstance,
+ regionId: instance.latest_region_id,
+ regionIndex: instance.latest_region_index,
+ taskId,
+ tryNumber: tryNumberParam === null ? undefined : parseInt(tryNumberParam,
10),
Review Comment:
fixed in commit `7ab988f3bc`. The comment is on the old diff; both Grid and
Graph now omit `tryNumber`, so each task instance uses its latest try. I also
moved the fetch gate from hover to tooltip open, so moving across cells no
longer triggers extra-link requests
Changes made:
- GridTI.tsx and TaskNode.tsx: removed URL try_number parsing and stopped
passing tryNumber.
- Both now fetch only when TaskInstanceTooltip calls onOpenChange({ open:
true }).
- Tests assert no tryNumber and tooltip-open gating;
commit `7ab988f3bc` has been pushed to PR #77455.
▣ Build · Big Pickle · 30.1s
--
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]