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

Update dev deps and fix code smells for V3 #3130

Merged
merged 6 commits into from
Sep 23, 2024
Merged

Conversation

t1m0thyj
Copy link
Member

Proposed changes

Resolves security alerts and code smells found by GitHub now that V3 code is in the main branch.

Release Notes

Milestone: 3.0.0

Changelog: N/A

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

Further comments

@t1m0thyj t1m0thyj added the no-changelog Add to PR's that don't require a CHANGELOG update label Sep 19, 2024
Copy link

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

Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.60%. Comparing base (d464418) to head (afb5099).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3130      +/-   ##
==========================================
- Coverage   92.60%   92.60%   -0.01%     
==========================================
  Files         113      113              
  Lines       11658    11657       -1     
  Branches     2487     2591     +104     
==========================================
- Hits        10796    10795       -1     
  Misses        860      860              
  Partials        2        2              

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

@JillieBeanSim JillieBeanSim added this to the v3.0.0 GA milestone Sep 20, 2024
JillieBeanSim
JillieBeanSim previously approved these changes Sep 20, 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 @t1m0thyj

traeok
traeok previously approved these changes Sep 20, 2024
Copy link
Member

@traeok traeok left a comment

Choose a reason for hiding this comment

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

Changes LGTM, thanks Timothy for the fixes & updates 😋

const isValFn = typeof value === "function";

if (isValFn || (typeof descriptor?.value === "function" && value == null)) {
if (typeof value === "function") {
Copy link
Member

@traeok traeok Sep 20, 2024

Choose a reason for hiding this comment

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

Thanks for cleaning this logic up 😁

traeok
traeok previously approved these changes Sep 20, 2024
Signed-off-by: Timothy Johnson <[email protected]>
@JillieBeanSim JillieBeanSim mentioned this pull request Sep 23, 2024
15 tasks
Copy link

sonarcloud bot commented Sep 23, 2024

Copy link
Member

@traeok traeok left a comment

Choose a reason for hiding this comment

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

Had a quick question but nothing that should hold this PR back. Thanks Timothy for the updates & code smell fixes

Copy link
Member

@traeok traeok Sep 23, 2024

Choose a reason for hiding this comment

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

Question for my own clarification: could we remove some of the logic in this script by defining the file suffix before looking over the entries in the JSON? E.g.:

const fileSuffix = langId ? `.${langId}.json` : ".json";

Then the same file suffix could be appended to the package.nls, poeditor and bundle.l10n files to retrieve the contents for the given language ID.

I didn't notice much of a difference between the two branches when doing the langId checks, but if we have to keep the logic separate then feel free to disregard this.

Copy link
Contributor

Choose a reason for hiding this comment

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

can create a follow up story if decided to make the updates.

@JillieBeanSim JillieBeanSim merged commit 45fb36f into main Sep 23, 2024
23 checks passed
@JillieBeanSim JillieBeanSim deleted the chore/update-dev-deps branch September 23, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Add to PR's that don't require a CHANGELOG update size/XXL
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

3 participants