Skip to content

HDDS-9556. Recon UI : Bucket Drop down filter is not getting disabled when more than 1 volume is selected#5503

Merged
dombizita merged 2 commits intoapache:masterfrom
smitajoshi12:HDDS-9556
Oct 30, 2023
Merged

HDDS-9556. Recon UI : Bucket Drop down filter is not getting disabled when more than 1 volume is selected#5503
dombizita merged 2 commits intoapache:masterfrom
smitajoshi12:HDDS-9556

Conversation

@smitajoshi12
Copy link
Copy Markdown
Contributor

@smitajoshi12 smitajoshi12 commented Oct 27, 2023

What changes were proposed in this pull request?

[Recon][UI] On File Size Insights Page
Bucket Drop down filter is not getting disabled when more than 1 volume is selected
As discussed, bucket drop down filter works only for 1 volume and can't be used if more than 1 volume are present.
When 2 volumes are selected the Bucket list drop down is not getting disabled, whereas on selecting 3 volumes it is getting disabled.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-9556

How was this patch tested?

Manually
Before this Change Bucket dropdown is not disabled.
image

After this PR change Bucket Drop Down is Disabled
image

…ot getting disabled when more than 1 volume is selected
const isBucketSelectionDisabled = !selectedVolumes ||
(selectedVolumes &&
(selectedVolumes.length > 2 &&
(selectedVolumes.length >= 2 &&
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smitajoshi12 thanks for the patch, however this could be more readable for any developer to easily understand if you could use the condition >1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@devmadhuu
Hi Devesh Done changes in recent commit as per suggestion.

@smitajoshi12 smitajoshi12 changed the title Recon UI : Bucket Drop down filter is not getting disabled when more than 1 volume is selected HDDS-9556. Recon UI : Bucket Drop down filter is not getting disabled when more than 1 volume is selected Oct 27, 2023
Copy link
Copy Markdown
Contributor

@dombizita dombizita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this @smitajoshi12, it looks good to me!

@dombizita dombizita merged commit d9fa1ea into apache:master Oct 30, 2023
@dombizita
Copy link
Copy Markdown
Contributor

Thanks for working on this @smitajoshi12, thanks @devmadhuu for the review!

ibrusentsev pushed a commit to ibrusentsev/ozone that referenced this pull request Nov 14, 2023
@smitajoshi12 smitajoshi12 deleted the HDDS-9556 branch April 16, 2024 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants