★ wanayoo — archive 1999 https://github.com/commercetools/commercetools-sync-java/issues/219Nouvelle recherche | Portail wanayoo
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

Reference Resolution: Handling of non-existent references #219

Closed
heshamMassoud opened this issue Dec 21, 2017 · 1 comment
Closed

Reference Resolution: Handling of non-existent references #219

heshamMassoud opened this issue Dec 21, 2017 · 1 comment

Comments

@heshamMassoud
Copy link
Contributor

@heshamMassoud heshamMassoud commented Dec 21, 2017 •

Currently on reference resolution if the resource doesn't exist, reference resolution doesn't fail right away, but creates the draft with the reference not replaced and waits for the request to CTP to fail because of the wrong reference.

It should be more efficient and fail fast as soon as the resource is not found, before attempting to create/update the resource with the unresolved reference.

We should fail fast only on references which are not of the same type, the current sync is running. For example, product sync will fail fast for missing category, types, customer group references but not for product references (as it might be later resolved).

This doesn't apply in the product sync for product references and category sync for category references. In such cases, the sync process should keep track of unresolved references since they might come in later batches. This is already implemented in the category sync algorithm. But not in the product sync.

@heshamMassoud heshamMassoud self-assigned this Dec 21, 2017
@heshamMassoud heshamMassoud mentioned this issue Dec 21, 2017
4 of 4 tasks complete
@heshamMassoud heshamMassoud added this to the backlog milestone Dec 29, 2017
@heshamMassoud heshamMassoud modified the milestones: backlog, Stabilisation Milestone (Previously: 1.0.0-M2-beta), 1.0.0-M11 (Reference Resolution Milestone) Jan 19, 2018
@heshamMassoud heshamMassoud modified the milestones: 1.0.0-M12 (Reference Resolution Milestone), 1.0.0-M10 Feb 9, 2018
@heshamMassoud heshamMassoud changed the title Reference Resolution: Fetching a non-existing resource should fail fast Reference Resolution: Handling of non-existent references Feb 9, 2018
@heshamMassoud heshamMassoud modified the milestones: 1.0.0-M10, 1.0.0-M11 Feb 14, 2018
@heshamMassoud heshamMassoud added this to To Do in 1.0.0-M11 Feb 14, 2018
@heshamMassoud heshamMassoud modified the milestones: 1.0.0-M11, 1.0.0-M12 Mar 6, 2018
@heshamMassoud heshamMassoud removed this from To Do in 1.0.0-M11 Mar 6, 2018
@heshamMassoud heshamMassoud added this to To do in 1.0.0-M13 Mar 8, 2018
@heshamMassoud heshamMassoud modified the milestones: 1.0.0-M13, 1.0.0-M14 Sep 5, 2018
@heshamMassoud heshamMassoud added this to To Do in 1.0.0-M14 Sep 5, 2018
@heshamMassoud heshamMassoud removed this from TODO in 1.0.0-M13 Sep 5, 2018
@heshamMassoud heshamMassoud modified the milestones: 1.0.0-M14, 1.0.0-M15 Oct 4, 2018
@heshamMassoud heshamMassoud added this to To Do in 1.0.0-M15 Oct 4, 2018
@heshamMassoud heshamMassoud removed this from To Do in 1.0.0-M14 Oct 4, 2018
heshamMassoud added a commit that referenced this issue Oct 10, 2018
heshamMassoud added a commit that referenced this issue Oct 10, 2018
heshamMassoud added a commit that referenced this issue Oct 10, 2018
heshamMassoud added a commit that referenced this issue Oct 10, 2018
@heshamMassoud heshamMassoud moved this from To Do to In Progress in 1.0.0-M15 Oct 10, 2018
heshamMassoud added a commit that referenced this issue Oct 14, 2018
@heshamMassoud heshamMassoud modified the milestones: 1.0.0-M15, 1.0.0-M16 Nov 6, 2018
@heshamMassoud heshamMassoud modified the milestones: Next Steps, 1.3.0 Dec 23, 2018
@heshamMassoud heshamMassoud removed this from In Progress in 1.0.0-M15 Dec 23, 2018
@ahmetoz ahmetoz mentioned this issue Sep 1, 2020
5 of 5 tasks complete
ahmetoz added a commit that referenced this issue Sep 14, 2020
Co-authored-by: andreas Halberkamp <andreas.halberkamp@commercetools.de>
@ahmetoz ahmetoz closed this Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.