FINERACT-2181: Use matrix jobs via Github Actions to improve performance

This commit is contained in:
Adam Saghy
2025-07-02 10:01:37 +02:00
committed by Arnold Gálovics
parent dc2101bc21
commit 70eb2add0d
28 changed files with 924 additions and 437 deletions
@@ -33,8 +33,11 @@ public interface OfficeDataMapper {
if (hierarchy == null) {
nameDecorated = "";
} else {
nameDecorated = hierarchy.substring(0, (hierarchy.length() - hierarchy.replace(".", "").length() - 1) * 4)
+ Optional.ofNullable(office.getName()).orElse("");
long count = hierarchy.chars().filter(c -> c == '.').count();
if (count > 0) {
count--;
}
nameDecorated = "....".repeat((int) count) + Optional.ofNullable(office.getName()).orElse("");
}
return new OfficeData(office.getId(), office.getName(), nameDecorated, office.getExternalId(), office.getOpeningDate(),
office.getHierarchy(), office.getParent() != null ? office.getParent().getId() : null,