Open eric-c-wood opened 3 years ago
I created a prototype for an extended search using verbose Boolean operators for both the Running and Stopped experiment views. The prototype can be viewed in this branch. https://github.com/eric-c-wood/minimega-phenix/tree/extendedSearch
Here are some example searches:
It is worth noting that eventually we might want to change how the search is sent to the server. Currently, as soon as anything is typed in the "search" box, the search is sent to the server. This can potentially send a lot of unnecessary traffic to the server. Perhaps, using the "Enter" key or a "Search" button to wait for the user to enter the complete search term may be better.
I ended up using the debounce function from the lodash library to wait some period of time before sending the search query to the server. https://lodash.com/docs/#debounce
Describe your feature The current VM search only searches for a VM by name. It would be nice to extend the search function to able to ask the following questions/queries:
Search criteria should be able to be combined with verbose Boolean operators such as "and,or,etc.." and have a default Boolean operator when not explicitly specified.
Feature Details Stage of Experiment when feature is active: (Creation, Start, Post Start, Running, Stop, Delete) stage: Running and Stopped. For a stopped experiment questions 1 and 2 will not apply. For all queries, it might be necessary to block the web UI from further input and give the user appropriate feedback for searches that might take more than a few seconds.
Where should feature be visible (current phenix tab and general location or propose a new tab, or not visible) view: The query can be ran from the current search bars on both the running and stopped experiment views.
Expected behavior The running and stopped views will show only the VMs matching the search criteria. The search results can then be used for other actions.