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

V3 conformant #144

Merged
merged 7 commits into from
Mar 6, 2024
Merged

V3 conformant #144

merged 7 commits into from
Mar 6, 2024

Conversation

awharn
Copy link
Member

@awharn awharn commented Mar 4, 2024

What It Does

Updates the DB2 plug-in for V3 conformance

How to Test

Review Checklist
I certify that I have:

Additional Comments

Signed-off-by: Andrew W. Harn <[email protected]>
Signed-off-by: Andrew W. Harn <[email protected]>
Signed-off-by: Andrew W. Harn <[email protected]>
Signed-off-by: Andrew W. Harn <[email protected]>
Signed-off-by: Andrew W. Harn <[email protected]>
Copy link

codecov bot commented Mar 4, 2024

Codecov Report

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

Project coverage is 74.48%. Comparing base (23c3784) to head (2ba3155).

Files Patch % Lines
src/cli/DB2BaseHandler.ts 28.57% 5 Missing ⚠️
src/cli/execute/sql/SQL.handler.ts 0.00% 1 Missing ⚠️
src/cli/export/table/Table.handler.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             next     #144      +/-   ##
==========================================
- Coverage   75.22%   74.48%   -0.75%     
==========================================
  Files          25       24       -1     
  Lines         331      337       +6     
  Branches       42       44       +2     
==========================================
+ Hits          249      251       +2     
- Misses         82       86       +4     

☔ 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.

PR LGTM! 😋
left a few questions/comments 😋

release.config.js Outdated Show resolved Hide resolved
src/cli/call/procedure/Procedure.handler.ts Outdated Show resolved Hide resolved
},
"peerDependencies": {
"@zowe/imperative": "^5.0.0"
"@zowe/imperative": ">8.0.0-next.0 <9.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

I think we have gone back and forth on this, but curious if the intention is to allow for any 8.x.x (non-prerelease included) to be compatible with this version. 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Not really, I plan for this to update when we are out of prerelease to be >8.0.0.

Signed-off-by: Andrew W. Harn <[email protected]>
@awharn awharn requested a review from zFernand0 March 4, 2024 21:18
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.

LGTM! 😋
Thanks for addressing the feedback! 🥳

Copy link

@anaxceron anaxceron left a comment

Choose a reason for hiding this comment

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

Approving this but made some comments for minor edits.

CHANGELOG.md Outdated
@@ -2,6 +2,11 @@

All notable changes to the IBM® Db2® Plug-in for Zowe CLI will be documented in this file.

## Recent Changes

- BugFix: Exit code 1 when DB2 calls do not succeed

Choose a reason for hiding this comment

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

We should explain the actual fix for this. Also, this needs a PR/issue link.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated link and wording to state that the command will exit with code 1 if something goes wrong with issuing commands. This tells automation that something went wrong.

CHANGELOG.md Outdated
## Recent Changes

- BugFix: Exit code 1 when DB2 calls do not succeed
- V3 Breaking: Updated engines, removed health check and v1 profile support, added port and database to template

Choose a reason for hiding this comment

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

This needs a PR/issue link.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added

CHANGELOG.md Outdated

- BugFix: Exit code 1 when DB2 calls do not succeed
- V3 Breaking: Updated engines, removed health check and v1 profile support, added port and database to template

## `5.0.6`

- BugFix: Update follow-redirects transitive dependency to resolve technical debt

Choose a reason for hiding this comment

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

This needs a PR/issue link.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added

zowe config set profiles.db2.properties.port <port number>
```

4. Set the database to your Db2 database:

Choose a reason for hiding this comment

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

data base should be two words.

Copy link
Member Author

Choose a reason for hiding this comment

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

I do not believe database should be two words. It is referenced as database in Zowe Docs.

README.md Outdated
zowe config set profiles.db2.properties.database <database name>
```

5. If required, set the SSL File to the CA certificate used for the DB2 server

Choose a reason for hiding this comment

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

this should end w/ a colon

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

Copy link

sonarcloud bot commented Mar 5, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

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.

LGTM - thanks @awharn! 😁

@awharn awharn merged commit 51a82c9 into next Mar 6, 2024
17 of 19 checks passed
@awharn awharn deleted the v3-conformant branch March 6, 2024 20:23
Copy link

github-actions bot commented Mar 6, 2024

Release succeeded for the next branch. 🎉

The following packages have been published:

Powered by Octorelease 🚀

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.

4 participants