Skip to content

Reference resolution of custom object key-value-document references (and set of) as an attribute of nested type.#563

Merged
ahmetoz merged 164 commits intomasterfrom
add-support-for-key-value-document-refs
Sep 25, 2020
Merged

Reference resolution of custom object key-value-document references (and set of) as an attribute of nested type.#563
ahmetoz merged 164 commits intomasterfrom
add-support-for-key-value-document-refs

Conversation

@ahmetoz
Copy link
Copy Markdown
Contributor

@ahmetoz ahmetoz commented Sep 10, 2020

Summary

#564

Todo

  • Validations.
  • Tests
    • Unit
    • Integration
  • Documentation
  • Add Release Notes entry.
  • Coverage.

…d-support-for-key-value-document-refs

# Conflicts:
#	src/main/java/com/commercetools/sync/products/ProductSync.java
#	src/test/java/com/commercetools/sync/customobjects/helpers/CustomObjectCompositeIdentifierTest.java
#	src/test/java/com/commercetools/sync/services/impl/CustomObjectServiceImplTest.java
@ahmetoz ahmetoz changed the base branch from master to improve-cache-algorithm September 24, 2020 08:54
- CustomObjectCompositeIdentifier should be valid before passing to service
- add cacheKeysToIds method to service
- refactor duplicated lines and make the methods clean as possible.
@ahmetoz ahmetoz marked this pull request as ready for review September 25, 2020 07:12
}

@Test
void sync_withNonExistingNestedCustomObjectReferenceAsAttribute_ShouldFailCreatingTheProduct() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So it means, we expect in project-sync, we execute CustomObjectSyncer before we execute ProductSyncer?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, I haven't' check the custom object part on the project sync, I assume @lojzatran is considering it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I do it like that in the project-sync (custom object before product), but this actually should not matter as they're not referenced to each other.

Base automatically changed from improve-cache-algorithm to master September 25, 2020 10:43
ahmetoz and others added 2 commits September 25, 2020 12:57
…-value-document-refs

# Conflicts:
#	docs/RELEASE_NOTES.md
#	src/main/java/com/commercetools/sync/products/ProductSync.java
#	src/main/java/com/commercetools/sync/products/helpers/ProductBatchValidator.java
#	src/main/java/com/commercetools/sync/products/helpers/ProductReferenceResolver.java
#	src/test/java/com/commercetools/sync/products/helpers/ProductBatchValidatorTest.java
…atchValidatorTest.java

Co-authored-by: Jude Niroshan <jude.niroshan11@gmail.com>
@ahmetoz ahmetoz merged commit 5a1f8d2 into master Sep 25, 2020
@ahmetoz ahmetoz deleted the add-support-for-key-value-document-refs branch September 25, 2020 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants