TheChyeahhh opened a new pull request, #67753: URL: https://github.com/apache/airflow/pull/67753
## Summary When the backend caps state counts at `STATE_COUNT_CAP` (1000), the frontend computes `total` as the sum of these capped values. This makes the total denominator artificially low, causing percentage displays for ALL states (not just the capped one) to be wrong. ### Before (buggy) For example, actual data: success=5000, failed=5, running=2, queued=3 - Backend returns capped: success=1000, failed=5, running=2, queued=3 - Frontend computes `total = 1000+5+2+3 = 1010` - Failed % displayed: `5/1010 = 0.50%` — **wrong** (should be ~0.10%) - All percentages are inflated because total is artificially low ### After (fixed) When ANY state count reaches the cap, percentage displays are hidden for ALL states since the total denominator is unreliable. The individual state counts (shown as `1000+` for capped states) remain accurate and informative. ### Changes - **MetricSection.tsx**: Added `hidePercentages` prop. When true, percentage text is hidden for that section. - **DagRunMetrics.tsx**: Detects if any DagRun state is capped; passes `hidePercentages` to all MetricSections. - **TaskInstanceMetrics.tsx**: Detects if any TaskInstance state is capped; passes `hidePercentages` to all MetricSections. Closes #67336 -- 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]
