This is an automated email from the ASF dual-hosted git repository. ppapou pushed a commit to branch DATALAB-2556-1 in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 50a3bc793b66e026bbf64b9ec23ac0c183127362 Author: Pavel Papou <[email protected]> AuthorDate: Thu Dec 2 10:31:04 2021 -0500 [DATALAB-2556] Null value of the Compute resource the string value is changed to null --- .../com/epam/datalab/backendapi/service/impl/BillingServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/BillingServiceImpl.java b/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/BillingServiceImpl.java index 97dafb8..a0217c0 100644 --- a/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/BillingServiceImpl.java +++ b/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/BillingServiceImpl.java @@ -100,6 +100,7 @@ public class BillingServiceImpl implements BillingService { .stream() .peek(this::appendStatuses) .filter(bd -> CollectionUtils.isEmpty(filter.getStatuses()) || filter.getStatuses().contains(bd.getStatus())) + .peek(bd -> { if (bd.getShape() != null && bd.getShape().contains("null")) bd.setShape(null);}) .collect(Collectors.toList()); final LocalDate min = billingReportLines.stream().min(Comparator.comparing(BillingReportLine::getUsageDateFrom)).map(BillingReportLine::getUsageDateFrom).orElse(null); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
