zowe / zowe-explorer-vscode

Visual Studio Code Extension for Zowe, which lets users interact with z/OS Data Sets, Unix System Services, and Jobs on a remote mainframe instance. Powered by Zowe SDKs.
Eclipse Public License 2.0
169 stars 91 forks source link

Give user option to upload files as binary in USS tree #2848

Closed likhithanimma1 closed 5 months ago

likhithanimma1 commented 5 months ago

Proposed changes

Provide users with the option to upload binary files by implementing a "Upload Files (Binary)" right-click option in the USS tree.

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 apply

Checklist

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 reviewer

Further comments

codecov[bot] commented 5 months ago

Codecov Report

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

Project coverage is 93.32%. Comparing base (8cd2da0) to head (ff874a1).

Files Patch % Lines
packages/zowe-explorer/src/uss/actions.ts 90.47% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2848 +/- ## ========================================== - Coverage 93.33% 93.32% -0.02% ========================================== Files 103 103 Lines 10727 10740 +13 Branches 2341 2254 -87 ========================================== + Hits 10012 10023 +11 - Misses 714 716 +2 Partials 1 1 ```

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

traeok commented 5 months ago

I was looking around and found #1956 - I think this PR will implement the request from that issue 👍 Maybe we should reference that issue in the changelog entry as well?

likhithanimma1 commented 5 months ago

Thanks for working on this enhancement @likhithanimma1!

I noticed that two status bar messages appear at the same time as the upload:

  • "Uploading file to USS tree"
  • "Upload action was cancelled"

After the "Uploading file..." message disappears, it seems the file was not successfully uploaded as I cannot fetch the file in the destination folder afterward:

ZE-USS-BinaryUpload ZE-USS-BinaryUpload

Addressed the behaviour!

JillieBeanSim commented 5 months ago

Thanks for addressing the withProgress and tree refresh, this is looking good. I did experience the same issue seen as Trae with the filename missing from delete dialog but only with the upload of binary, same scenario works fine with regular upload.

likhithanimma1 commented 5 months ago

Thanks for addressing the withProgress and tree refresh, this is looking good. I did experience the same issue seen as Trae with the filename missing from delete dialog but only with the upload of binary, same scenario works fine with regular upload.

Addressed deletion of files after uploading @JillieBeanSim

sonarcloud[bot] commented 5 months ago

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