-
Notifications
You must be signed in to change notification settings - Fork 94
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
Allow multiple deletion of jobs #1128
Conversation
Signed-off-by: Richelle Anne Craw <richelleanne.craw@broadcom.com>
Signed-off-by: Richelle Anne Craw <richelleanne.craw@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 @crawr :) I am getting one error with multiple delete, which doesn't occur when I delete jobs one at a time:
The jobs are successfully deleted though.
@crawr I'm testing this PR and I didn't experience the error that @katelynienaber mentioned here. The one thing that I notice is that DELETE is mentioned twice in the context menu. |
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.
Looks good to me!
@jellypuno Thanks for testing. The other |
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.
@crawr I did see the same error pop up as @katelynienaber and it pops up the same number of times as jobs included in the multi-delete. Also the tree collapses on me after the delete goes through. Is the collapsing of the tree expected? I would not expect it to collapse.
localize("deleteJob.delete", " deleted") | ||
); | ||
this.removeFavorite(this.createJobsFavorite(node)); | ||
await this.removeFavorite(this.createJobsFavorite(node)); |
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.
@crawr I am wondering if the children error is popping up due to it not being in favorites as I reran again and saving 2 of my 3 jobs into favorites then deleted all 3 and error only popped up once. Before I just deleted 3 jobs and none were in favorites and the pop up occurred 3 times.
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.
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, @JillieBeanSim I added the checking and I hope it will fix the issue. I did have the jobs in favorites so I did not encounter it previously.
Signed-off-by: Richelle Anne Craw <richelleanne.craw@broadcom.com>
New changes are added. please review
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 pop up issue @crawr and the folder collapsing may be related to a refresh story we have so not worried about that.
This LGTM all expected checks and tests are passing. Thanks for putting this work together and now I am excited to also see this multi-delete option in the Data Sets & USS trees winkwink
Signed-off-by: Richelle Anne Craw richelleanne.craw@broadcom.com
Proposed changes
Fixes #224
This PR enables the
canSelectMany
option in the Jobs Providervscode.window.createTreeView
. This option allows users to select multiple job nodes usingShift+Click
.The new
deleteMulti
function accepts the VSCode tree container and then loops through the valid job nodes selected in the tree, passing them one at a time to the existingdelete
job function.Release Notes
Milestone: v1.13 (?)
Changelog: Added the ability to select multiple jobs and then delete them at once.
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
This PR is open for discussion. A thread is open here: #1130