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

fix: "Show Config" button in error dialog does not work during initialization #3274

Merged
merged 16 commits into from
Oct 24, 2024

Conversation

traeok
Copy link
Member

@traeok traeok commented Oct 23, 2024

Proposed changes

Resolves #3273

This issue can be reproduced in v3.0.2 if you have a Zowe team configuration file with errors when initializing Zowe Explorer. The prompt with "Error encountered when loading your Zowe config" would appear, but the "Show Config" button did nothing when clicked.

This PR not only fixes the issue, but also adds an integration test to ensure this dialog still works during initialization moving forward.

Finally, this fixes a transient failure encountered with one of the integration tests for updating credentials, so the (Ubuntu, 20.x) stage should not fail now unless there is truly an issue during the test.

Release Notes

Milestone: 3.0.3

Changelog:

  • Fixed an issue during initialization where a broken team configuration file caused the "Show Config" action in the error dialog to stop working. #3273

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (non-breaking change which adds or improves functionality)
  • Breaking change (a change that would cause existing functionality to not work as expected)
  • Documentation (Markdown, README updates)
  • Other (please specify above in "Proposed changes" section)

Checklist

General

  • I have read the CONTRIBUTOR GUIDANCE wiki
  • All PR dependencies have been merged and published (if applicable)
  • A GIF or screenshot is included in the PR for visual changes
  • The pre-publish command has been executed:
    • v2 and below: yarn workspace vscode-extension-for-zowe vscode:prepublish
    • v3: pnpm --filter vscode-extension-for-zowe vscode:prepublish

Code coverage

  • There is coverage for the code that I have added
  • I have added new test cases and they are passing
  • I have manually tested the changes

Deployment

  • I have added developer documentation (if applicable)
  • Documentation should be added to Zowe Docs
    • If you're an outside contributor, please post in the #zowe-doc Slack channel to coordinate documentation.
    • Otherwise, please check with the rest of the squad about any needed documentation before merging.
  • These changes may need ported to the appropriate branches (list here): This may need ported to v2 - if I can reproduce an issue, I will create a port.

Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Copy link

codecov bot commented Oct 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.06%. Comparing base (5e1b8e3) to head (b9a51f8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3274   +/-   ##
=======================================
  Coverage   93.05%   93.06%           
=======================================
  Files         113      113           
  Lines       11738    11744    +6     
  Branches     2606     2596   -10     
=======================================
+ Hits        10923    10929    +6     
  Misses        813      813           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Copy link

📅 Suggested merge-by date: 11/6/2024

Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
@pull-request-size pull-request-size bot added size/L and removed size/M labels Oct 23, 2024
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
@adam-wolfe
Copy link
Contributor

adam-wolfe commented Oct 23, 2024

While this does solve the issue with the Show Config button, after fixing the config and saving changes (and without reloading the VS Code window), trying to add a profile to the trees or refresh the trees results in an error (with nothing added to the logs):
image

@traeok

This comment was marked as resolved.

Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
@traeok
Copy link
Member Author

traeok commented Oct 23, 2024

@adam-wolfe I found another place where getProfileInfo was being called without handling exceptions, should be working as expected now 👍

anaxceron
anaxceron previously approved these changes Oct 23, 2024
adam-wolfe
adam-wolfe previously approved these changes Oct 23, 2024
Copy link
Contributor

@adam-wolfe adam-wolfe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

After I fix my config and save changes, only one profile is added to the trees, but if I reload the window, all of my profiles are added to the trees. I'm not sure that this is new behavior though.

Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
@traeok
Copy link
Member Author

traeok commented Oct 24, 2024

Sorry, I tested this again in sandbox and ran into the activation error mentioned above - turns out that I was missing another null check in a separate place where getProfileInfo is called.

With this change, fixing the profile and saving causes the default profile to be added to all trees. In addition, it resolves the additional "Activation failed" error and the extension successfully activates even if profiles cannot be loaded.

Thanks for testing and the feedback @adam-wolfe @zFernand0, it's been helpful. I did not see the additional activation error in Dev Host, but was able to reproduce it in the sandbox environment.


After looking over the current logic for ProfilesUtils.getProfileInfo, I think we should consider refactoring it:

  • it does not handle errors unrelated to credential manager initialization and doesn't return anything in those cases (implicitly returns undefined)
  • it initializes a new ProfileInfo instance and reads profiles from disk every time it is called, instead of caching the instance that was first created

For now, I've added a couple safe guards:

  • ZoweLogger.error call in the catch block of setupDefaultCredentialManager so we can get additional context at the time an error occurs in that function
  • added typedoc to clarify that the function implicitly returns undefined, so that other devs are aware before trying to use it without doing a sanity check

I chose not to make additional changes to this function for now (such as always returning a profileInfo instance), as I see its being used in a few different places - I don't want to alter the behavior in those areas.

Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
@traeok traeok force-pushed the fix/broken-profile-init branch from f7d00f5 to a306a4a Compare October 24, 2024 01:08
zFernand0
zFernand0 previously approved these changes Oct 24, 2024
Copy link
Member

@zFernand0 zFernand0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 😋

Now I do see the default profile loading after saving (same as Adam), which indicates that the watcher still works 🙏

I don't think it's a big deal to have to reload extensions (or vscode itself), hence why I'm approving 🙏

I also left a small comment on the bdd tests, but nothing that should be addressed right away. I'm curious how the CI works though 😅

re: the refactoring.
Thanks for adding the null checks 🙏
However, I'm still trying to wrap my head around what the refactoring will entail. 😅
I could benefit from a quick discussion at some point today 🙏

Sorry for the long review, but LGTM! 😋

@traeok
Copy link
Member Author

traeok commented Oct 24, 2024

I don't think it's a big deal to have to reload extensions (or vscode itself), hence why I'm approving 🙏

Are you encountering a reload during your testing? I didn't add any reloads to the logic, so I just want to make sure its behaving properly for you. The extension will activate even if profiles failed to load, and the watcher is registered during the first activation; so once your config is fixed you should be able to continue using ZE as normal.

re: the refactoring. Thanks for adding the null checks 🙏 However, I'm still trying to wrap my head around what the refactoring will entail. 😅 I could benefit from a quick discussion at some point today 🙏

Definitely happy to discuss offline 😋

adam-wolfe
adam-wolfe previously approved these changes Oct 24, 2024
Copy link
Contributor

@JillieBeanSim JillieBeanSim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! thanks @traeok

@traeok traeok merged commit 5d2dce4 into main Oct 24, 2024
24 checks passed
@traeok traeok deleted the fix/broken-profile-init branch October 24, 2024 18:08
@JillieBeanSim JillieBeanSim added this to the v3.0.3 milestone Nov 6, 2024
JillieBeanSim pushed a commit that referenced this pull request Nov 7, 2024
…lization (#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>
zFernand0 added a commit that referenced this pull request Nov 16, 2024
* 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>
JillieBeanSim added a commit that referenced this pull request Nov 19, 2024
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

3.0.2 regression for Show Config when json errors exist
5 participants