-
Notifications
You must be signed in to change notification settings - Fork 0
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
TSPS-325 Support for adding more CLI commands #164
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,7 +198,12 @@ public ResponseEntity<ApiGetPipelineRunsResponse> getAllPipelineRuns( | |
new ApiPipelineRun() | ||
.jobId(pipelineRun.getJobId()) | ||
.status(pipelineRun.getStatus().name()) | ||
.description(pipelineRun.getDescription())) | ||
.description(pipelineRun.getDescription()) | ||
.timeSubmitted(pipelineRun.getCreated().toString()) | ||
.timeCompleted( | ||
pipelineRun.getStatus().isCompleted() | ||
? pipelineRun.getUpdated().toString() | ||
: null)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does setting it to null change the default behavior of not being in the response if there is no value? I'm pretty sure it doesnt since its starts out as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this has the same effect as just not setting timeCompleted at all if the run isn't completed. here's what's in the API response:
do you prefer that we not set it, rather than set it to null? it seems like it might make the logic a little gnarlier since I don't know if you can call a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nope this is great, i was just double checking the response was the same even though it should have been obvious to me that it was |
||
.toList(); | ||
|
||
ApiGetPipelineRunsResponse apiGetPipelineRunsResponse = | ||
|
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.
can update this description
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.
good call thanks!