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

[v2] Port fix for duplicate config watcher events #3378

Open
wants to merge 2 commits into
base: v2-lts
Choose a base branch
from

Conversation

t1m0thyj
Copy link
Member

Proposed changes

Ports #3296 and #3322 to v2-lts branch

Release Notes

Milestone:

Changelog:

  • Fixed an issue where editing a team config file or updating secrets in the OS credential vault could trigger multiple events for a single action
  • Updated the @zowe/cli dependency to v7.29.8 for technical currency

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

Signed-off-by: Timothy Johnson <[email protected]>
Copy link

Copy link

codecov bot commented Dec 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.43%. Comparing base (cf55928) to head (5047c00).

Additional details and impacted files
@@            Coverage Diff             @@
##           v2-lts    #3378      +/-   ##
==========================================
+ Coverage   93.41%   93.43%   +0.02%     
==========================================
  Files         105      105              
  Lines       11161    11168       +7     
  Branches     2367     2368       +1     
==========================================
+ Hits        10426    10435       +9     
+ Misses        734      733       -1     
+ Partials        1        0       -1     

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

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 porting these over! 🙏

LGTM! 😋

* @param callback Event handler callback
* @param delay Number of milliseconds to delay
*/
export function debounce<T extends (...args: any[]) => void | Promise<void>>(callback: T, delay: number): (...args: Parameters<T>) => void {
Copy link
Member

Choose a reason for hiding this comment

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

Hopefully, we will turn this into a decorator in the core-for-zowe-sdk 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants