Extract actual entity IDs from row links for service calls
When pseudoId differs from the internal productId (e.g., DEMO_VAR_GR_SM_COPY
vs 100204), models were using the display ID for service calls causing FK errors.
Now extracts the actual entity ID from the row's link URL and includes it in
the row data:
- compact: {id: 'DEMO_VAR_GR_SM_COPY', productId: '100204', link: '...'}
- aria: {ref: 'DEMO_VAR_GR_SM_COPY', productId: '100204', ...}
This is a generic solution that works for any entity type by parsing the
primary key parameter from the Edit link URL.
Fixes QA issue where models used pseudoId for applyProductFeatures causing
'record does not exist' referential integrity errors.
Showing
1 changed file
with
55 additions
and
17 deletions
-
Please register or sign in to post a comment