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

Add regex support to Search.dataSets #2432

Open
JWaters02 opened this issue Feb 8, 2025 · 1 comment
Open

Add regex support to Search.dataSets #2432

JWaters02 opened this issue Feb 8, 2025 · 1 comment
Labels
enhancement New feature or request priority-medium Not functioning - next quarter if capacity permits

Comments

@JWaters02
Copy link

JWaters02 commented Feb 8, 2025

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

@JWaters02 JWaters02 added enhancement New feature or request new The issue wasn't triaged yet labels Feb 8, 2025
@github-project-automation github-project-automation bot moved this to New Issues in Zowe CLI Squad Feb 8, 2025
Copy link

github-actions bot commented Feb 8, 2025

Thank you for raising this enhancement request.
The community has 90 days to vote on it.
If the enhancement receives at least 5 upvotes, it is added to our development backlog.
If it receives fewer votes, the issue is closed.

@JTonda JTonda added priority-medium Not functioning - next quarter if capacity permits and removed new The issue wasn't triaged yet labels Feb 10, 2025
@zowe-robot zowe-robot moved this from New Issues to Medium Priority in Zowe CLI Squad Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-medium Not functioning - next quarter if capacity permits
Projects
Status: Medium Priority
Development

No branches or pull requests

2 participants