Service - Image Standard: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 84: Line 84:
restrictRelationships: true,
restrictRelationships: true,
properties: {
properties: {
propertyId: {
identifier: true, //(random uuid)
},
mediaId: {
mediaId: {
identifier: true, //(random uuid)
immutable: true,
},
},
}
}
</syntaxhighlight>
 
== [[Service - Translations Graph]]==
 
=== Nodes ===
 
<syntaxhighlight lang="JavaScript">
{
nodeLabel: "mediaPropertyName",
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
propertyId: {
identifier: true,
},
},
},
}
}
</syntaxhighlight>
<syntaxhighlight lang="JavaScript">
{
nodeLabel: "mediaPropertyValue",
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
propertyId: {
propertyId: {
immutable: true,
identifier: true,
},
},
},
},

Revision as of 10:45, 8 August 2021

Overview

Handler service for the standard image media type.

Repository

https://bitbucket.org/izara-core-media/izara-core-media-image-standard/src/master/

DynamoDB tables

Standard Config Table Per Service

Configuration tags

{
	configTag: "MediaHandlerServiceNameTag"
	configKey: "MediaHandlerServiceNameTag"
	configValue: xxx // this own services ServiceNameTag, eg "ImageStandard", this is not the serviceName, but the unchanging tag stored in database records
}
{
	configTag: "MediaGraphServiceName"
	configKey: "MediaGraphServiceName"
	configValue: xxx // eg: "MediaGraph"
}
{
	configTag: "MediaManagerServiceName"
	configKey: "MediaManagerServiceName"
	configValue: xxx // eg: "MediaManager"
}

LogicalResults

Stores results for any requests to perform logical searches on product data

{
	resultId: xxx // eg: filterMainId for a single logical element
	dataId: xxx // one mediaId
}
  • partition key: resultId
  • sort key: dataId

Graph database

Service - Media Graph

Nodes

{
	nodeLabel: "image",
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			mediaId: {
				identifier: true, //(random uuid)
			},
			mediaHandlerServiceNameTag: {
				immutable: true,
			},
		},
	}
}
{
	nodeLabel: "mediaProperty",
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			propertyId: {
				identifier: true, //(random uuid)
			},
			mediaId: {
				immutable: true,
			},
		},
	}
}

Service - Translations Graph

Nodes

{
	nodeLabel: "mediaPropertyName",
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			propertyId: {
				identifier: true,
			},
		},
	}
}
{
	nodeLabel: "mediaPropertyValue",
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			propertyId: {
				identifier: true,
			},
		},
	}
}

Working documents

Image Standard