Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter out non-ready status backing images in volume create modal dropdown #736

Merged
merged 2 commits into from
May 31, 2024

Conversation

a110605
Copy link
Contributor

@a110605 a110605 commented May 29, 2024

Goal

  • Filter out non-ready status backing image in volume create modal dropdown
  • Add more backing images disk state colors

Issue

Implement extra improvement based on discussion [IMPROVEMENT] BackingImage UI improvement

Result

Screenshot 2024-05-29 at 12 38 27 PM

Only let user choose READY status backing images

Screenshot 2024-05-29 at 12 38 57 PM

@@ -761,7 +762,7 @@ class Volume extends React.Component {
v1DataEngineEnabled,
v2DataEngineEnabled,
diskTags,
backingImages,
backingImages: backingImages?.filter(image => hasReadyBackingDisk(image)) || [],
Copy link
Contributor Author

@a110605 a110605 May 29, 2024

Choose a reason for hiding this comment

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

I've consulted @ChanYiLin if there exists at least one READY status disk, user is able to create volume from that backing image and attach to node.

image

@a110605 a110605 changed the title Issue 7293 ii Filter out un-ready status backing image in volume create modal dropdow May 29, 2024
@a110605 a110605 self-assigned this May 29, 2024
@a110605 a110605 changed the title Filter out un-ready status backing image in volume create modal dropdow Filter out non-ready status backing images in volume create modal dropdow May 29, 2024
@a110605 a110605 changed the title Filter out non-ready status backing images in volume create modal dropdow Filter out non-ready status backing images in volume create modal dropdown May 29, 2024
Copy link

@torchiaf torchiaf left a comment

Choose a reason for hiding this comment

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

LGTM

@a110605 a110605 merged commit f07eb8e into longhorn:master May 31, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants