Skip to content

Issue with Filter Functionality #783

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

Closed
abutaha opened this issue May 25, 2025 · 11 comments · Fixed by #782
Closed

Issue with Filter Functionality #783

abutaha opened this issue May 25, 2025 · 11 comments · Fixed by #782

Comments

@abutaha
Copy link

abutaha commented May 25, 2025

Hello,

It seems that the filter options are no longer working as expected after the May 25 update. When I try to apply a filter, such as vCPUs or Instance Memory, nothing changes in the displayed results, and the interface doesn't indicate that the filter has been applied.

I tried in Chrome (normal and Incognito mode), Firefox and Brave. All exhibiting same behavior.

Thanks,

@IAmJSD
Copy link
Collaborator

IAmJSD commented May 25, 2025

Hey @abutaha,

Thanks for reporting - do you have any other filters set? I CNR on https://instances.vantage.sh/, I am doing the following:

  1. Load the page
  2. Set vCPUs to 10
  3. All vCPUs under 10 seem hidden, above 10 seem visible

What OS/browser are you using too please?

@IAmJSD
Copy link
Collaborator

IAmJSD commented May 25, 2025

The one thing I do notice that might cause this confusion is you can't backspace the 0, if you do ctrl+a and enter the value does that work? I will try and make a nice solution if this is the case.

@IAmJSD
Copy link
Collaborator

IAmJSD commented May 25, 2025

^ if it is that, this commit will fix it

@abutaha
Copy link
Author

abutaha commented May 25, 2025

Hey @IAmJSD

So, I'm running Kubuntu 24.04. As for the browsers, I tried Chrome, Firefox and Brave.

So I can confirm it is behaving as you mentioned. Like set vCPUs to 10 and it will hid all under 10. However, I remember the filter was different. For instance, I used to set it to 8 and it would display only the instances that have 8 vCPU. I think this should be the right behavior.

Thanks

Hey @abutaha,

Thanks for reporting - do you have any other filters set? I CNR on https://instances.vantage.sh/, I am doing the following:

  1. Load the page
  2. Set vCPUs to 10
  3. All vCPUs under 10 seem hidden, above 10 seem visible

What OS/browser are you using too please?

@IAmJSD
Copy link
Collaborator

IAmJSD commented May 25, 2025

Ok great, thanks so much for reporting @abutaha - the updated behaviour will be in staging soon (CI typically takes 30 mins, so in about 20 mins it will be at https://instances.vantagestaging.sh), and we will push to main (and therefore production) soon

@IAmJSD
Copy link
Collaborator

IAmJSD commented May 25, 2025

oh wait sorry I misread your message, my apologies, ok I will look into this further

@IAmJSD
Copy link
Collaborator

IAmJSD commented May 25, 2025

@abutaha
Copy link
Author

abutaha commented May 25, 2025

Alright thanks @IAmJSD for looking into it.

@abutaha
Copy link
Author

abutaha commented May 25, 2025

@IAmJSD The 'API Name' column behaves as I expected. Now I'm not sure if filtering only on vCPU/Memory used to be an exact filter as the API Name or not. But if you want my 2c, I would say all filters should be an exact match. I would like to look for an 8 vpcu instance type across all families to compare different prices and not filter out smaller instances.

@IAmJSD
Copy link
Collaborator

IAmJSD commented May 25, 2025

@abutaha Yeah I agree, I think the solution here is to add different filter types min/max/eq. This isn't a diff between legacy/rewrite persay, but I think it is something we should add

@cristim
Copy link
Contributor

cristim commented May 26, 2025

Thinking of this filtering behavior, what do you think about adding support for expressions in the numeric filter fields, like "=10", ">=2" or ">=2&<=8", and set them as default to something like ">0&<100" to hint the user they can do this?

Or alternatively use a range style like "10..20", with "10.." for ">=10" and "10" for exact match, which I think would look cleaner.

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 a pull request may close this issue.

3 participants