From db4eff2361189b95ee131bcf0963d7b12e7b2f85 Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 18 Dec 2024 23:41:44 -0800 Subject: [PATCH] Add `get_node_execution_count` API to Tflex UI backend ### Why This is for rendering execution count per node for large async run graphs before fetching actual data for better usability. ![Example usage of the API for async runs](https://screenshot.googleplex.com/7t9pqYsdpRSAbiA.png) PiperOrigin-RevId: 707801411 --- src/app/directed_acyclic_graph_raw.ng.html | 7 ++++--- src/app/directed_acyclic_graph_raw.ts | 8 +++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/app/directed_acyclic_graph_raw.ng.html b/src/app/directed_acyclic_graph_raw.ng.html index 3e0fd10..3bf4fb3 100644 --- a/src/app/directed_acyclic_graph_raw.ng.html +++ b/src/app/directed_acyclic_graph_raw.ng.html @@ -385,15 +385,16 @@ This causes the DAG to open up, fade-in the label before hiding it, which looks very glitchy --> - - {{ getIterationsFor(group).length }} iterations - @if (showGroupLabel(group)) {
{{ group.groupLabel }}
+ } @else if (group.treatAsLoop) { + + {{ getIterationsFor(group).length }} iterations + }