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

Remember VM state filter settings #1035

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

subhoghoshX
Copy link
Member

Fixes #1032

@subhoghoshX subhoghoshX force-pushed the remember-state branch 3 times, most recently from f413594 to 30eb8fb Compare April 20, 2023 06:05
@subhoghoshX subhoghoshX marked this pull request as ready for review April 20, 2023 06:16
@subhoghoshX
Copy link
Member Author

Oops, tests failed because I used a semicolon in Python. fixed it :)

@KKoukiou KKoukiou self-requested a review April 20, 2023 14:58
src/components/vms/hostvmslist.jsx Outdated Show resolved Hide resolved
src/components/vm/vmDetailsPage.jsx Outdated Show resolved Hide resolved
test/check-machines-lifecycle Show resolved Hide resolved
@subhoghoshX subhoghoshX marked this pull request as draft April 21, 2023 13:11
@subhoghoshX subhoghoshX force-pushed the remember-state branch 3 times, most recently from 4a572ec to 9992f8c Compare May 8, 2023 14:08
@subhoghoshX subhoghoshX marked this pull request as ready for review May 9, 2023 04:59
Copy link
Collaborator

@KKoukiou KKoukiou left a comment

Choose a reason for hiding this comment

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

I believe it's a bit weird to keep the 'status' filter in the URL when we are out of the VM list page. So VM details, Storage and Network pages should not have the 'status=running' in the URL.

This is because:

  • The status variable does not have any effect in these subpages
  • It's slightly confusing as Storage and Networks have also active/inactive state, which would be confused with the status property in the URL.

So please make this persist only for the main page, and adjust the test accordingly.

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.

Remember State filter settings in Machines interface
2 participants