Service - Account Limits
Revision as of 13:09, 26 October 2022 by Sven the Barbarian (talk | contribs) (Created page with "= Overview = Controls a user's limits for actions based on their roles set in Service - RBAC = Repository = https://bitbucket.org/izara-core-user-accounts/izara-core-user-accounts-account-limits/src/master/ = DynamoDB tables = == Standard Config Table Per Service == === Configuration tags === <syntaxhighlight lang="JavaScript"> { configKey: "MediaGraphServiceName" configTag: "MediaGraphServiceName" configValue: xxx // eg: "MediaGraph" } </syntaxhighligh...")
Overview
Controls a user's limits for actions based on their roles set in Service - RBAC
Repository
https://bitbucket.org/izara-core-user-accounts/izara-core-user-accounts-account-limits/src/master/
DynamoDB tables
Standard Config Table Per Service
Configuration tags
{
configKey: "MediaGraphServiceName"
configTag: "MediaGraphServiceName"
configValue: xxx // eg: "MediaGraph"
}
{
configKey: "MediaHandlerService"
configTag: xxx // mediaHandlerServiceNameTag, eg: "MediaStandard", this is what is saved in each media node
configValue: {
serviceName: xxx // eg: "ImageStandard", this is the actual deployed service name}
}
}
MediaRecord
Records which Handler manages each media element
{
mediaId
mediaHandlerServiceNameTag
}
- partition key: mediaId
- sort key: (none)
Graph database
Service - Media Graph
Nodes
{
nodeLabel: "media",
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
mediaId: {
identifier: true, // create unique id from request details
},
mediaHandlerServiceNameTag: {
immutable: true,
},
},
}
}
{
nodeLabel: "mediaPropertyLabel",
}
{
nodeLabel: "mediaProperty",
}
- see DataSchemaLib
Relationships
{
relationshipType: "has_mediaProperty",
}
{
relationshipType: "disabled_mediaProperty",
}
{
relationshipType: "is_mediaPropertyLabel",
}
- see DataSchemaLib
Basic node schemas
Schema comes from BasicNodeSchemaLib
- mediaPropertyLabel
- mediaProperty