-
Notifications
You must be signed in to change notification settings - Fork 22
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 VMs based on concerns label #778
Conversation
from UI perspective, I think the screenshots look really nice and useful |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The VM list is expected to contain large number of VMs, N >> 1000
Dynamically fetching labels in this case is not optimal.
For the case of a list that is expected to hold large number of items for most expected cases, I prefer a hard coded list of options.
discussion is in: #764
IMHO we will need to create a hard coded list of all potential warnings and errors labels, or filter using a new field that will have more options then category
while still being predefined and well known so we can have a hard coded list of this new field strings
To be precise we do not fetch the labels but only extract them from the VMs that we already have in-memory on the client side. We iterate over this array, filter and sort it i.e. see forklift-console-plugin/packages/forklift-console-plugin/src/components/page/StandardPage.tsx Line 200 in e77a33b
IMHO one more iteration to extract the labels won't change much. |
0cd8773
to
701f919
Compare
Force pushed to rebase on #779 |
701f919
to
177bdf5
Compare
Create the list of available labels dynamically by traversing the list of already fetched VMs. Signed-off-by: Radoslaw Szwajkowski <[email protected]>
177bdf5
to
965de1b
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Forced push to rebase + improved error handling |
Depends on #779