ppapou commented on a change in pull request #808:
URL: https://github.com/apache/incubator-dlab/pull/808#discussion_r449152948
##########
File path:
services/self-service/src/main/java/com/epam/dlab/backendapi/service/impl/BillingServiceImpl.java
##########
@@ -140,8 +140,13 @@ public String downloadReport(UserInfo user, BillingFilter
filter) {
public BillingReport getExploratoryBillingData(String project, String
endpoint, String exploratoryName, List<String> compNames) {
List<String> resourceNames = new ArrayList<>(compNames);
resourceNames.add(exploratoryName);
- List<BillingReportLine> billingData =
billingDAO.findBillingData(project, endpoint, resourceNames);
- final double sum =
billingData.stream().mapToDouble(BillingReportLine::getCost).sum();
+ List<BillingReportLine> billingReportLines =
billingDAO.findBillingData(project, endpoint, resourceNames);
+ final double sum =
billingReportLines.stream().mapToDouble(BillingReportLine::getCost).sum();
+ //Scale the resource costs for WEB UI
Review comment:
Comment has been removed
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]