-
Notifications
You must be signed in to change notification settings - Fork 93
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
Feature/uss/copy #2004
Feature/uss/copy #2004
Conversation
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Codecov ReportBase: 74.49% // Head: 74.63% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2004 +/- ##
==========================================
+ Coverage 74.49% 74.63% +0.13%
==========================================
Files 63 63
Lines 7341 7415 +74
Branches 1584 1601 +17
==========================================
+ Hits 5469 5534 +65
- Misses 1871 1880 +9
Partials 1 1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
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.
Hey @KutluOzel-b I commented on a couple things that need to be changed
@@ -11,6 +11,10 @@ All notable changes to the "zowe-explorer-api" extension will be documented in t | |||
|
|||
## `2.4.0` | |||
|
|||
## TBD Release |
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.
this should be above the latest release tag
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "@zowe/zowe-explorer-api", | |||
"version": "2.5.0-SNAPSHOT", | |||
"version": "2.6.0-SNAPSHOT", |
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.
this needs to be reverted back to 2.5.0-SNAPSHOT
@@ -47,7 +47,7 @@ | |||
"vscode": "^1.53.2" | |||
}, | |||
"dependencies": { | |||
"@zowe/zowe-explorer-api": "2.5.0-SNAPSHOT", | |||
"@zowe/zowe-explorer-api": "2.6.0-SNAPSHOT", |
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.
same with revert to 2.5.0-SNAPSHOT
packages/zowe-explorer/CHANGELOG.md
Outdated
@@ -16,6 +16,10 @@ All notable changes to the "vscode-extension-for-zowe" extension will be documen | |||
|
|||
## `2.4.0` | |||
|
|||
## TBD Release |
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.
move CHANGELOG above the latest release tag
packages/zowe-explorer/package.json
Outdated
@@ -1736,7 +1776,7 @@ | |||
"@types/promise-queue": "^2.2.0", | |||
"@types/selenium-webdriver": "^3.0.4", | |||
"@types/yargs": "^11.0.0", | |||
"eslint-plugin-zowe-explorer": "2.5.0-SNAPSHOT", | |||
"eslint-plugin-zowe-explorer": "2.6.0-SNAPSHOT", |
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.
2.5.0-SNAPSHOT
packages/zowe-explorer/package.json
Outdated
@@ -1776,7 +1816,7 @@ | |||
"webpack-cli": "^3.3.11" | |||
}, | |||
"dependencies": { | |||
"@zowe/zowe-explorer-api": "2.5.0-SNAPSHOT", | |||
"@zowe/zowe-explorer-api": "2.6.0-SNAPSHOT", |
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.
2.5.0-SNAPSHOT
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
@JillieBeanSim Thanks for reviewing and feedbacks. Adressed all in : 767a703 |
Signed-off-by: Kutlu <104970275+KutluOzel-b@users.noreply.github.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
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.
while testing, if I haven't copied anything and right-click on a directory and select paste the status bar mentions uploading but nothing is actually created. If I paste into a directory with file name already existing that I copied it automatically overwrites without notifying the user and allowing them to rename the file/folder and since the option is there even if folder is closed, this would be a good check to have.
I would still like to research if we can find a way to check the vsc clipboard and only offer paste if something is in there.
@@ -873,7 +886,7 @@ function initSubscribers(context: vscode.ExtensionContext, theProvider: IZoweTre | |||
} | |||
} | |||
|
|||
function getSelectedNodeList(node: IZoweTreeNode, nodeList: IZoweTreeNode[]): IZoweTreeNode[] { | |||
export function getSelectedNodeList(node: IZoweTreeNode, nodeList: IZoweTreeNode[]): IZoweTreeNode[] { |
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.
@KutluOzel-b this function seems to be a duplicate of getSelectedNodeList() in shared/utils? We should only have one of these functions especially if they are exactly the same and I would suggest having it stay in the shared/utils file vs adding more to the extension.ts file.
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.
@JillieBeanSim Thanks for the warning. This is caused by pulling from main branch. Keeping it in shared/utils
Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com>
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
…ension-for-zowe into feature/uss/copy
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
I tested these changes and I'm able to copy files now on Windows 👍 Thanks for looking into that issue! I might have found an edge case - copying an empty directory into another directory. If a folder has files inside, I can copy it into another directory, but in the case of an empty folder nothing happens. No exceptions occur, but the directory structure remains the same. It's unlikely that a user would want to copy an empty directory into another directory when they can just right-click the parent -> "Create Directory" - but just wanted to mention it. |
Thanks @traeok for re-reviewing it and testing. I also hit this case and right now we don't have an api that checks if this directory is created on mf side, so decided to leave as it is and to be resolved when such Api is available/ or do this all operation on mf side . If copy paste is called after directory/node refresh it works. But again : this brings a needless and annoying refresh :/ since we can't decide to call refresh or not with lack of api. |
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.
Thanks for fixing the issues with copying on Windows 🙂
A few questions regarding the implementation:
- When you right-click on a USS directory, should the menu item say "Copy Directory" instead of "Copy Files"?
- If I have loaded directory
/a
in the USS tree that contains a subdirectoryb
, I don't see a way to create a copy of/a/b
at the same level (/a/b (copy)
). Should we add "Paste" to the right-click menu for the root USS node?
Signed-off-by: KutluOzel-b <kutlu.ozel@broadcom.com>
Signed-off-by: Kutlu <104970275+KutluOzel-b@users.noreply.github.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Proposed changes
Adds multiselect copy / paste feature to uss view
Release Notes
#1549
Milestone:
Changelog:
Types of changes
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 revieweryarn workspace vscode-extension-for-zowe vscode:prepublish
has been executed