Skip to content

Commit

Permalink
EPMRPP-90342 || Email notifications. Broken links are displayed in fi…
Browse files Browse the repository at this point in the history
…nish launch email in case launch has status 'stopped'
  • Loading branch information
APiankouski committed Jun 24, 2024
1 parent aaebfb8 commit dad0516
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ public StopLaunchHandlerImpl(LaunchRepository launchRepository,
this.eventPublisher = eventPublisher;
}

@Override
public OperationCompletionRS stopLaunch(Long launchId, FinishExecutionRQ finishLaunchRQ,
ReportPortalUser.ProjectDetails projectDetails, ReportPortalUser user, String baseUrl) {
@Override
public OperationCompletionRS stopLaunch(Long launchId, FinishExecutionRQ finishLaunchRQ,
ReportPortalUser.ProjectDetails projectDetails, ReportPortalUser user, String baseUrl) {
Launch launch = launchRepository.findById(launchId)
.orElseThrow(() -> new ReportPortalException(ErrorType.LAUNCH_NOT_FOUND, launchId));

Expand All @@ -74,7 +74,7 @@ public OperationCompletionRS stopLaunch(Long launchId, FinishExecutionRQ finishL

launch = new LaunchBuilder(launch).addDescription(
ofNullable(finishLaunchRQ.getDescription()).orElse(
ofNullable(launch.getDescription()).orElse("")).concat(LAUNCH_STOP_DESCRIPTION))
ofNullable(launch.getDescription()).orElse("")).concat(LAUNCH_STOP_DESCRIPTION))
.addStatus(ofNullable(finishLaunchRQ.getStatus()).orElse(STOPPED.name()))
.addEndTime(ofNullable(finishLaunchRQ.getEndTime()).orElse(Instant.now()))
.addAttributes(finishLaunchRQ.getAttributes())
Expand Down

0 comments on commit dad0516

Please sign in to comment.