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

control-service: fix lastDeployedDate and lastDeployedBy #615

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ public static V2DataJobDeployment toV2DataJobDeployment(JobDeploymentStatus jobD
v2DataJobDeployment.setJobVersion(jobDeploymentStatus.getGitCommitSha());
v2DataJobDeployment.setMode(DataJobMode.fromValue(jobDeploymentStatus.getMode()));
v2DataJobDeployment.setResources(jobDeploymentStatus.getResources());
v2DataJobDeployment.setLastDeployedBy(jobDeploymentStatus.getLastDeployedBy());
v2DataJobDeployment.setLastDeployedDate(jobDeploymentStatus.getLastDeployedDate());
// TODO: Get these from the job deployment when they are available there
v2DataJobDeployment.setLastExecutionStatus(convertStatusEnum(sourceDataJob.getLastExecutionStatus()));
v2DataJobDeployment.setLastExecutionTime(sourceDataJob.getLastExecutionEndTime());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ public class V2DataJobDeployment {
private Integer lastExecutionDuration;
private Integer successfulExecutions;
private Integer failedExecutions;
private String lastDeployedBy;
private String lastDeployedDate;
}