-
Notifications
You must be signed in to change notification settings - Fork 12
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
fix list spool file hang problem. #159
Conversation
Signed-off-by: Tian Na <[email protected]>
Signed-off-by: Tian Na <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #159 +/- ##
=======================================
Coverage ? 73.49%
=======================================
Files ? 77
Lines ? 981
Branches ? 128
=======================================
Hits ? 721
Misses ? 240
Partials ? 20 ☔ View full report in Codecov by Sentry. |
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.
This looks similar to the following PR:
Thanks for porting and enhancing the functionality and error message.
Curious if we can link the same issue on the changelog (issue number #156)
@@ -23,17 +23,22 @@ export default class ListSpoolFilesByJobidHandler extends FTPBaseHandler { | |||
this.log.debug("Listing spool files for job ID %s", params.arguments.jobId); | |||
const job = await JobUtils.findJobByID(params.connection, params.arguments.jobId); | |||
const files = job.spoolFiles; | |||
if (files) { |
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.
Should we check the length as well?
if (files?.length > 0) { ...
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 @tiantn for the fix!
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, @tiantn !
Signed-off-by: Tian Na <[email protected]>
Quality Gate passedIssues Measures |
Hi @zFernand0, I think it fixed the issue #158 😊 |
Hi @zFernand0 , @traeok , @std4lqi , thank you for your review and good suggestions. I updated the code to check the files length as well. And also update unit test for no spool file scenario to improve test cover rate. Thank you! |
Merging without DCO check. See below issue for details 😋 Kudos to @traeok |
Release succeeded for the The following packages have been published:
Powered by Octorelease 🚀 |
What It Does
How to Test
Review Checklist
I certify that I have:
Additional Comments