zowe / zowe-cli

Zowe CLI
Eclipse Public License 2.0
108 stars 85 forks source link

MVP: Imperative Event Emitter #2118

Closed zFernand0 closed 1 month ago

zFernand0 commented 2 months ago

What It Does

How to Test

You may need to create a dummy app (e.g. VSCE) in order to test this 😋 ( or use ~fernando's example VSCE~ - amber's comment )

UPDATE: Here is a public instance of the sample VSCE

Review Checklist I certify that I have:

Additional Comments

TODO:

Expand this section for a complete list of future enhancements ``` The following list of event types will only be implemented upon request Shared events: Global: - $ZOWE_CLI_HOME/.events/onConfigChanged - $ZOWE_CLI_HOME/.events/onSchemaChanged Project: - $ZOWE_CLI_HOME/.events//onConfigChanged - $ZOWE_CLI_HOME/.events//onSchemaChanged User events: Global: - ~/.zowe/.events/onUserConfigChanged Project: - ~/.zowe/.events//onUserConfigChanged Custom events: Shared: Global: - $ZOWE_CLI_HOME/.events// Project: - $ZOWE_CLI_HOME/.events/// User: Global: - ~/.zowe/.events// Project: - ~/.zowe/.events/// ```
codecov[bot] commented 2 months ago

Codecov Report

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

Project coverage is 91.20%. Comparing base (1016963) to head (d68e05d). Report is 2 commits behind head on next.

Files Patch % Lines
...mperative/src/events/src/ImperativeEventEmitter.ts 96.42% 4 Missing :warning:
packages/imperative/src/config/src/ConfigUtils.ts 95.45% 1 Missing :warning:
...tive/src/security/src/CredentialManagerOverride.ts 66.66% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## next #2118 +/- ## ========================================== + Coverage 91.15% 91.20% +0.05% ========================================== Files 623 628 +5 Lines 17716 17877 +161 Branches 3763 3750 -13 ========================================== + Hits 16149 16305 +156 - Misses 1566 1571 +5 Partials 1 1 ```

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

zFernand0 commented 1 month ago

Thanks for the review! 🙏🏽 Moving this back to draft to address these items 😋

zFernand0 commented 1 month ago

This PR should be ready to review as-is.

There will be many more changes happening once the following PR gets in:

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
92.9% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

zFernand0 commented 1 month ago

Merging in order to get the MVP out in its own prerelease version (next-<timestamp>)

github-actions[bot] commented 1 month ago

Release succeeded for the next branch. :tada:

The following packages have been published:

Powered by Octorelease :rocket: