zowe / zowe-explorer-vscode

Visual Studio Code Extension for Zowe, which lets users interact with z/OS Data Sets, Unix System Services, and Jobs on a remote mainframe instance. Powered by Zowe SDKs.
Eclipse Public License 2.0
159 stars 89 forks source link

Fix extender registration failure with multiple registrations #2919

Closed t1m0thyj closed 1 month ago

t1m0thyj commented 1 month ago

Proposed changes

Fixes #2888. To test this PR, install multiple extensions that contribute profiles to a ZE tree view (like the FTP extension and the USS sample extension). They should fail to load with ZE 2.15.4, but work with a VSIX built from this PR.

Release Notes

Milestone: 2.16.1?

Changelog: Fixed issue where multiple extensions that contribute profiles to a tree view using the Zowe Explorer API may fail to load

Types of changes

What types of changes does your code introduce to Zowe Explorer? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This checklist will be used as reference for both the contributor and the reviewer

Further comments

Thanks @awharn for helping to write tests 😋

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 91.30435% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 93.46%. Comparing base (2e898f3) to head (6f6b0d7). Report is 3 commits behind head on maintenance.

Files Patch % Lines
packages/zowe-explorer/src/Profiles.ts 50.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## maintenance #2919 +/- ## =============================================== - Coverage 93.49% 93.46% -0.03% =============================================== Files 104 104 Lines 10840 10840 Branches 2258 2370 +112 =============================================== - Hits 10135 10132 -3 - Misses 704 707 +3 Partials 1 1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

JillieBeanSim commented 1 month ago

Thanks @t1m0thyj for tackling this bug, I do see all registered types showing as available. I do see an issue with the FTP profile. I was prompted for credentials (user/pass in base for all) and zosmf and other prof type (rse used) ds filter search worked but the zftp kept having pop up with invalid creds

Sorry after more testing this credential issue exists on marketplace version as well. existing related issue https://github.com/zowe/zowe-explorer-vscode/issues/2337

JillieBeanSim commented 1 month ago

I think with 2.16.0 about to go out the door, we wait to merge this until after the release. We can discuss the plan of 2.16.1 and put together a list of fixes we want to include and when we would like it to go out, 1 week? 2 weeks?.

sonarcloud[bot] commented 1 month ago

Quality Gate Failed Quality Gate failed

Failed conditions
14.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud