-
Notifications
You must be signed in to change notification settings - Fork 100
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
DatasetFSprovider fetchDataset() - fix behavior with non-existent datasets and members #3255
DatasetFSprovider fetchDataset() - fix behavior with non-existent datasets and members #3255
Conversation
Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com>
Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3255 +/- ##
==========================================
+ Coverage 93.02% 93.05% +0.02%
==========================================
Files 113 113
Lines 11720 11729 +9
Branches 2523 2640 +117
==========================================
+ Hits 10903 10914 +11
+ Misses 815 813 -2
Partials 2 2 ☔ View full report in Codecov by Sentry. |
I do recognize this is a core part of the code for the ZE data sets view. Take all the time needed for review |
Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com>
Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes look good to me, I tested opening multiple data sets, both through the tree view and a virtual workspace - contents were still fetched as expected.
I noticed that the changelog entry was in the FTP extension - can you please move this to the zowe-explorer/CHANGELOG.md
file?
I'll approve this as soon as that's resolved. Thanks for the fix!
Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com>
Oops 🤦♂️ I moved it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM! 😋
Left a couple of suggestions, but I think it'd good as-is 🙏
if (resp.success && resp.apiResponse?.items?.length > 0) { | ||
const dsorg: string = resp.apiResponse?.items?.[0]?.dsorg; | ||
entryIsDir = pdsMember ? false : dsorg?.startsWith("PO") ?? false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (resp.success && resp.apiResponse?.items?.length > 0) { | |
const dsorg: string = resp.apiResponse?.items?.[0]?.dsorg; | |
entryIsDir = pdsMember ? false : dsorg?.startsWith("PO") ?? false; | |
if (resp.success && resp.apiResponse?.items?.length > 0) { | |
entryIsDir = resp.apiResponse.items.[0].dsorg.startsWith("PO"); |
const memberName = path.parse(uriPath[1]).name; | ||
if ( | ||
resp.success && | ||
resp.apiResponse?.items?.length > 0 && | ||
resp.apiResponse.items.find((respItem) => respItem.member === memberName) | ||
) { | ||
entryIsDir = false; | ||
} else { | ||
throw vscode.FileSystemError.FileNotFound(uri); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const memberName = path.parse(uriPath[1]).name; | |
if ( | |
resp.success && | |
resp.apiResponse?.items?.length > 0 && | |
resp.apiResponse.items.find((respItem) => respItem.member === memberName) | |
) { | |
entryIsDir = false; | |
} else { | |
throw vscode.FileSystemError.FileNotFound(uri); | |
entryIsDir = false; | |
const memberName = path.parse(uriPath[1]).name; | |
if ( | |
!resp.success || | |
resp.apiResponse?.items == null || | |
!resp.apiResponse.items.find((respItem) => respItem.member === memberName) | |
) { | |
throw vscode.FileSystemError.FileNotFound(uri); |
Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com>
797a612
Incorporated @zFernand0's feedback |
Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for considering the logic changes. Sorry for being picky 😋
LGTM! 😋
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @benjamin-t-santos for your contribution!
Looks pretty good, left just one comment about a potential optimization.
const resp = await ZoweExplorerApiRegister.getMvsApi(uriInfo.profile).allMembers(uriPath[0], { | ||
attributes: true, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For members I don't believe attributes are needed since we only look at names on the API response. Listing without attributes may make the fetch operation more efficient:
const resp = await ZoweExplorerApiRegister.getMvsApi(uriInfo.profile).allMembers(uriPath[0], { | |
attributes: true, | |
}); | |
const resp = await ZoweExplorerApiRegister.getMvsApi(uriInfo.profile).allMembers(uriPath[0]); |
Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com>
c2c439f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @benjamin-t-santos!
…asets and members (#3255) * Fix PDS members in fetchDataset Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * Update DatasetFSProvider.unit.test.ts Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * Update CHANGELOG.md Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * Merge branch 'main' into datasetfsprovider-remote-lookup-fix Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * move changelog update Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * improve logic Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * add ? after checking dsorg Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * do not fetch attributes for members Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> --------- Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com>
* DatasetFSprovider fetchDataset() - fix behavior with non-existent datasets and members (#3255) * Fix PDS members in fetchDataset Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * Update DatasetFSProvider.unit.test.ts Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * Update CHANGELOG.md Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * Merge branch 'main' into datasetfsprovider-remote-lookup-fix Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * move changelog update Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * improve logic Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * add ? after checking dsorg Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * do not fetch attributes for members Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> --------- Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * fix: use `vscode.workspace.fs` for `delete` and `rename` (#3261) * fix: use vscode.workspace.fs to rename URIs Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * chore: update ZE changelog Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * update mocks, remaining use of delete/rename Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> --------- Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * Fix: To resolve error message upon switching the authentication methods (#3275) * To handle missing args in basicAuthClearSecureArray Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * To handle missing args in tokenAuthClearSecureArray Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * To add unit test case for missing arg's in basicAuthClearSecureArray Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * To add unit test case for missing arg's in tokenAuthClearSecureArray Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * To run pre-publish command Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * To update changelog Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * To modify tokenAuthClearSecureArray() function Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * To add additional test cases for tokenAuthClearSecureArray() Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> --------- Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * fix: "Show Config" button in error dialog does not work during initialization (#3274) * fix: check if profileInfo is nullish during v1 migration Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * chore: update ZE changelog Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * tests: integration test for broken config Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * add unit test for nullish profileinfo Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * fix transient failures in UpdateCredentials scenario Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * remove extra join import in wdio conf Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * make integration test more reliable Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * move getprofileinfo call into try/catch during profiles init Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * test: open notification center to check for dialog Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * add license header to test; add another null check Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * add typedoc to ProfilesUtils.getProfileInfo Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * setupDefaultCredentialManager: log err msgs, update typedoc Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * test: promptUserWithNoConfigs, nullish profileInfo case Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * refactor typedoc for setupDefaultCredentialManager Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> --------- Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * fix(ds): Call remoteLookupForResource when entry doesn't exist locally (#3268) Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> Signed-off-by: Billie Simmons <BillieJean.Simmons@ibm.com> Co-authored-by: Billie Simmons <BillieJean.Simmons@ibm.com> * fix: Only show "No configs detected" prompt if ZE opened (#3281) * fix: show 'No config detected' prompt once when ZE opened Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * chore: update ZE changelog Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * resolve failing tests Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * refactor: move event into static fn, add coverage Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * update changelog Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * patch coverage for ProfilesUtils.promptUserWithNoConfigs Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * move variable definition Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> --------- Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> Signed-off-by: Billie Simmons <BillieJean.Simmons@ibm.com> Co-authored-by: Billie Simmons <BillieJean.Simmons@ibm.com> Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> * fix(v3): Pass `responseTimeout` in z/OSMF MVS and USS API calls (#3292) * fix: pass responseTimeout to API functions Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * refactor: remove fallback for spreading newOptions Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * refactor: use optional chaining; work on resolving tests Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * refactor: pass profile props to tests, fix types Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * tests: resolve failing cases in ZE Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * chore: update changelog entry for ZE API Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * refactor: remove fallback for spreading undefined options Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * fix: add missing functions to MvsApi test list Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> --------- Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * run package Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> * chore: remediation commit Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Third-Party DCO Remediation Commit for benjamin-t-santos <115251181+benjamin-t-santos@users.noreply.github.com> On behalf of benjamin-t-santos <115251181+benjamin-t-santos@users.noreply.github.com>, I, Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 8957a64 Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Third-Party DCO Remediation Commit for SanthoshiBoyina1 <142206957+SanthoshiBoyina1@users.noreply.github.com> On behalf of SanthoshiBoyina1 <142206957+SanthoshiBoyina1@users.noreply.github.com>, I, Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 86a82f6 Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> * DatasetFSProvider.readFile() makes at most one API call (#3279) * fix(ds): Call remoteLookupForResource when entry doesn't exist locally Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * readFile() uses one MVS API call Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * update unit tests, fix logic of calls Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * fix lint error Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * Update CHANGELOG.md Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> --------- Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> Signed-off-by: benjamin-t-santos <115251181+benjamin-t-santos@users.noreply.github.com> Co-authored-by: Trae Yelovich <trae.yelovich@broadcom.com> Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> * Change default credentials manager check and not-found dialog (#3297) * updates to webpack and package.json for dev mode Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> * Remove endless startup loop when default CM cannot be loaded Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Initial set of test updates Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Merge branch 'main' into change-credentials-manager-check Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Convenience launch to only run currently open test Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Fixed ProfileUtils tests Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Clean up package files Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Updated changelog Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Reworded info message Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Update CHANGELOG.md Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> * Added detail to info message Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Updated resource files Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> --------- Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Co-authored-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> Co-authored-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> * fix(3.0.3): Prompt in editor for 401 error, fix profile propagation (#3318) * fix: profile change propagation, prompt on auth error Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * tests: profile propagation, tree node cases Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * chore: changelogs Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * test(jobs): add patch coverage Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * tests: AuthUtils.promptForAuthError Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * tests: UssFSProvider.fetchFileAtUri Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * fix: reset wasAccessed flag if ImperativeError caught Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * tests: resolve failing USS tests Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * fix failing jobs test Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> --------- Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * fix(ftp): Generate member name if missing in `putContents` (#3313) * fix(ftp): Generate member name if missing in putContents Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * chore: add entry to FTP changelog Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * refactor: remove unused isAbsolutePath import Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * chore: undo updates to l10n since no strings were changed Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * tests(ftp): PDS upload case, clean up PS upload test Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> --------- Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> Co-authored-by: Billie Simmons <BillieJean.Simmons@ibm.com> Co-authored-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> * run prepublish Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> * Fix infinite loop when fetching USS resources with stat() (#3321) * remove query when looking up parent Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * remove leftover comment Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * Update CHANGELOG.md Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> --------- Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> * run prepublish Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> * Fix port of #3321 for 3.0.3 release Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com> --------- Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> Signed-off-by: Billie Simmons <BillieJean.Simmons@ibm.com> Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Signed-off-by: benjamin-t-santos <115251181+benjamin-t-santos@users.noreply.github.com> Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com> Co-authored-by: benjamin-t-santos <115251181+benjamin-t-santos@users.noreply.github.com> Co-authored-by: Trae Yelovich <trae.yelovich@broadcom.com> Co-authored-by: SanthoshiBoyina1 <142206957+SanthoshiBoyina1@users.noreply.github.com> Co-authored-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Co-authored-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> Co-authored-by: Timothy Johnson <timothy.johnson@broadcom.com>
* DatasetFSprovider fetchDataset() - fix behavior with non-existent datasets and members (#3255) * Fix PDS members in fetchDataset Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * Update DatasetFSProvider.unit.test.ts Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * Update CHANGELOG.md Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * Merge branch 'main' into datasetfsprovider-remote-lookup-fix Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * move changelog update Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * improve logic Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * add ? after checking dsorg Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * do not fetch attributes for members Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> --------- Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * fix: use `vscode.workspace.fs` for `delete` and `rename` (#3261) * fix: use vscode.workspace.fs to rename URIs Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * chore: update ZE changelog Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * update mocks, remaining use of delete/rename Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> --------- Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * Fix: To resolve error message upon switching the authentication methods (#3275) * To handle missing args in basicAuthClearSecureArray Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * To handle missing args in tokenAuthClearSecureArray Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * To add unit test case for missing arg's in basicAuthClearSecureArray Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * To add unit test case for missing arg's in tokenAuthClearSecureArray Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * To run pre-publish command Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * To update changelog Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * To modify tokenAuthClearSecureArray() function Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * To add additional test cases for tokenAuthClearSecureArray() Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> --------- Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> * fix: "Show Config" button in error dialog does not work during initialization (#3274) * fix: check if profileInfo is nullish during v1 migration Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * chore: update ZE changelog Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * tests: integration test for broken config Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * add unit test for nullish profileinfo Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * fix transient failures in UpdateCredentials scenario Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * remove extra join import in wdio conf Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * make integration test more reliable Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * move getprofileinfo call into try/catch during profiles init Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * test: open notification center to check for dialog Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * add license header to test; add another null check Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * add typedoc to ProfilesUtils.getProfileInfo Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * setupDefaultCredentialManager: log err msgs, update typedoc Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * test: promptUserWithNoConfigs, nullish profileInfo case Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * refactor typedoc for setupDefaultCredentialManager Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> --------- Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * fix(ds): Call remoteLookupForResource when entry doesn't exist locally (#3268) Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> Signed-off-by: Billie Simmons <BillieJean.Simmons@ibm.com> Co-authored-by: Billie Simmons <BillieJean.Simmons@ibm.com> * fix: Only show "No configs detected" prompt if ZE opened (#3281) * fix: show 'No config detected' prompt once when ZE opened Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * chore: update ZE changelog Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * resolve failing tests Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * refactor: move event into static fn, add coverage Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * update changelog Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * patch coverage for ProfilesUtils.promptUserWithNoConfigs Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * move variable definition Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> --------- Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> Signed-off-by: Billie Simmons <BillieJean.Simmons@ibm.com> Co-authored-by: Billie Simmons <BillieJean.Simmons@ibm.com> Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> * fix(v3): Pass `responseTimeout` in z/OSMF MVS and USS API calls (#3292) * fix: pass responseTimeout to API functions Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * refactor: remove fallback for spreading newOptions Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * refactor: use optional chaining; work on resolving tests Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * refactor: pass profile props to tests, fix types Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * tests: resolve failing cases in ZE Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * chore: update changelog entry for ZE API Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * refactor: remove fallback for spreading undefined options Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * fix: add missing functions to MvsApi test list Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> --------- Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * run package Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> * chore: remediation commit Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Third-Party DCO Remediation Commit for benjamin-t-santos <115251181+benjamin-t-santos@users.noreply.github.com> On behalf of benjamin-t-santos <115251181+benjamin-t-santos@users.noreply.github.com>, I, Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 8957a64 Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Third-Party DCO Remediation Commit for SanthoshiBoyina1 <142206957+SanthoshiBoyina1@users.noreply.github.com> On behalf of SanthoshiBoyina1 <142206957+SanthoshiBoyina1@users.noreply.github.com>, I, Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 86a82f6 Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> * DatasetFSProvider.readFile() makes at most one API call (#3279) * fix(ds): Call remoteLookupForResource when entry doesn't exist locally Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> * readFile() uses one MVS API call Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * update unit tests, fix logic of calls Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * fix lint error Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> * Update CHANGELOG.md Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> --------- Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> Signed-off-by: benjamin-t-santos <115251181+benjamin-t-santos@users.noreply.github.com> Co-authored-by: Trae Yelovich <trae.yelovich@broadcom.com> Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> * Change default credentials manager check and not-found dialog (#3297) * updates to webpack and package.json for dev mode Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> * Remove endless startup loop when default CM cannot be loaded Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Initial set of test updates Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Merge branch 'main' into change-credentials-manager-check Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Convenience launch to only run currently open test Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Fixed ProfileUtils tests Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Clean up package files Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Updated changelog Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Reworded info message Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Update CHANGELOG.md Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> * Added detail to info message Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> * Updated resource files Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> --------- Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Co-authored-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> Co-authored-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> * prepare lerna and changelogs Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> * review: address PR feedback Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> * audit: fix audit issue (thanks @awharn) Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> --------- Signed-off-by: Benjamin Santos <benjamin.santos@ibm.com> Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com> Signed-off-by: Santhoshi Boyina <Santhoshi.Boyina1@ibm.com> Signed-off-by: Billie Simmons <BillieJean.Simmons@ibm.com> Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Signed-off-by: benjamin-t-santos <115251181+benjamin-t-santos@users.noreply.github.com> Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com> Co-authored-by: benjamin-t-santos <115251181+benjamin-t-santos@users.noreply.github.com> Co-authored-by: Trae Yelovich <trae.yelovich@broadcom.com> Co-authored-by: SanthoshiBoyina1 <142206957+SanthoshiBoyina1@users.noreply.github.com> Co-authored-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Co-authored-by: Peter Haumer <4391934+phaumer@users.noreply.github.com>
Proposed changes
There are currently issues for extenders with fetching MVS resources on-demand using the v3 file system. I outline them in this issue: #3252.
The proposed changes are:
items
in the API response to ensure that the requested resource actually exists, rather than just checking if the API call is completed successfullyallMembers
when fetching a member vs.dataSet
for datasetsIn the issue, Trae raised concerns about opened files in Zowe Explorer being impacted when the extension reloads or restarts - I do not see any issues with these new changes. The opened files are fetched and displayed if they are available on the host. If they were deleted via some other source, the editor will display a "The editor could not be opened because the file was not found" message, which seems appropriate.
Release Notes
Milestone: #3252
Changelog:
Types of changes
Checklist
General
yarn workspace vscode-extension-for-zowe vscode:prepublish
pnpm --filter vscode-extension-for-zowe vscode:prepublish
Code coverage
Deployment
Further comments