Service - Media Link: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 56: Line 56:
}
}
</syntaxhighlight>
</syntaxhighlight>


<syntaxhighlight lang="JavaScript">
<syntaxhighlight lang="JavaScript">
Line 66: Line 65:
restrictRelationships: true,
restrictRelationships: true,
properties: {
properties: {
propertyId: {
identifier: true, //(random uuid)
},
mediaLinkId: {
mediaLinkId: {
identifier: true, //(random uuid)
immutable: true,
},
},
}
}
</syntaxhighlight>
 
== [[Service - Translations Graph]]==
 
=== Nodes ===
 
<syntaxhighlight lang="JavaScript">
{
nodeLabel: "mediaLinkPropertyName",
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
propertyId: {
identifier: true,
},
},
},
}
}
</syntaxhighlight>
<syntaxhighlight lang="JavaScript">
{
nodeLabel: "mediaLinkPropertyValue",
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
propertyId: {
propertyId: {
immutable: true,
identifier: true,
},
},
},
},

Revision as of 10:45, 8 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,
			},
			mediaHandlerServiceNameTag: {
				immutable: true,
			},
		},
	}
}
{
	nodeLabel: "mediaLinkProperty",
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			propertyId: {
				identifier: true, //(random uuid)
			},
			mediaLinkId: {
				immutable: true,
			},
		},
	}
}

Service - Translations Graph

Nodes

{
	nodeLabel: "mediaLinkPropertyName",
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			propertyId: {
				identifier: true,
			},
		},
	}
}
{
	nodeLabel: "mediaLinkPropertyValue",
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			propertyId: {
				identifier: true,
			},
		},
	}
}

Working documents

Media Link