Service - Catalog Manager: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
Line 28: Line 28:
{
{
configTag: "catalogServiceName"
configTag: "catalogServiceName"
configKey: xxx // methodTag, eg: "CatalogStandard"
configKey: xxx // serviceNameTag, eg: "CatalogStandard"
configValue: {
configValue: {
serviceName: xxx // eg: "CatalogStandard"
serviceName: xxx // eg: "CatalogStandard"
Line 38: Line 38:
{
{
configTag: "categoryTreeServiceName"
configTag: "categoryTreeServiceName"
configKey: xxx // methodTag, eg: "CategoryTreeStandard"
configKey: xxx // serviceNameTag, eg: "CategoryTreeStandard"
configValue: {
configValue: {
serviceName: xxx // eg: "CategoryTreeStandard"
serviceName: xxx // eg: "CategoryTreeStandard"

Revision as of 01:41, 22 February 2021

Overview

Maintains a table of all catalogs, each catalog is handled by a Service - Catalog (handlers) and a Service - Category Tree (handlers) service, links to these are stored for efficiently handling browse requests.

Browse requests from client pass this service, the Search Result request is built and sent to Service - Search Result Main service and id/s to poll for results are sent to client.

Repository

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

DynamoDB tables

Standard Config Table Per Service

Configuration tags

{
	configTag: "searchType"
	configKey: {eg: "product"|"sellOffer"|"variantProduct"}
	configValue: {
		searchResultServiceName: {eg: "searchResult"}
	}
}
{
	configTag: "catalogServiceName"
	configKey: xxx // serviceNameTag, eg: "CatalogStandard"
	configValue: {
		serviceName: xxx // eg: "CatalogStandard"
	}
}
{
	configTag: "categoryTreeServiceName"
	configKey: xxx // serviceNameTag, eg: "CategoryTreeStandard"
	configValue: {
		serviceName: xxx // eg: "CategoryTreeStandard"
	}
}

Catalog

Fields

catalogId
(partition key)
searchType
product|variant|variantProduct
catalogServiceName
eg: "CatalogStandard"
categoryTreeServiceName
eg: "CategoryTreeStandard"

Notes

  • Client can pass in additional filters, these get combined into final Search Result request by Service - Category Tree (handlers).
  • Client can overwrite default searchType, if invalid gets set to categoryTreeNode default.
  • Client can add requiredData to request.
  • locationTreeAreaNodeId and browseQuantity are added by the client into additionalParams, Category Tree handler adds these to the request, or set to default if invalid.

Working documents

Catalog Manager