Service - Unit Standard

From Izara Wiki
Revision as of 07:16, 6 August 2023 by Sven the Barbarian (talk | contribs) (Created page with "= Overview = Handler service for the standard unit that tracks a single item. = Repository = https://bitbucket.org/izara-supply-units/izara-supply-units-unit-standard = DynamoDB tables = == Standard Config Table Per Service == === Configuration tags === <syntaxhighlight lang="JavaScript"> { configTag: "SupplyGraphServiceName" configKey: "SupplyGraphServiceName" configValue: xxx // eg: "SupplyGraph" } </syntaxhighlight> <syntaxhighlight lang="JavaScript"> {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

Handler service for the standard unit that tracks a single item.

Repository

https://bitbucket.org/izara-supply-units/izara-supply-units-unit-standard

DynamoDB tables

Standard Config Table Per Service

Configuration tags

{
	configTag: "SupplyGraphServiceName"
	configKey: "SupplyGraphServiceName"
	configValue: xxx // eg: "SupplyGraph"
}
{
	configTag: "UnitManagerServiceName"
	configKey: "UnitManagerServiceName"
	configValue: xxx // eg: "UnitManager"
}

LogicalResults

Standard LogicalResults Per Service

Graph database

Service - Supply Graph

Nodes

{
	nodeLabel: "{UnitSharedLib.UNIT_GRAPH_NODE_LABEL}", // stored in shared npm, shared by all unit Handlers
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			unitId: {
				identifier: true, //(random uuid)
			},
			unitHandlerServiceNameTag: {
				immutable: true,
			},
		},
	}
}

Versioned data

unitSettings

{
	properties: {
		// some are controlled by unitType, others can be added as needed case by case, not controlled
	},
}

Relationships

{
	relationshipType: "{unitStandardLib.IS_UNITTYPE_GRAPH_REL_TYPE}", // "is_unitType"
	schema: {
		elementCanBeRemoved: false,
		allPropertiesImmutable: true,
		restrictProperties: true,
		properties: {
			originTimestamp: //timestamp the request to create/change this relationship was sent
		},
	}
}
  • links a standard unit to a unit type

Working documents

Unit Standard