Decouple search logic from tree view (specifically jobs) #3052
Labels
enhancement
New feature or request
priority-medium
Not functioning - next quarter if capacity permits
Is your feature request related to a problem? Please describe.
Currently the quick picks and all related UX for searching is tightly coupled within the tree views. This means we cannot spawn the same dialogs without duplicating existing code, especially in a context where we don't want to use a node when performing the search.
Describe the solution you'd like
It would be nice to separate this logic out so that it can be used for other use cases. A generic function that prompts the user for these values would avoid the need to duplicate the same quick pick logic elsewhere. Here's an example for the jobs tree:
Describe alternatives you've considered
We could duplicate the same search/prompt code everywhere we need to use it, but this is really bad practice and results in having to maintain two different areas containing the same logic.
Additional context
This was brought up as an enhancement request for #3050. Having a function such as the example above will allow us to quickly execute searches without relying on the tree view or binding a search result to a specific profile node. This is somewhat available in the Dataset and USS trees (as we can lookup using the FileSystemProviders), but the prompts are still tightly coupled to the trees.
The text was updated successfully, but these errors were encountered: