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

Add missing held status option #2451

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

rudyflores
Copy link
Contributor

@rudyflores rudyflores commented Sep 8, 2023

Proposed changes

Solves #2452
Add missing status option held for job owner/prefix search

Release Notes

Milestone: 2.11.0

Changelog: Added missing status held option for job searches

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
  • yarn workspace vscode-extension-for-zowe vscode:prepublish has been executed
  • All checks have passed (DCO, Jenkins and Code Coverage)
  • I have added unit test and it is passing
  • I have added 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 (if appropriate)
  • Any PR dependencies have been merged and published (if appropriate)

Further comments

Screenshot 2023-09-08 at 12 52 47 PM

Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
@rudyflores rudyflores self-assigned this Sep 8, 2023
@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Patch has no changes to coverable lines.

Files Changed Coverage
packages/zowe-explorer/src/globals.ts ø

📢 Thoughts on this report? Let us know!.

@rudyflores rudyflores linked an issue Sep 8, 2023 that may be closed by this pull request
Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
@rudyflores rudyflores marked this pull request as ready for review September 8, 2023 17:09
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 @rudyflores

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.

Hey @rudyflores is there support for zosmf profiles in the Zowe CLI for a status filter of Held? I know Kristina did work on the Zowe CLI side for the other status filters in her PR that also brought in the updated cli dependency with her contributions.

@rudyflores
Copy link
Contributor Author

Hey @rudyflores is there support for zosmf profiles in the Zowe CLI for a status filter of Held? I know Kristina did work on the Zowe CLI side for the other status filters in her PR that also brought in the updated cli dependency with her contributions.

Make sense, I think the change will have to be made on the Zowe CLI side of things before we go ahead and merge this change in order to have support on z/OSMF profiles for this

@traeok
Copy link
Member

traeok commented Sep 11, 2023

Is there support for zosmf profiles in the Zowe CLI for a status filter of Held? I know Kristina did work on the Zowe CLI side for the other status filters in her PR that also brought in the updated cli dependency with her contributions.

@JillieBeanSim @rudyflores By "support for zosmf profiles," does this refer to support within the jobs SDK? As far as I'm aware, we should support the "held" status, as we pass it as a query parameter to GetJobs.getJobsByParameters. Then we filter the response based on job status: https://github.com/zowe/zowe-cli/blob/cc2aaa66006037aa4022d2ca4fa4bc6ea44a49da/packages/zosjobs/src/GetJobs.ts#L211-L221

@rudyflores
Copy link
Contributor Author

Were you able to view jobs under HELD if you tried to use the filter on your end?

@traeok
Copy link
Member

traeok commented Sep 11, 2023

Make sense, I think the change will have to be made on the Zowe CLI side of things before we go ahead and merge this change in order to have support on z/OSMF profiles for this

@rudyflores Turns out that while the logic would work here for filtering by "held" status, this z/OSMF API does not support returning the "held" status. It only returns one of three values: "INPUT", "ACTIVE", "OUTPUT".

Here is the link to the z/OSMF enhancement request:

https://ibm-z-hardware-and-operating-systems.ideas.ibm.com/ideas/ZOS-I-3349

Once this enhancement is implemented, this functionality would work without any changes to Zowe CLI, as the CLI filters the job list based on the status provided to getJobsByParameters.

(thanks @t1m0thyj for mentioning this enhancement request offline)

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.

I would like for this functionality to be added in Zowe Explorer to filter jobs by Held status 🙂
However I'm afraid we can't support it until z/OSMF is enhanced to return this status as @traeok mentioned 😢

@rudyflores rudyflores marked this pull request as draft September 13, 2023 17:55
@rudyflores
Copy link
Contributor Author

Switching this PR to draft until the z/OSMF enhancement is addressed

@sonarcloud
Copy link

sonarcloud bot commented Sep 13, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@JTonda JTonda added the On-Hold label Sep 14, 2023
@zFernand0 zFernand0 removed their request for review September 28, 2023 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Release Backlog
Development

Successfully merging this pull request may close these issues.

Add status "held" for job searching parameters
5 participants