Improve the frontend
This commit is contained in:
@@ -45,7 +45,7 @@ class CloneOrchestrator:
|
||||
name="inventory",
|
||||
url=os.getenv("INVENTORY_SERVICE_URL", "http://inventory-service:8000"),
|
||||
required=False, # Optional - provides ingredients/recipes
|
||||
timeout=5.0 # Reduced from 10s - optimized data volume
|
||||
timeout=30.0 # Increased for inventory data cloning
|
||||
),
|
||||
ServiceDefinition(
|
||||
name="recipes",
|
||||
@@ -63,7 +63,7 @@ class CloneOrchestrator:
|
||||
name="sales",
|
||||
url=os.getenv("SALES_SERVICE_URL", "http://sales-service:8000"),
|
||||
required=False, # Optional - provides sales history
|
||||
timeout=5.0 # Reduced from 10s - optimized to 30 days history
|
||||
timeout=30.0 # Increased for sales data cloning
|
||||
),
|
||||
ServiceDefinition(
|
||||
name="orders",
|
||||
@@ -83,6 +83,12 @@ class CloneOrchestrator:
|
||||
required=False, # Optional - provides historical forecasts
|
||||
timeout=15.0
|
||||
),
|
||||
ServiceDefinition(
|
||||
name="pos",
|
||||
url=os.getenv("POS_SERVICE_URL", "http://pos-service:8000"),
|
||||
required=False, # Optional - provides POS configurations
|
||||
timeout=30.0 # Increased for POS configurations cloning
|
||||
),
|
||||
]
|
||||
|
||||
async def clone_all_services(
|
||||
|
||||
@@ -246,7 +246,7 @@ class DemoDataCloner:
|
||||
"orders": settings.ORDERS_SERVICE_URL,
|
||||
"production": settings.PRODUCTION_SERVICE_URL,
|
||||
"suppliers": settings.SUPPLIERS_SERVICE_URL,
|
||||
"pos": settings.SALES_SERVICE_URL,
|
||||
"pos": settings.POS_SERVICE_URL,
|
||||
}
|
||||
return url_map.get(service_name, "")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user