Skip to content

Commit

Permalink
MARP-1058 remove commented codes
Browse files Browse the repository at this point in the history
  • Loading branch information
tvtphuc-axonivy committed Sep 12, 2024
1 parent ccdd043 commit fb916bf
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, List<GHContent>> ghContentEntity : gitHubContentMap.entrySet()) {
Product product = new Product();
//update the meta.json first
Expand All @@ -393,7 +378,6 @@ private void syncProductsFromGitHubRepo() {
updateProductContentForNonStandardProduct(ghContentEntity, product);
}
productRepository.save(product);
break;
}
}

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit fb916bf

Please sign in to comment.