Skip to content

Add regex support to Search.dataSets #2432

Open
@JWaters02

Description

Is your feature or enhancement request related to a problem or limitation? Please describe

Searching is limited to only searching for a simple string.

Describe your enhancement idea

I would like to be able to use regex when searching datasets and members. The functionality exists in the z/OSMF API, however it is not implemented for datasets yet.

Describe alternatives you've considered

Provide any additional context

I have looked at the zowe-cli code and how I would implement this. There are two options:

  1. Copy what searchJobs has, which means to make searchString into an optional parameter, then add a new optional parameter alongside it called searchRegex
  2. Keep searchString a required option, but add an optional boolean called isRegex or similar, which when true would call the API with the research query instead of the search one.

I like option 1 more because it would be a standard implementation between jobs and datasets. However, unfortunately this would cause a breaking change (as searchString would have to be made optional), which I would prefer to avoid (to allow this feature to come sooner), so therefore option 2 would have to do. But please let me know what your thoughts on that are.

This feature enhancement would also enable this enhancement on Zowe Explorer (which is ultimately what I want):

zowe/zowe-explorer-vscode#3234

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority-mediumNot functioning - next quarter if capacity permits

    Type

    No type

    Projects

    • Status

      Medium Priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions