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

feat(v3-zftp): Update the zFTP VSCE with the V3 version of the plug-in #2783

Merged
merged 25 commits into from
May 2, 2024

Conversation

zFernand0
Copy link
Member

@zFernand0 zFernand0 commented Mar 13, 2024

Proposed changes

Release Notes

Milestone: v3

Changelog: Update the zos-node-accessor dependency

Types of changes

What types of changes does your code introduce to Zowe Explorer?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Updates to Documentation or Tests (if none of the other choices 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

  • I have read the CONTRIBUTOR GUIDANCE wiki
  • PR title follows Conventional Commits Guidelines
  • PR Description is included
  • gif or screenshot is included if visual changes are made
  • pnpm --filter vscode-extension-for-zowe vscode:prepublish has been executed
  • All checks have passed (DCO, Jenkins and Code Coverage)
  • I have added/modified unit test and it is passing
  • I have added/modified integration test and it is passing
  • There is coverage for the code that I have added
  • I have tested it manually and there are no regressions found
  • I have added necessary documentation/changelog (if appropriate)
  • Any PR dependencies have been merged and published (if appropriate)

Further comments

Please note that errors from either a z/OSMF or a zFTP result in the Action bar getting stuck with the name of the action being performed (e.g. Opening USS File..., Downloading USS FIle...)

Here are some edge cases and how they are currently handled (marketplace) vs how they will be handled after this PR

  • USS symbolic links to directories
    • Both (z/OSMF and zFTP) don't handle this scenario (marketplace, or this PR)
  • USS symbolic links to files
    • z/OSMF and this PR handle them just fine
    • The zFTP version on the marketplace adds the link to the filename which causes a file-not-found error
      • image
  • USS symbolic links to deleted files
    • z/OSMF and this PR throw an error a file-not-found error
    • The zFTP version on the marketplace also throws an error because of the filename having the link
  • USS directory with * (or **, ***...) as the name
    • z/OSMF handles this as any other directory
    • Both zFTP (marketplace and this PR) show the contents on the outer directory as if everything is inside it (including itself)
      z/OSMF zFTP
      image image
  • USS files with special characters (e.g. start \ : * ? " < > | end.ext, /, ...)
    • z/OSMF handles everything but slashes (\ or /) in filenames
    • Both zFTP (marketplace and this PR) handle everything except / in filenames

Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
…nto prep/ftp-v3

Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
@zFernand0 zFernand0 added this to the v3.0.0 GA milestone Mar 13, 2024
@zFernand0 zFernand0 self-assigned this Mar 13, 2024
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
Copy link

codecov bot commented Mar 19, 2024

Codecov Report

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

Project coverage is 93.38%. Comparing base (50eeee8) to head (c5dbe78).

Files Patch % Lines
...xplorer-ftp-extension/src/ZoweExplorerFtpJesApi.ts 86.95% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             next    #2783      +/-   ##
==========================================
- Coverage   93.42%   93.38%   -0.05%     
==========================================
  Files         121      121              
  Lines       10857    10835      -22     
  Branches     2320     2312       -8     
==========================================
- Hits        10143    10118      -25     
- Misses        711      714       +3     
  Partials        3        3              

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

Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
@zFernand0 zFernand0 linked an issue Mar 19, 2024 that may be closed by this pull request
@zFernand0 zFernand0 changed the title Prep/ftp v3 feat(v3-zftp): Update the zFTP VSCE with the V3 version of the plug-in Mar 19, 2024
@zFernand0 zFernand0 marked this pull request as ready for review March 19, 2024 19:27
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
@zFernand0 zFernand0 requested a review from traeok April 1, 2024 19:28
traeok
traeok previously approved these changes Apr 2, 2024
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 @zFernand0!

Copy link
Contributor

@JillieBeanSim JillieBeanSim left a comment

Choose a reason for hiding this comment

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

I'm seeing some strange behavior with packaging and installing both extensions. When I created a new team config no base or ftp profile was put in the config. Also, when I first started I did the create steps to add ftp profile to existing config and it wasn't added. When I deleted that config to test starting fresh I saw strange behavior in tree where it didn't clear the profiles (this part could be unrelated but still a problem that should be documented).
Screenshot 2024-04-02 at 1 43 53 PM
after deleting config:
Screenshot 2024-04-02 at 1 43 04 PM

Copy link
Member

@t1m0thyj t1m0thyj left a comment

Choose a reason for hiding this comment

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

Looks pretty good, thanks @zFernand0! Left a few comments

.vscode/tasks.json Outdated Show resolved Hide resolved
packages/zowe-explorer-ftp-extension/CHANGELOG.md Outdated Show resolved Hide resolved
packages/zowe-explorer-ftp-extension/src/ftpSession.ts Outdated Show resolved Hide resolved
 into prep/ftp-v3

Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
 into prep/ftp-v3

Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
@zFernand0
Copy link
Member Author

zFernand0 commented Apr 29, 2024

Hey @JillieBeanSim,
I was able to reproduce the issue with the most recent vNext release (v3.0.0-next.202404242037). I'm looking into this a bit further, but I'll open it as a separate issue for now 😋

FWIW, testing with the pre-release version v3.0.0-next.202402142205 (more details on #2887) and this PR's FTP build (found here) the FTP and base profiles get created just fine 😋

 into prep/ftp-v3

Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
Copy link

sonarcloud bot commented Apr 30, 2024

Quality Gate Passed Quality Gate passed

Issues
4 New issues
0 Accepted issues

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

See analysis details on SonarCloud

@zFernand0
Copy link
Member Author

To make things easier for people to test this PR, feel free to get the VSIX files from the latest builds:

Copy link
Member

@t1m0thyj t1m0thyj 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 @zFernand0!

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 @zFernand0 😁

@JillieBeanSim JillieBeanSim merged commit c131df3 into next May 2, 2024
28 checks passed
@JillieBeanSim JillieBeanSim deleted the prep/ftp-v3 branch May 2, 2024 11:31
@zFernand0
Copy link
Member Author

Thanks for the reviews, @t1m0thyj, @traeok, and @JillieBeanSim! 🥳

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

Successfully merging this pull request may close these issues.

Unable to create datasets on vNext
4 participants