From fb916bfd455ef7b6e0b263283923bdfedef34e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=E1=BA=A7n=20V=C4=A9nh=20Thi=E1=BB=87n=20Ph=C3=BAc?= Date: Thu, 12 Sep 2024 16:12:11 +0700 Subject: [PATCH] MARP-1058 remove commented codes --- .../market/service/impl/ProductServiceImpl.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/marketplace-service/src/main/java/com/axonivy/market/service/impl/ProductServiceImpl.java b/marketplace-service/src/main/java/com/axonivy/market/service/impl/ProductServiceImpl.java index ef0511e13..ebb6e91ae 100644 --- a/marketplace-service/src/main/java/com/axonivy/market/service/impl/ProductServiceImpl.java +++ b/marketplace-service/src/main/java/com/axonivy/market/service/impl/ProductServiceImpl.java @@ -354,21 +354,6 @@ private void updateLatestReleaseTagContentsFromProductRepo() { private void syncProductsFromGitHubRepo() { log.warn("**ProductService: synchronize products from scratch based on the Market repo"); var gitHubContentMap = axonIvyMarketRepoService.fetchAllMarketItems(); -// gitHubContentMap.entrySet().forEach(ghContentEntity -> { -// Product product = new Product(); -// for (var content : ghContentEntity.getValue()) { -// mappingLogoFromGHContent(product, content); -// ProductFactory.mappingByGHContent(product, content); -// } -// if (StringUtils.isNotBlank(product.getRepositoryName())) { -// updateProductCompatibility(product); -// getProductContents(product); -// } else { -// updateProductContentForNonStandardProduct(ghContentEntity, product); -// } -// productRepository.save(product); -// }); - for (Map.Entry> ghContentEntity : gitHubContentMap.entrySet()) { Product product = new Product(); //update the meta.json first @@ -393,7 +378,6 @@ private void syncProductsFromGitHubRepo() { updateProductContentForNonStandardProduct(ghContentEntity, product); } productRepository.save(product); - break; } } @@ -449,7 +433,6 @@ private void updateProductFromReleaseTags(Product product, GHRepository productR product.setReleasedVersions(new ArrayList<>()); } product.getReleasedVersions().add(versionFromTag); - break; } if (!CollectionUtils.isEmpty(productModuleContents)) { productModuleContentRepository.saveAll(productModuleContents);