-
Notifications
You must be signed in to change notification settings - Fork 86
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
Enhancing GetJobs.getJob #2320
Enhancing GetJobs.getJob #2320
Conversation
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2320 +/- ##
========================================
Coverage 91.10% 91.10%
========================================
Files 628 628
Lines 17891 17891
Branches 3844 3737 -107
========================================
Hits 16300 16300
Misses 1590 1590
Partials 1 1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@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.
I like your observation! 🙏
We should probably add the rest of the exec-data parameters to the iJob interface.
Ideally we would figure out a way to prevent changes in so many places 😢
...perative/__tests__/src/packages/imperative/plugins/test_plugins/override_plugin/package.json
Outdated
Show resolved
Hide resolved
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.
FWIW, this PR LGTM 😋
Should we add a changelog entry to the CLI package since this will also affect the default behavior of the CLI? 😅
Here is a quick before and after 🥳
Before
zFernand0 : ~/gh/zowe/cli > zowe jobs list jobs --prefix "izu*" --owner "*" --rfj | jq '.data[0]'
{
"owner": "IZUSVR",
"phase": 20,
"subsystem": "JES2",
"phase-name": "Job is on the hard copy queue",
"job-correlator": "S0003689USI220MEDFD7F395.......:",
"type": "STC",
"url": "https://lpar.dev:1234/zosmf/restjobs/jobs/S0003689USI220MEDFD7F395.......%3A",
"jobid": "STC03689",
"class": "STC",
"files-url": "https://lpar.dev:1234/zosmf/restjobs/jobs/S0003689USI220MEDFD7F395.......%3A/files",
"jobname": "IZUSVR1",
"status": "OUTPUT",
"retcode": "SYS FAIL"
}
After
zFernand0 : ~/gh/zowe/cli > zdev jobs list jobs --prefix "izu*" --owner "*" --rfj | jq '.data[0]'
{
"owner": "IZUSVR",
"phase": 20,
"exec-member": "SYS1",
"subsystem": "JES2",
"phase-name": "Job is on the hard copy queue",
"job-correlator": "S0003689USI220MEDFD7F395.......:",
"type": "STC",
"url": "https://lpar.dev:1234/zosmf/restjobs/jobs/S0003689USI220MEDFD7F395.......%3A",
"jobid": "STC03689",
"exec-system": "SYS1",
"exec-submitted": "2024-10-14T08:25:30.470Z",
"class": "STC",
"files-url": "https://lpar.dev:1234/zosmf/restjobs/jobs/S0003689USI220MEDFD7F395.......%3A/files",
"jobname": "IZUSVR1",
"status": "OUTPUT",
"retcode": "SYS FAIL",
"exec-started": "2024-10-14T08:25:32.010Z"
}
Signed-off-by: Pujal <pujal.gandhi@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.
LGTM! Thanks Pujal for the fix 🙂
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: Pujal <pujal.gandhi@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.
Your changes satisfy my earlier comments. However, Adam's comment seems like something that should be investigated and resolved before you merge your pull request. Once you address Adam's question, I am ready to approve.
packages/imperative/__tests__/src/packages/imperative/plugins/suites/sample-plugin.json
Outdated
Show resolved
Hide resolved
…suites/sample-plugin.json Signed-off-by: Pujal Gandhi <71276682+pujal0909@users.noreply.github.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Can we ignore this SonarCloud Quality gate caught error? This file already contained heavily duplicated test data that supports test cases. @t1m0thyj @zFernand0 @awharn @gejohnston |
I don't disagree with tackling this in a future issue. |
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.
LGTM! 😋
Thanks for addressing all PR feedback 🥳
Merging as soon as checks are done! 🥳
Quality Gate failedFailed conditions |
These requested changes have been address 🙏
Release succeeded for the The following packages have been published:
Powered by Octorelease 🚀 |
What It Does
Adds "exec-started" and "exec-ended" to IJob return data from GetJobs.getJob
How to Test
Download branch and test a command that uses GetJobs.getJob in the background - set a breakpoint and ensure that the job being returned has the expected timestamps.
Review Checklist
I certify that I have:
Additional Comments
Other exec properties were included in the zosmf response from GetJobs. Should we include these other properties starred in the image? @t1m0thyj @zFernand0 @gejohnston @awharn