Skip to content

Commit

Permalink
filter by exec-member field
Browse files Browse the repository at this point in the history
Signed-off-by: Santhoshi Boyina <[email protected]>
  • Loading branch information
SanthoshiBoyina1 committed Jan 5, 2024
1 parent 15d8aeb commit ca0efb4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/zowe-explorer/src/job/ZosJobsProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,13 @@ export class ZosJobsProvider extends ZoweTreeProvider implements IZoweTree<IZowe
inputBox.placeholder = localize("filterJobs.prompt.message", "Enter local filter...");
inputBox.onDidChangeValue((query) => {
query = query.toUpperCase();
job["children"] = actual_jobs.filter((item) => `${item["job"].jobname}(${item["job"].jobid}) - ${item["job"].retcode}`.includes(query));
job["children"] = actual_jobs.filter((item) =>
item["job"]["exec-member"] !== undefined && item["job"]["exec-member"] !== ""
? `${item["job"].jobname}(${item["job"].jobid}) - ${item["job"]["exec-member"] as string} - ${item["job"].retcode}`.includes(
query
)
: `${item["job"].jobname}(${item["job"].jobid}) - ${item["job"].retcode}`.includes(query)

Check warning on line 1190 in packages/zowe-explorer/src/job/ZosJobsProvider.ts

View check run for this annotation

Codecov / codecov/patch

packages/zowe-explorer/src/job/ZosJobsProvider.ts#L1190

Added line #L1190 was not covered by tests
);
TreeProviders.job.refresh();
this.updateFilterForJob(job, query, isSession);
Gui.setStatusBarMessage(localize("filter.updated", "$(check) Filter updated for {0}", job.label as string), globals.MS_PER_SEC * 4);
Expand Down

0 comments on commit ca0efb4

Please sign in to comment.