Skip to content

Commit

Permalink
feat: add field for created report request
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-ThinhVu committed Apr 25, 2024
1 parent fc5d661 commit 67d7646
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<version.snakeyaml>2.0</version.snakeyaml>
<version.mapstruct>1.5.3.Final</version.mapstruct>
<version.lombok-mapstruct-binding>0.2.0</version.lombok-mapstruct-binding>
<version.explorer-common>0.9.0-PR199</version.explorer-common>
<version.explorer-common>0.9.0-PR202</version.explorer-common>
<sonar.coverage.jacoco.xmlReportPaths>../cardano-explorer-api/target/site/jacoco-aggregate/jacoco.xml
</sonar.coverage.jacoco.xmlReportPaths>
<sonar.coverage.exclusions>**/entity/*, **/validation/*</sonar.coverage.exclusions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class PoolReportCreateRequest {
private Integer[] epochRanges;
private String timePattern;
private Long zoneOffset; // diff with UTC in minutes
private String dateFormat;

public PoolReportHistory toEntity(ReportHistory reportHistory) {
return PoolReportHistory.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ public class StakeKeyReportRequest {
private Boolean eventDeregistration;
private String timePattern;
private Long zoneOffset; // diff with UTC in minutes
private String dateFormat;
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public Boolean create(
.reportHistory(poolReportHistory.getReportHistory())
.timePattern(poolReportCreateRequest.getTimePattern())
.zoneOffset(poolReportCreateRequest.getZoneOffset())
.dateFormat(poolReportCreateRequest.getDateFormat())
.build();

Boolean isSuccess = kafkaService.sendReportHistory(reportMessage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public StakeKeyReportHistoryResponse generateStakeKeyReport(
.reportHistory(stakeKeyReportHistory.getReportHistory())
.timePattern(stakeKeyReportRequest.getTimePattern())
.zoneOffset(stakeKeyReportRequest.getZoneOffset())
.dateFormat(stakeKeyReportRequest.getDateFormat())
.build();

Boolean isSuccess = kafkaService.sendReportHistory(reportMessage);
Expand Down

0 comments on commit 67d7646

Please sign in to comment.