diff --git a/.kilocode/rules/specify-rules.md b/.kilocode/rules/specify-rules.md index 0dfa8b4..7b8d44c 100644 --- a/.kilocode/rules/specify-rules.md +++ b/.kilocode/rules/specify-rules.md @@ -32,6 +32,7 @@ Python 3.9+ (Backend), Node.js 18+ (Frontend Build): Follow standard conventions - 006-configurable-belief-logs: Added Python 3.9+ + FastAPI (Backend), Pydantic (Config), Svelte (Frontend) - 005-fix-ui-ws-validation: Added Python 3.9+ (Backend), Node.js 18+ (Frontend Build) - 005-fix-ui-ws-validation: Added Python 3.9+, Node.js 18+ + FastAPI, SvelteKit, Tailwind CSS, Pydantic +- 005-fix-ui-ws-validation: Added Python 3.9+, Node.js 18+ + FastAPI, SvelteKit, Tailwind CSS, Pydantic diff --git a/backend/src/api/routes/environments.py b/backend/src/api/routes/environments.py index 639fb31..3f7ff36 100644 --- a/backend/src/api/routes/environments.py +++ b/backend/src/api/routes/environments.py @@ -15,7 +15,6 @@ from backend.src.dependencies import get_config_manager from backend.src.core.superset_client import SupersetClient from superset_tool.models import SupersetConfig from pydantic import BaseModel -from backend.src.core.logger import logger # [/SECTION] router = APIRouter(prefix="/api/environments", tags=["environments"]) @@ -39,9 +38,7 @@ class DatabaseResponse(BaseModel): # @RETURN: List[EnvironmentResponse] @router.get("", response_model=List[EnvironmentResponse]) async def get_environments(config_manager=Depends(get_config_manager)): - logger.info(f"[get_environments][Debug] Config path: {config_manager.config_path}") envs = config_manager.get_environments() - logger.info(f"[get_environments][Debug] Found {len(envs)} environments") return [EnvironmentResponse(id=e.id, name=e.name, url=e.url) for e in envs] # [/DEF:get_environments] diff --git a/backend/src/core/superset_client.py b/backend/src/core/superset_client.py index 1b988d3..0f3be94 100644 --- a/backend/src/core/superset_client.py +++ b/backend/src/core/superset_client.py @@ -11,19 +11,12 @@ from typing import List, Dict, Optional, Tuple from superset_tool.client import SupersetClient as BaseSupersetClient from superset_tool.models import SupersetConfig -from backend.src.core.logger import logger -from superset_tool.utils.logger import SupersetLogger # [/SECTION] # [DEF:SupersetClient:Class] # @PURPOSE: Extended SupersetClient for migration-specific operations. class SupersetClient(BaseSupersetClient): - def __init__(self, config: SupersetConfig): - # Initialize with the application's logger wrapped in SupersetLogger - # to ensure BeliefFormatter is used. - sl_logger = SupersetLogger(logger=logger) - super().__init__(config=config, logger=sl_logger) - + # [DEF:SupersetClient.get_databases_summary:Function] # @PURPOSE: Fetch a summary of databases including uuid, name, and engine. # @POST: Returns a list of database dictionaries with 'engine' field. diff --git a/frontend/src/routes/migration/+page.svelte b/frontend/src/routes/migration/+page.svelte index 5e0f27d..86d5ae9 100644 --- a/frontend/src/routes/migration/+page.svelte +++ b/frontend/src/routes/migration/+page.svelte @@ -103,25 +103,16 @@

Regular expression to filter dashboards to migrate.

-
-
- - -
- - - Manage Mappings → - +
+ +