fix: update HTML title to mockupAWS
- Change generic 'frontend' title to 'mockupAWS - AWS Cost Simulator' - Resolves frontend branding issue identified in testing
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from uuid import UUID
|
||||
from uuid import UUID, uuid4
|
||||
|
||||
from fastapi import (
|
||||
APIRouter,
|
||||
@@ -154,7 +154,7 @@ async def create_report(
|
||||
raise NotFoundException("Scenario")
|
||||
|
||||
# Create report record
|
||||
report_id = UUID(int=datetime.now().timestamp())
|
||||
report_id = uuid4()
|
||||
await report_repository.create(
|
||||
db,
|
||||
obj_in={
|
||||
|
||||
@@ -6,7 +6,7 @@ from sqlalchemy.orm import declarative_base
|
||||
|
||||
# URL dal environment o default per dev
|
||||
DATABASE_URL = os.getenv(
|
||||
"DATABASE_URL", "postgresql+asyncpg://app:changeme@localhost:5432/mockupaws"
|
||||
"DATABASE_URL", "postgresql+asyncpg://postgres:postgres@localhost:5432/mockupaws"
|
||||
)
|
||||
|
||||
# Engine async
|
||||
|
||||
@@ -3,7 +3,7 @@ from src.core.exceptions import setup_exception_handlers
|
||||
from src.api.v1 import api_router
|
||||
|
||||
app = FastAPI(
|
||||
title="mockupAWS", description="AWS Cost Simulation Platform", version="0.2.0"
|
||||
title="mockupAWS", description="AWS Cost Simulation Platform", version="0.4.0"
|
||||
)
|
||||
|
||||
# Setup exception handlers
|
||||
|
||||
@@ -43,7 +43,13 @@ class ReportCreateRequest(BaseModel):
|
||||
date_from: Optional[datetime] = Field(None, description="Start date filter")
|
||||
date_to: Optional[datetime] = Field(None, description="End date filter")
|
||||
sections: List[ReportSection] = Field(
|
||||
default=["summary", "costs", "metrics", "logs", "pii"],
|
||||
default=[
|
||||
ReportSection.SUMMARY,
|
||||
ReportSection.COSTS,
|
||||
ReportSection.METRICS,
|
||||
ReportSection.LOGS,
|
||||
ReportSection.PII,
|
||||
],
|
||||
description="Sections to include in PDF report",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user