ArafatKhan2198 commented on code in PR #10198:
URL: https://github.com/apache/ozone/pull/10198#discussion_r3218336257


##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/pages/containers/containers.tsx:
##########
@@ -272,20 +276,86 @@ const Containers: React.FC<{}> = () => {
   };
 
   // ── Container data fetching ───────────────────────────────────────────────
+
+  // Fetches the quasi-closed count independently to populate Highlights on 
page load.
+  const fetchQuasiClosedCount = async () => {
+    try {
+      const response = await fetchData<QuasiClosedContainersResponse>(
+        '/api/v1/containers/quasiClosed',
+        'GET',
+        { limit: 1, minContainerId: 0 }

Review Comment:
   **Count-only fetch (`limit=0`):** Updated `fetchQuasiClosedCount` to call 
`/quasiClosed` with `limit=0` and `minContainerId=0`. On the backend, `limit=0` 
means `getContainers(..., 0, QUASI_CLOSED)` returns an empty list, so we don’t 
build any row metadata or hit replica history for a throwaway first row we only 
return `quasiClosedCount` from `getContainerStateCount` plus empty `containers` 
and the usual pagination keys.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to