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

List.{dataSetsMatchingPattern,membersMatchingPattern}: apiResponse property is the list of items #2410

Open
traeok opened this issue Jan 15, 2025 · 1 comment
Labels
bug Something isn't working priority-low Legit issue but cosmetic or nice-to-have severity-low Bug that makes the usage of the Zowe less convenient but doesn't impact key use cases v4 Prospective changes for v4

Comments

@traeok
Copy link
Member

traeok commented Jan 15, 2025

Describe the bug

When using the List.membersMatchingPattern function in the z/OS Files SDK, the returned apiResponse property is the list of items, rather than the format returned by other list functions in this SDK.

Expected and actual results

Invoke the List.membersMatchingPattern function with a valid session, data set name and list of match patterns. Save the response to a variable.

Expected results: The response matches the same format as List.dataSet and List.allMembers, containing an apiResponse property that is an object with an items property inside, e.g.:

{
    "success": true,
    "commandResponse": "3 member(s) were found matching pattern.",
    "apiResponse": {
        "items": [{ "member": "M1" }, { "member": "M2" }, { "member": "M3" }]
    }
}

Actual results: The response contains an apiResponse property that is an array of items rather than an object.

{
    "success": true,
    "commandResponse": "3 member(s) were found matching pattern.",
    "apiResponse": [{ "member": "M1" }, { "member": "M2" }, { "member": "M3" }]
}

Describe your environment

Additional context

@traeok traeok added bug Something isn't working new The issue wasn't triaged yet labels Jan 15, 2025
@github-project-automation github-project-automation bot moved this to New Issues in Zowe CLI Squad Jan 15, 2025
@traeok traeok changed the title List.{dataSetMatchingPattern,membersMatchingPattern}: apiResponse property is the list of items List.{dataSetsMatchingPattern,membersMatchingPattern}: apiResponse property is the list of items Jan 15, 2025
Copy link

Thank you for creating a bug report.
We will investigate the bug and evaluate its impact on the product.
If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.

@JTonda JTonda added v4 Prospective changes for v4 priority-low Legit issue but cosmetic or nice-to-have severity-low Bug that makes the usage of the Zowe less convenient but doesn't impact key use cases and removed new The issue wasn't triaged yet labels Jan 27, 2025
@zowe-robot zowe-robot moved this from New Issues to Low Priority in Zowe CLI Squad Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority-low Legit issue but cosmetic or nice-to-have severity-low Bug that makes the usage of the Zowe less convenient but doesn't impact key use cases v4 Prospective changes for v4
Projects
Status: Low Priority
Development

No branches or pull requests

2 participants