-
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
updated with local filtering of jobs #2476
updated with local filtering of jobs #2476
Conversation
Codecov ReportAttention:
... and 1 file with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
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 working on this enhancement @SanthoshiBoyina! I left some comments regarding error handling and use of the tree provider.
58b1478
to
6f8548c
Compare
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.
@@ -21,5 +21,7 @@ | |||
"cancelJobs.notImplemented": "The cancel function is not implemented in this API.", | |||
"cancelJobs.notCancelled": "The job was not cancelled.", | |||
"cancelJobs.failed": "One or more jobs failed to cancel: {0}", | |||
"cancelJobs.succeeded": "Cancelled selected jobs successfully." | |||
"cancelJobs.succeeded": "Cancelled selected jobs successfully.", | |||
"filterJobs.message": "Inorder to filter jobs,first populate them using search icon", |
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.
Could we change this message to say the same as if profile was expanded without search in place.
Use the search button to display jobs
Or something along those lines, possibly A jobs search must be in place before local filtering is possible
"cancelJobs.succeeded": "Cancelled selected jobs successfully." | ||
"cancelJobs.succeeded": "Cancelled selected jobs successfully.", | ||
"filterJobs.message": "Inorder to filter jobs,first populate them using search icon", | ||
"filterJobs.prompt.message": "Type here..." |
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.
Could we explain what is to be entered here? Maybe something like Enter local filter...
); | ||
return spoolNode; | ||
jobsProvider.refresh(); |
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 addressing my previous comments 🙂 I have one more comment:
We should refresh the job
element here instead of the whole tree; otherwise, it will perform logic on other job nodes that are not a part of this filter operation.
This would also apply to line 571 in the filterJobs
function - we can refresh the session (level
) element for that case
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.
I tried both jobProvider.refresh and refreshElement(job) and don't see either of these working like I see the filter search at the session level. it worked so well at the session level with jobProvider.refresh() I wonder if the spool file level will need the spoolProvider.refresh() to see the same outcome.
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.
the inputBox.show then return of inputBox doesn't allow the input box to disappear after hitting enter, I have to escape the input box for it to leave the screen in both filter searches. One way to solve that is to to an
await vscode.window.showInputBox(inputBox)
and if wanting to return what is entered can store and return value or just have a void return.
Is there a way to clear the local filtering and return user to initial filter search?
@@ -549,16 +549,16 @@ export async function filterJobs(jobsProvider: IZoweTree<IZoweJobTreeNode>): Pro | |||
for (const level of jobsProvider.mSessionNodes) { | |||
if (level.label === "zosmf") { |
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.
We don't want to have any particular type calls like checking for zosmf profile type or if this is a check for profile name. We want to be able to handle this for all profile types and names. This may need to be a check on context value for if session node.
); | ||
return spoolNode; | ||
jobsProvider.refresh(); |
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.
I tried both jobProvider.refresh and refreshElement(job) and don't see either of these working like I see the filter search at the session level. it worked so well at the session level with jobProvider.refresh() I wonder if the spool file level will need the spoolProvider.refresh() to see the same outcome.
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
bd05209
to
0e0d4a3
Compare
@JillieBeanSim do we have a milestone for this PR? |
Signed-off-by: SanthoshiBoyina <[email protected]>
…n tests Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
- Also adds unit tests for dataset filtering, sorting, and sorting jobs Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
- Renamed `m4date` to `modifiedDate` in `DatasetStats` API type Signed-off-by: Trae Yelovich <[email protected]>
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.17.10 to 7.23.2. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse) --- updated-dependencies: - dependency-name: "@babel/traverse" dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
Signed-off-by: SanthoshiBoyina <[email protected]>
14ebbc8
SonarCloud Quality Gate failed. 0 Bugs No Coverage information Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
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.
Seems like the recent changes to this branch pulled in some other commits that were already merged into main
. To fix this, it might require undoing the last merge attempt, and then running git merge
again with the main branch. I'd be happy to help with resolving any merge conflicts that come up during the merge 🙂
Proposed changes
-> For filtering the jobs at the zOSMF session level a filter icon is added for the easier accessibility to filter jobs based on job name, job id and return code.
-> and also provided with an option 'Filter Jobs' at the right click menu of zOSMF session level to filter jobs based on job name, job id and return code.
And the input box added here will be filtering the content of Jobs dynamically. That means for each and every character user enters it will be displaying results based on that, which is an enhancement over the old method of filtering once the user enters text and hits the enter button.
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