366: validate asset keys#509
Conversation
…eActionUtils.java Co-Authored-By: Jude Niroshan <jude.niroshan11@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #509 +/- ##
=========================================
Coverage 98.78% 98.78%
- Complexity 1502 1509 +7
=========================================
Files 134 134
Lines 3780 3795 +15
Branches 200 203 +3
=========================================
+ Hits 3734 3749 +15
Misses 31 31
Partials 15 15
Continue to review full report at Codecov.
|
…updateactionutils/BuildAssetsUpdateActionsTest.java Co-Authored-By: Jude Niroshan <jude.niroshan11@gmail.com>
…updateactionutils/BuildAssetsUpdateActionsTest.java Co-Authored-By: Jude Niroshan <jude.niroshan11@gmail.com>
…eActionUtils.java Co-Authored-By: Ahmet Öz <bilmuhahmet@gmail.com>
…eActionUtils.java Co-Authored-By: Ahmet Öz <bilmuhahmet@gmail.com>
|
I have allready write some integration test, see: https://github.com/commercetools/commercetools-sync-java/pull/509/files#diff-cadc851f237ef9842d0224c27748bf3aR120 and I fixed the build @ahmetoz |
|
@ahalberkamp Does it call warning callback and skip processing faulty resource or it will make a request to the API with assets without keys? |
|
@butenkor assets without keys will be skipped, so no invalid request will be sent to the API. |
|
Ok, Thanks. What about sync statistics? Will the totals (updated, processed, failed, skipped...) be updated accordingly? |
|
No, because if a assetkey is missing, the given Product will still be updated and only a Warning, that the asset is not synced, will be printed out. So there is no need to change the statistic in this case. |
|
ok. Thanks |
In This pr, it is validated that assetKeys exists on old and new resources exist.If not a warning-callback is triggered
Fixes: #366