-
Notifications
You must be signed in to change notification settings - Fork 37
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
Support reference resolution in the key field not only id in ResourceIdentifiers #138
Comments
As defined by @ahmetoz References on commercetools-sync-javaProductDraft
PriceDraft
CustomFieldDraft
CategoryDraft
InventoryEntryDraft
CartDiscountDraft
Not implemented yetCustomerDraft
ShoppingListDraft
|
As defined by @ahmetoz: Support requests (SUPPORT-9797, SUPPORT-9798) are opened for the problematic types/fields both API and SDK and links are shared with @butenkor . Additionally, a GitHub issue is opened for jvm-sdk types: commercetools/commercetools-jvm-sdk#2052 |
Co-authored-by: andreas Halberkamp <[email protected]>
The task is resolved, so only parts are related to the API, not SDK anymore, when API adds support of ResourceIdentifier for PriceDraft#customerGroup we could close the issue. (Currently, it's not clear when API will support this.) |
Edit: The task is resolved, so only parts are related to the API, not SDK anymore, when API adds support of ResourceIdentifier for PriceDraft#customerGroup we could close the issue. (Currently it's not clear when API will support this.)
Remaining work:
Support requests (SUPPORT-9797, SUPPORT-9798) are opened for the problematic types/fields both API and SDK. Additionally, a GitHub issue is opened for jvm-sdk types: commercetools/commercetools-jvm-sdk#2052 (Edit: The task is resolved, so only parts are related to the API, not SDK anymore.)
Description
Right now there are references which are of type
Reference
and other references which are of typeResourceIdentifier
Reference
only supportsid
as a field.ResourceIdentifier
supportsid
orkey
as a field.On CTP in the future, all references should be changed to
ResourceIdentifier
.It's quite confusing for the user of the sync library to put the key in the id field for reference resolution.
Current Behaviour
Whether it's a resourceIdentifier or reference reference resolution is always done on the id field.
Expected Behaviour
ResourceIdentifier
:Reference
:Related: #231
The text was updated successfully, but these errors were encountered: