From 92223971b3e5d7b613745eb3d8829f12d5459a95 Mon Sep 17 00:00:00 2001 From: smitajoshi Date: Fri, 27 Oct 2023 16:22:46 +0530 Subject: [PATCH 1/2] HDDS-9556. Recon UI : File Size Insights Bucket Drop down filter is not getting disabled when more than 1 volume is selected --- .../recon/ozone-recon-web/src/views/insights/insights.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/insights/insights.tsx b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/insights/insights.tsx index 1f65d076bddd..27845b2034fe 100644 --- a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/insights/insights.tsx +++ b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/insights/insights.tsx @@ -95,7 +95,7 @@ export class Insights extends React.Component, IInsightsS // If there is only one volume, bucket selection dropdown should not be disabled. const isBucketSelectionDisabled = !selectedVolumes || (selectedVolumes && - (selectedVolumes.length > 2 && + (selectedVolumes.length >= 2 && (volumeBucketMap.size !== 1))); let bucketOptions: IOption[] = []; // When volume is changed and more than one volume is selected, From 694f4073849f4318759507ef4c21a8d5f57ac5b4 Mon Sep 17 00:00:00 2001 From: smitajoshi Date: Fri, 27 Oct 2023 17:11:53 +0530 Subject: [PATCH 2/2] HDDS-9556. Recon UI : Bucket Drop down filter is not getting disabled when more than 1 volume is selected --- .../recon/ozone-recon-web/src/views/insights/insights.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/insights/insights.tsx b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/insights/insights.tsx index 27845b2034fe..4b595961b46e 100644 --- a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/insights/insights.tsx +++ b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/insights/insights.tsx @@ -95,7 +95,7 @@ export class Insights extends React.Component, IInsightsS // If there is only one volume, bucket selection dropdown should not be disabled. const isBucketSelectionDisabled = !selectedVolumes || (selectedVolumes && - (selectedVolumes.length >= 2 && + (selectedVolumes.length > 1 && (volumeBucketMap.size !== 1))); let bucketOptions: IOption[] = []; // When volume is changed and more than one volume is selected,