-
Notifications
You must be signed in to change notification settings - Fork 92
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
Issue Unix Command API changes #2866
Conversation
Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com>
Signed-off-by: likhithanimma1 <142219673+likhithanimma1@users.noreply.github.com>
Signed-off-by: likhithanimma1 <142219673+likhithanimma1@users.noreply.github.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #2866 +/- ##
==========================================
- Coverage 93.51% 93.47% -0.05%
==========================================
Files 121 121
Lines 10732 10740 +8
Branches 2246 2249 +3
==========================================
+ Hits 10036 10039 +3
- Misses 695 700 +5
Partials 1 1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: likhithanimma1 <142219673+likhithanimma1@users.noreply.github.com>
Quality Gate failedFailed conditions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @likhithanimma1!
Tested with this PR and I'm able to issue Unix commands for z/OSMF nodes. If I right-click a zFTP node and try to issue a Unix command, I receive "Not implemented yet" error which I think is expected behavior 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! thanks @likhithanimma1
Apologies in advance for bringing up (again) the conversation about the Since an extender can call the API directly, I'm curious as to why we made sshSession optional without providing a suitable replacement. Here are some examples:
There may be other ways to provide such functionality without requiring an SSH session 😋 Could someone help me understand this a bit better? 😋 |
Hey @zFernand0 if there are other ways to issue a unix command using the zosmf profile we can add that, but when this was first discussed as a new functionality using the ssh profile with zosmf was the path forward. Since some extenders don't require the ssh profile to issue unix commands, similar to TSO commands with check of TSO profile for account number, the passing of the session is an optional parameter. I don't believe there would be a replacement value sent for extenders that don't need it since they can grab this.session like other APIs for the service session information on demand. |
Thanks for providing more details. |
Proposed changes
Making the sshSession parameter optional for issueUnixCommand Api so that profiles that doesn't require ssh can also have it.
Release Notes
Milestone:
Changelog:
Types of changes
What types of changes does your code introduce to Zowe Explorer?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This checklist will be used as reference for both the contributor and the revieweryarn workspace vscode-extension-for-zowe vscode:prepublish
has been executedFurther comments