You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by pp...@apache.org on 2021/12/02 15:31:09 UTC
[incubator-datalab] 01/01: [DATALAB-2556] Null value of the Compute resource
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 <pp...@gmail.com>
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: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org