Service - Catalog Standard: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 18: Line 18:
configKey: "CatalogServiceNameTag"
configKey: "CatalogServiceNameTag"
configValue: xxx // this own services CatalogServiceTag, eg "CatalogStandard"
configValue: xxx // this own services CatalogServiceTag, eg "CatalogStandard"
}
</syntaxhighlight>
<syntaxhighlight lang="JavaScript">
{
configTag: "CatalogGraphServiceName"
configKey: "CatalogGraphServiceName"
configValue: xxx // eg: "CatalogGraph"
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 47: Line 55:
</syntaxhighlight>
</syntaxhighlight>


= Neptune graph database =  
= Graph database =  


== [[Service - Catalog Graph]]==
== [[Service - Catalog Graph]]==


=== Vertices ===
=== Nodes ===


==== catalog ====
==== catalog ====


vertexId: catalog_{catalogId}
Is an origin/home/top-level node, one per catalog, allows for top level categories in that catalog to be point to a single origin node.
 
* NodeIdentifierLabels: catalog
* NodeIdentifierProperties: catalogId (random uuid)
 
Properties:
 
# searchType: sellOffer|product|variantProduct, will match the setting in the catalog service
# filter: full filter for the catalog, will combine all child categoryNode filters with the setting in the catalog service
# requiredData: full requiredData for this catalog, will match the setting in the catalog service
 
==== catalogSettings ====
 
Versioned data Holding the editable settings for a catalog.


Properties:
Properties:


# filter
# searchType: product|variant|variantProduct
#: stringified object containing default search result filter
# filter: stringified object containing default search result filter
# requiredData
# requiredData: stringified object containing default search result requiredData
#: stringified object containing default search result requiredData
# categoryTreeServiceName: eg: "CategoryTreeStandard"
# searchType
#: product|variant|variantProduct
# categoryTreeServiceName
#: eg: "CategoryTreeStandard"


== [[Service - Translations Graph]] ==
== [[Service - Translations Graph]] ==


=== Vertices ===
=== Nodes ===


==== catalogName ====
==== CatalogName ====


vertexId: catalogName_{catalogId}
* NodeIdentifierLabels: catalogName
* NodeIdentifierProperties: catalogId


= Ideas =
= Ideas =

Latest revision as of 11:46, 26 June 2021

Overview

Handler service for the standard catalog type.

Repository

https://bitbucket.org/stb_working/catalog-standard/src/master/

DynamoDB tables

Standard Config Table Per Service

Configuration tags

{
	configTag: "CatalogServiceNameTag"
	configKey: "CatalogServiceNameTag"
	configValue: xxx // this own services CatalogServiceTag, eg "CatalogStandard"
}
{
	configTag: "CatalogGraphServiceName"
	configKey: "CatalogGraphServiceName"
	configValue: xxx // eg: "CatalogGraph"
}
{
	configTag: "CatalogManagerServiceName"
	configKey: "CatalogManagerServiceName"
	configValue: xxx // eg: "CatalogManager"
}
{
	configTag: "TranslationsServiceName"
	configKey: "TranslationsServiceName"
	configValue: xxx // eg: "Translations"
}
{
	configTag: "CategoryTreeService"
	configKey: xxx // categoryTreeServiceNameTag, eg: "CategoryTreeStandard", this is what is saved in each catalog record
	configValue: {
		serviceName: xxx // eg: "CategoryTreeStandard", this is the actual deployed service name}
	}
}

Graph database

Service - Catalog Graph

Nodes

catalog

Is an origin/home/top-level node, one per catalog, allows for top level categories in that catalog to be point to a single origin node.

  • NodeIdentifierLabels: catalog
  • NodeIdentifierProperties: catalogId (random uuid)

Properties:

  1. searchType: sellOffer|product|variantProduct, will match the setting in the catalog service
  2. filter: full filter for the catalog, will combine all child categoryNode filters with the setting in the catalog service
  3. requiredData: full requiredData for this catalog, will match the setting in the catalog service

catalogSettings

Versioned data Holding the editable settings for a catalog.

Properties:

  1. searchType: product|variant|variantProduct
  2. filter: stringified object containing default search result filter
  3. requiredData: stringified object containing default search result requiredData
  4. categoryTreeServiceName: eg: "CategoryTreeStandard"

Service - Translations Graph

Nodes

CatalogName

  • NodeIdentifierLabels: catalogName
  • NodeIdentifierProperties: catalogId

Ideas

  • One filter that will normally be on, but could be removed, is to only show items that have available quantity, this will tie into the locationtreenodeid.

Working documents

Catalog Standard