Service - Media Link: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 92: | Line 92: | ||
Schema comes from [[NPM module - Izara Core - Property Node|BasicNodeSchemaLib]] | Schema comes from [[NPM module - Izara Core - Property Node|BasicNodeSchemaLib]] | ||
# mediaLinkPropertyLabel | # mediaLinkPropertyLabel | ||
#* [[Service - Translations Graph]] | #* [[Service - Translations Graph]] | ||
# mediaLinkProperty | # mediaLinkProperty | ||
#* [[Service - Translations Graph]] | #* [[Service - Translations Graph]] | ||
Revision as of 08:54, 11 August 2021
Overview
Manages Media Links, links might attach to many subject node types, eg Product, Sell Offer, Product Attribute, Sell Offer Term,..
Repository
https://bitbucket.org/izara-core-media/izara-core-media-media-link/src/master/
DynamoDB tables
Standard Config Table Per Service
Configuration tags
..
LogicalResults
Stores results for any requests to perform logical searches on media links
{
resultId: xxx // eg: filterMainId for a single logical element
dataId: xxx // one mediaLinkId
}
- partition key: resultId
- sort key: dataId
Graph database
Service - Media Graph
Nodes
{
nodeLabel: "mediaLink",
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
mediaLinkId: {
identifier: true, //(random uuid)
},
mediaId: {
immutable: true,
},
linkFromId: {
immutable: true, //eg: productId
},
linkFromType: {
immutable: true, //eg: product, should match nodeLabel of linking node
},
mediaHandlerServiceNameTag: {
immutable: true,
},
},
}
}
{
nodeLabel: "mediaLinkPropertyLabel",
}
{
nodeLabel: "mediaLinkProperty",
}
- see DataSchemaLib
Relationships
{
relationshipType: "hasMediaLinkProperty",
}
{
relationshipType: "disabledMediaLinkProperty",
}
{
relationshipType: "isMediaLinkPropertyLabel",
}
- see DataSchemaLib
Basic node schemas
Schema comes from BasicNodeSchemaLib
- mediaLinkPropertyLabel
- mediaLinkProperty