Assigned IDs for products and categories #14256
asgerjensen
started this conversation in
Feature Requests
Replies: 1 comment
-
|
PR with implementation #14263 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For product, categories in particular, and maybe other things as well, it would be great if the creator can dictate the ID.
This makes it easier in scenarios where existing services already have assigned a globally known (external) id to the entity.
Example: you are adding medusa to a stack that has an existing recommendation engine in place, that has been using the PIM partnumber as key for a long time. As the PIM is the MDM master, reusing its key, makes it easier for all other systems in the stack to coordinate based on this.
Having the ability to assign the ID means the frontend can directly use
retrievewith the record returned from the recommendation system; something that is not possible with theexternal_idfield, even if it /was/ searchable.Generally, i find, in composable commerce scenarios, that using "global" or "external" IDs make alot of things easier, because it is stable across all service-boundaries, and is much easier to read in the logs and data-grams afterward.
The current IDs are created, not as GUIDs but as ULIDs (if i understand correctly), and this behavior could continue to be so, if the creator does not explicitly set the ID.
Beta Was this translation helpful? Give feedback.
All reactions