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: resolve error when changing token to basic auth #3151

Merged
merged 8 commits into from
Sep 30, 2024

Conversation

traeok
Copy link
Member

@traeok traeok commented Sep 25, 2024

Proposed changes

Fixes #3142

Release Notes

Milestone: 3.0.0 GA (or 3.1 if needed)

Changelog:

  • Fixed issue where switching from token-based authentication to user/password would cause an error for nested profiles. #3142

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

  • 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):

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

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.79%. Comparing base (838f34d) to head (6108792).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3151      +/-   ##
==========================================
- Coverage   92.80%   92.79%   -0.01%     
==========================================
  Files         113      113              
  Lines       11669    11663       -6     
  Branches     2457     2564     +107     
==========================================
- Hits        10829    10823       -6     
  Misses        838      838              
  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>
@pull-request-size pull-request-size bot added size/L and removed size/S labels Sep 25, 2024
@traeok traeok marked this pull request as ready for review September 25, 2024 18:26
Copy link

📅 Suggested merge-by date: 10/9/2024

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

traeok commented Sep 25, 2024

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarCloud

I'm starting to wonder if we should make SonarCloud exclude duplication metrics for test files... I know there are benefits to condensing tests and using shared code, but to another developer it could make revising those tests more difficult. From the CLI side of things, I believe we would prefer code duplication over tests that are difficult to maintain.

Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
@traeok traeok force-pushed the fix/switch-token-to-basic branch from 5035e1a to 3a323ab Compare September 25, 2024 18:32
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 traeok force-pushed the fix/switch-token-to-basic branch from a4877f4 to c351eba Compare September 26, 2024 22:31
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.

thanks for handling possible undefined values for jsonLoc as well as reducing code duplication 🙏
LGTM! 😋

Copy link

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarCloud

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.

I still get the issue seen when I created bug but did come from extender, looking into an extender fix.

I am unable to test the API ML scenario with our API ML instance down atm, merging with the 2 approvals.

BTW: sample checks failing due to use of ^ fix is in release PR

@JillieBeanSim JillieBeanSim merged commit d993a78 into main Sep 30, 2024
26 of 30 checks passed
@JillieBeanSim JillieBeanSim deleted the fix/switch-token-to-basic branch September 30, 2024 15:31
@JillieBeanSim JillieBeanSim added this to the v3.0.3 milestone Nov 6, 2024
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.

Change Authentication method misbehavior in v3
4 participants