-
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
fix(error): Check if session
is valid before calling proxy setup fn
#3428
Conversation
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3428 +/- ##
==========================================
+ Coverage 93.18% 93.20% +0.01%
==========================================
Files 120 120
Lines 12582 12583 +1
Branches 2890 2905 +15
==========================================
+ Hits 11725 11728 +3
+ Misses 856 854 -2
Partials 1 1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Trae Yelovich <[email protected]>
6f1f6ef
to
d0bc378
Compare
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
📅 Suggested merge-by date: 2/14/2025 |
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.
Also, @traeok would you mind creating port PRs for this (once merged) and the other bug fix you mentioned for 3.1.1 please? |
Signed-off-by: Fernando Rijo Cedeno <[email protected]>
1fd5c46
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! 😋
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 @traeok!
The last merge commit into |
…#3428) * fix: check for valid session before calling proxy setup fn Signed-off-by: Trae Yelovich <[email protected]> * tests: CommonApi.getSession, reuse fake profile in other test Signed-off-by: Trae Yelovich <[email protected]> * chore: update ZE changelog Signed-off-by: Trae Yelovich <[email protected]> * fix: correct expected value in createZoweSchema test Signed-off-by: Trae Yelovich <[email protected]> * lint: resolve lint error in test code Signed-off-by: Trae Yelovich <[email protected]> --------- Signed-off-by: Trae Yelovich <[email protected]>
…#3428) * fix: check for valid session before calling proxy setup fn Signed-off-by: Trae Yelovich <[email protected]> * tests: CommonApi.getSession, reuse fake profile in other test Signed-off-by: Trae Yelovich <[email protected]> * chore: update ZE changelog Signed-off-by: Trae Yelovich <[email protected]> * fix: correct expected value in createZoweSchema test Signed-off-by: Trae Yelovich <[email protected]> * lint: resolve lint error in test code Signed-off-by: Trae Yelovich <[email protected]> --------- Signed-off-by: Trae Yelovich <[email protected]>
* fix(error): Check if `session` is valid before calling proxy setup fn (#3428) * fix: check for valid session before calling proxy setup fn Signed-off-by: Trae Yelovich <[email protected]> * tests: CommonApi.getSession, reuse fake profile in other test Signed-off-by: Trae Yelovich <[email protected]> * chore: update ZE changelog Signed-off-by: Trae Yelovich <[email protected]> * fix: correct expected value in createZoweSchema test Signed-off-by: Trae Yelovich <[email protected]> * lint: resolve lint error in test code Signed-off-by: Trae Yelovich <[email protected]> --------- Signed-off-by: Trae Yelovich <[email protected]> * fix: correct expected value in createZoweSchema test Signed-off-by: Trae Yelovich <[email protected]> --------- Signed-off-by: Trae Yelovich <[email protected]>
* run l10n prepublish script Signed-off-by: Trae Yelovich <[email protected]> * fix: Avoid data-loss when creating new members (#3392) (#3397) * fix: Avoid data-loss when creating new members (#3392) * fix: Prompt users when creating members if the member exists Signed-off-by: Fernando Rijo Cedeno <[email protected]> * review: alternative way Signed-off-by: Fernando Rijo Cedeno <[email protected]> * test: add coverage for added memberFound logic Signed-off-by: Fernando Rijo Cedeno <[email protected]> * chore: update changelog Signed-off-by: Fernando Rijo Cedeno <[email protected]> * chore: cleanup commented code Signed-off-by: Fernando Rijo Cedeno <[email protected]> * chore: simplify fix 😋 Signed-off-by: Fernando Rijo Cedeno <[email protected]> * Update packages/zowe-explorer/CHANGELOG.md Co-authored-by: Trae Yelovich <[email protected]> Signed-off-by: Fernando Rijo Cedeno <[email protected]> --------- Signed-off-by: Fernando Rijo Cedeno <[email protected]> Co-authored-by: Trae Yelovich <[email protected]> * chore: move the changelog entry to the right location Signed-off-by: Fernando Rijo Cedeno <[email protected]> --------- Signed-off-by: Fernando Rijo Cedeno <[email protected]> Co-authored-by: Trae Yelovich <[email protected]> * Fix internal error when extenders register new profile types (#3412) (#3416) * Fix internal error when extenders register new profile types (#3412) Signed-off-by: Timothy Johnson <[email protected]> Signed-off-by: Fernando Rijo Cedeno <[email protected]> * chore: downgrade ubuntu runners to ubuntu-22.04 (#3406) Signed-off-by: Trae Yelovich <[email protected]> --------- Signed-off-by: Timothy Johnson <[email protected]> Signed-off-by: Fernando Rijo Cedeno <[email protected]> Signed-off-by: Trae Yelovich <[email protected]> Co-authored-by: Timothy Johnson <[email protected]> Co-authored-by: Trae Yelovich <[email protected]> * Prepare 3.1.0 release (#3398) * update lerna and remove un-needed changelog headers Signed-off-by: Billie Simmons <[email protected]> * add notes to readme's of VSC for older releases location with link Signed-off-by: Billie Simmons <[email protected]> * run package command Signed-off-by: Billie Simmons <[email protected]> * chore: downgrade ubuntu runners to ubuntu-22.04 Signed-off-by: Trae Yelovich <[email protected]> * fix: call Mutex.waitForUnlock instead of locking profile before request (#3409) * fix: call Mutex.waitForUnlock instead of locking profile before request Signed-off-by: Trae Yelovich <[email protected]> * fix: AuthHandler.waitForUnlock Signed-off-by: Trae Yelovich <[email protected]> * tests: AuthHandler.waitForUnlock Signed-off-by: Trae Yelovich <[email protected]> * fix: add true opt-in support for profile locks w/ extender types Signed-off-by: Trae Yelovich <[email protected]> --------- Signed-off-by: Trae Yelovich <[email protected]> * fix(ds): Pass correct DS name in `stat` when doing remote lookup (#3407) * fix: use path.basename and helper fn to extract DS name Signed-off-by: Trae Yelovich <[email protected]> * test: add unit test to verify proper DS name Signed-off-by: Trae Yelovich <[email protected]> * chore: update changelog Signed-off-by: Trae Yelovich <[email protected]> --------- Signed-off-by: Trae Yelovich <[email protected]> Co-authored-by: Timothy Johnson <[email protected]> Signed-off-by: Timothy Johnson <[email protected]> --------- Signed-off-by: Billie Simmons <[email protected]> Signed-off-by: Trae Yelovich <[email protected]> Signed-off-by: Timothy Johnson <[email protected]> Signed-off-by: Fernando Rijo Cedeno <[email protected]> Co-authored-by: Trae Yelovich <[email protected]> Co-authored-by: Timothy Johnson <[email protected]> Co-authored-by: Fernando Rijo Cedeno <[email protected]> * fix: update release config to allow minor release (#3419) Signed-off-by: Trae Yelovich <[email protected]> * Bump version to 3.1.0 [ci skip] Signed-off-by: zowe-robot <[email protected]> * Bump version to 3.2.0-SNAPSHOT [ci skip] Signed-off-by: zowe-robot <[email protected]> * Port #3428 into `release/3.1` (prep for 3.1.1 release) (#3435) * fix(error): Check if `session` is valid before calling proxy setup fn (#3428) * fix: check for valid session before calling proxy setup fn Signed-off-by: Trae Yelovich <[email protected]> * tests: CommonApi.getSession, reuse fake profile in other test Signed-off-by: Trae Yelovich <[email protected]> * chore: update ZE changelog Signed-off-by: Trae Yelovich <[email protected]> * fix: correct expected value in createZoweSchema test Signed-off-by: Trae Yelovich <[email protected]> * lint: resolve lint error in test code Signed-off-by: Trae Yelovich <[email protected]> --------- Signed-off-by: Trae Yelovich <[email protected]> * fix: correct expected value in createZoweSchema test Signed-off-by: Trae Yelovich <[email protected]> --------- Signed-off-by: Trae Yelovich <[email protected]> * Port #3417 Delete Keybinding fix (#3437) * fix: Pass TreeView selection when node is undefined (#3417) * fix: pass TreeView selection when node is undefined Signed-off-by: Richelle Craw <[email protected]> * fix: move node processing to USSActions Signed-off-by: Richelle Craw <[email protected]> --------- Signed-off-by: Richelle Craw <[email protected]> * run prepublish Signed-off-by: Billie Simmons <[email protected]> * fix: correct expected value in createZoweSchema test Signed-off-by: Trae Yelovich <[email protected]> --------- Signed-off-by: Richelle Craw <[email protected]> Signed-off-by: Billie Simmons <[email protected]> Signed-off-by: Trae Yelovich <[email protected]> Co-authored-by: Richelle Craw <[email protected]> Co-authored-by: Trae Yelovich <[email protected]> * update lerna to 3.1.1 (#3436) Signed-off-by: Billie Simmons <[email protected]> * Bump version to 3.1.1 [ci skip] Signed-off-by: zowe-robot <[email protected]> * Bump version to 3.2.0-SNAPSHOT [ci skip] Signed-off-by: zowe-robot <[email protected]> * run package & pretty commands Signed-off-by: Billie Simmons <[email protected]> * fix lint Signed-off-by: Billie Simmons <[email protected]> --------- Signed-off-by: Trae Yelovich <[email protected]> Signed-off-by: Fernando Rijo Cedeno <[email protected]> Signed-off-by: Timothy Johnson <[email protected]> Signed-off-by: Billie Simmons <[email protected]> Signed-off-by: zowe-robot <[email protected]> Signed-off-by: Richelle Craw <[email protected]> Co-authored-by: Trae Yelovich <[email protected]> Co-authored-by: Fernando Rijo Cedeno <[email protected]> Co-authored-by: Timothy Johnson <[email protected]> Co-authored-by: zowe-robot <[email protected]> Co-authored-by: Richelle Craw <[email protected]>
Proposed changes
Fixes #3425
Also adds two unit tests for
CommonApi.getSession
because we didn't have any unit tests for it..Release Notes
Milestone: 3.1.1
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