Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate ProductReferenceResolver #937

Conversation

lojzatran
Copy link
Collaborator

@lojzatran lojzatran commented Apr 11, 2023

Summary

Migrate ProductReferenceResolver and related tests.

@lojzatran lojzatran marked this pull request as ready for review April 11, 2023 15:35
renovate bot and others added 4 commits April 14, 2023 18:02
…va-sdk-v2-product-reference-resolver

# Conflicts:
#	src/main/java/com/commercetools/sync/sdk2/products/utils/ProductReferenceResolutionUtils.java
#	src/test/java/com/commercetools/sync/sdk2/products/utils/ProductReferenceResolutionUtilsTest.java
@codecov-commenter
Copy link

codecov-commenter commented Apr 18, 2023

Codecov Report

Merging #937 (9f6cfb2) into java-sdk-v2-product-sync-migration (f5e1dc9) will decrease coverage by 0.65%.
The diff coverage is 80.48%.

❗ Current head 9f6cfb2 differs from pull request most recent head ce838b0. Consider uploading reports for the commit ce838b0 to get more accurate results

@@                           Coverage Diff                            @@
##             java-sdk-v2-product-sync-migration     #937      +/-   ##
========================================================================
- Coverage                                 96.48%   95.84%   -0.65%     
- Complexity                                 3804     3899      +95     
========================================================================
  Files                                       334      337       +3     
  Lines                                     10816    11374     +558     
  Branches                                    647      695      +48     
========================================================================
+ Hits                                      10436    10901     +465     
- Misses                                      280      364      +84     
- Partials                                    100      109       +9     
Impacted Files Coverage Δ
.../sdk2/commons/helpers/CustomReferenceResolver.java 100.00% <ø> (ø)
...mercetools/sync/sdk2/commons/utils/ChunkUtils.java 92.85% <ø> (ø)
...2/customers/helpers/CustomerReferenceResolver.java 100.00% <ø> (ø)
...ercetools/sync/sdk2/services/impl/BaseService.java 95.12% <ø> (ø)
...ync/sdk2/services/impl/ProductTypeServiceImpl.java 98.33% <ø> (+6.66%) ⬆️
...services/impl/UnresolvedReferencesServiceImpl.java 5.08% <5.08%> (ø)
.../sdk2/products/utils/ProductUpdateActionUtils.java 96.68% <66.66%> (+0.47%) ⬆️
.../commercetools/sync/sdk2/products/ProductSync.java 72.85% <72.85%> (ø)
...dk2/products/helpers/ProductReferenceResolver.java 81.91% <81.91%> (ø)
.../sync/products/utils/ProductUpdateActionUtils.java 96.13% <92.50%> (+0.26%) ⬆️
... and 13 more

... and 4 files with indirect coverage changes

* Migrate WaitingToBeResolved class and tests

* Update comment
@salander85 salander85 changed the base branch from java-sdk-v2-variant-reference-resolution-utils to java-sdk-v2-product-sync-migration April 19, 2023 08:01
getReferencesWithIds(ensureCategories(CTP_SOURCE_CLIENT, getCategoryDrafts(null, 2)));

ensureProductType(PRODUCT_TYPE_RESOURCE_PATH, CTP_TARGET_CLIENT);
// ensureProductType(PRODUCT_TYPE_NO_KEY_RESOURCE_PATH, CTP_TARGET_CLIENT);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this comment

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.thenApply(ProductProjectionPagedQueryResponse::getResults)
.join();

final List<ProductDraft> productDrafts = // mapToProductDrafts(products);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is commented multiple times. I think you can remove it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lojzatran lojzatran merged commit 7937b3e into java-sdk-v2-product-sync-migration May 3, 2023
@lojzatran lojzatran deleted the java-sdk-v2-product-reference-resolver branch May 3, 2023 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants