+ git config

This commit is contained in:
2026-02-25 20:27:29 +03:00
parent f9ac282596
commit 999c0c54df
10 changed files with 9262 additions and 1185 deletions

View File

@@ -2,12 +2,12 @@
> High-level module structure for AI Context. Generated automatically.
**Generated:** 2026-02-24T21:04:43.328895
**Generated:** 2026-02-25T20:19:23.587354
## Summary
- **Total Modules:** 74
- **Total Entities:** 1571
- **Total Modules:** 77
- **Total Entities:** 1811
## Module Hierarchy
@@ -54,9 +54,9 @@
### 📁 `routes/`
- 🏗️ **Layers:** API, UI (API)
- 📊 **Tiers:** CRITICAL: 2, STANDARD: 182, TRIVIAL: 4
- 📊 **Tiers:** CRITICAL: 2, STANDARD: 187, TRIVIAL: 5
- 📄 **Files:** 17
- 📦 **Entities:** 188
- 📦 **Entities:** 194
**Key Entities:**
@@ -92,9 +92,9 @@
### 📁 `__tests__/`
- 🏗️ **Layers:** API, Domain (Tests), UI (API Tests)
- 📊 **Tiers:** CRITICAL: 3, STANDARD: 33, TRIVIAL: 81
- 📄 **Files:** 7
- 📦 **Entities:** 117
- 📊 **Tiers:** CRITICAL: 3, STANDARD: 36, TRIVIAL: 98
- 📄 **Files:** 8
- 📦 **Entities:** 137
**Key Entities:**
@@ -126,9 +126,9 @@
### 📁 `core/`
- 🏗️ **Layers:** Core
- 📊 **Tiers:** STANDARD: 116, TRIVIAL: 7
- 📄 **Files:** 9
- 📦 **Entities:** 123
- 📊 **Tiers:** CRITICAL: 2, STANDARD: 125, TRIVIAL: 8
- 📄 **Files:** 10
- 📦 **Entities:** 135
**Key Entities:**
@@ -138,6 +138,8 @@
- Custom logging formatter that adds belief state prefixes to ...
- **ConfigManager** (Class)
- A class to handle application configuration persistence and ...
- **IdMappingService** (Class) `[CRITICAL]`
- Service handling the cataloging and retrieval of remote Supe...
- **LogEntry** (Class)
- A Pydantic model representing a single, structured log entry...
- **MigrationEngine** (Class)
@@ -150,8 +152,6 @@
- Scans a specified directory for Python modules, dynamically ...
- **SchedulerService** (Class)
- Provides a service to manage scheduled backup tasks.
- **SessionLocal** (Class) `[TRIVIAL]`
- A session factory for the main mappings database.
**Dependencies:**
@@ -159,7 +159,7 @@
- 🔗 DEPENDS_ON -> ConfigModels
- 🔗 DEPENDS_ON -> PyYAML
- 🔗 DEPENDS_ON -> backend.src.core.auth.config
- 🔗 DEPENDS_ON -> backend.src.models.mapping
- 🔗 DEPENDS_ON -> backend.src.core.logger
### 📁 `auth/`
@@ -210,9 +210,9 @@
### 📁 `__tests__/`
- 🏗️ **Layers:** Infra
- 📊 **Tiers:** STANDARD: 9
- 📊 **Tiers:** STANDARD: 11, TRIVIAL: 1
- 📄 **Files:** 1
- 📦 **Entities:** 9
- 📦 **Entities:** 12
**Key Entities:**
@@ -296,9 +296,9 @@
### 📁 `models/`
- 🏗️ **Layers:** Domain, Model
- 📊 **Tiers:** CRITICAL: 9, STANDARD: 21, TRIVIAL: 21
- 📊 **Tiers:** CRITICAL: 9, STANDARD: 22, TRIVIAL: 22
- 📄 **Files:** 11
- 📦 **Entities:** 51
- 📦 **Entities:** 53
**Key Entities:**
@@ -334,14 +334,16 @@
### 📁 `__tests__/`
- 🏗️ **Layers:** Domain
- 📊 **Tiers:** STANDARD: 1, TRIVIAL: 1
- 📄 **Files:** 1
- 📦 **Entities:** 2
- 📊 **Tiers:** CRITICAL: 1, STANDARD: 1, TRIVIAL: 27
- 📄 **Files:** 2
- 📦 **Entities:** 29
**Key Entities:**
- 📦 **test_models** (Module) `[TRIVIAL]`
- Unit tests for data models
- 📦 **test_report_models** (Module) `[CRITICAL]`
- Unit tests for report Pydantic models and their validators
### 📁 `plugins/`
@@ -483,9 +485,9 @@
### 📁 `scripts/`
- 🏗️ **Layers:** Scripts, Unknown
- 📊 **Tiers:** STANDARD: 17, TRIVIAL: 2
- 📄 **Files:** 5
- 📦 **Entities:** 19
- 📊 **Tiers:** STANDARD: 26, TRIVIAL: 2
- 📄 **Files:** 6
- 📦 **Entities:** 28
**Key Entities:**
@@ -497,6 +499,8 @@
- Migrates legacy config and task history from SQLite/file sto...
- 📦 **backend.src.scripts.seed_permissions** (Module)
- Populates the auth database with initial system permissions.
- 📦 **backend.src.scripts.seed_superset_load_test** (Module)
- Creates randomized load-test data in Superset by cloning cha...
- 📦 **test_dataset_dashboard_relations** (Module) `[TRIVIAL]`
- Auto-generated module for backend/src/scripts/test_dataset_d...
@@ -540,17 +544,21 @@
### 📁 `__tests__/`
- 🏗️ **Layers:** Domain Tests, Service
- 📊 **Tiers:** STANDARD: 14
- 📄 **Files:** 2
- 📦 **Entities:** 14
- 🏗️ **Layers:** Domain, Domain Tests, Service
- 📊 **Tiers:** CRITICAL: 1, STANDARD: 21, TRIVIAL: 7
- 📄 **Files:** 3
- 📦 **Entities:** 29
**Key Entities:**
- **TestEncryptionManager** (Class)
- Validate EncryptionManager encrypt/decrypt roundtrip, unique...
- 📦 **backend.src.services.__tests__.test_llm_prompt_templates** (Module)
- Validate normalization and rendering behavior for configurab...
- 📦 **backend.src.services.__tests__.test_resource_service** (Module)
- Unit tests for ResourceService
- 📦 **test_encryption_manager** (Module) `[CRITICAL]`
- Unit tests for EncryptionManager encrypt/decrypt functionali...
**Dependencies:**
@@ -584,41 +592,63 @@
### 📁 `__tests__/`
- 🏗️ **Layers:** Domain (Tests)
- 📊 **Tiers:** CRITICAL: 1, TRIVIAL: 2
- 📄 **Files:** 1
- 📦 **Entities:** 3
- 🏗️ **Layers:** Domain, Domain (Tests)
- 📊 **Tiers:** CRITICAL: 2, TRIVIAL: 19
- 📄 **Files:** 2
- 📦 **Entities:** 21
**Key Entities:**
- 📦 **backend.tests.test_report_normalizer** (Module) `[CRITICAL]`
- Validate unknown task type fallback and partial payload norm...
- 📦 **test_report_service** (Module) `[CRITICAL]`
- Unit tests for ReportsService list/detail operations
### 📁 `tests/`
- 🏗️ **Layers:** Domain (Tests), Test, Unknown
- 📊 **Tiers:** STANDARD: 54, TRIVIAL: 19
- 📄 **Files:** 7
- 📦 **Entities:** 73
- 🏗️ **Layers:** Core, Domain (Tests), Test, Unknown
- 📊 **Tiers:** CRITICAL: 6, STANDARD: 80, TRIVIAL: 57
- 📄 **Files:** 10
- 📦 **Entities:** 143
**Key Entities:**
- **TestLogPersistence** (Class)
- **TestLogPersistence** (Class) `[CRITICAL]`
- Test suite for TaskLogPersistenceService.
- **TestTaskContext** (Class)
- Test suite for TaskContext.
- **TestTaskLogger** (Class)
- Test suite for TaskLogger.
- **TestTaskPersistenceHelpers** (Class) `[CRITICAL]`
- Test suite for TaskPersistenceService static helper methods.
- **TestTaskPersistenceService** (Class) `[CRITICAL]`
- Test suite for TaskPersistenceService CRUD operations.
- 📦 **backend.tests.test_dashboards_api** (Module)
- Contract-driven tests for Dashboard Hub API
- 📦 **test_auth** (Module) `[TRIVIAL]`
- Auto-generated module for backend/tests/test_auth.py
- 📦 **test_log_persistence** (Module)
- 📦 **test_log_persistence** (Module) `[CRITICAL]`
- Unit tests for TaskLogPersistenceService.
- 📦 **test_resource_hubs** (Module) `[TRIVIAL]`
- Auto-generated module for backend/tests/test_resource_hubs.p...
- 📦 **test_task_logger** (Module)
- Unit tests for TaskLogger and TaskContext.
- 📦 **test_smoke_plugins** (Module) `[TRIVIAL]`
- Auto-generated module for backend/tests/test_smoke_plugins.p...
### 📁 `core/`
- 🏗️ **Layers:** Domain, Unknown
- 📊 **Tiers:** STANDARD: 2, TRIVIAL: 31
- 📄 **Files:** 3
- 📦 **Entities:** 33
**Key Entities:**
- 📦 **backend.tests.core.test_mapping_service** (Module)
- Unit tests for the IdMappingService matching UUIDs to intege...
- 📦 **backend.tests.core.test_migration_engine** (Module)
- Unit tests for MigrationEngine's cross-filter patching algor...
- 📦 **test_defensive_guards** (Module) `[TRIVIAL]`
- Auto-generated module for backend/tests/core/test_defensive_...
### 📁 `components/`
@@ -650,6 +680,18 @@
- 🧩 **TaskList** (Component)
- Displays a list of tasks with their status and execution det...
### 📁 `__tests__/`
- 🏗️ **Layers:** UI (Tests)
- 📊 **Tiers:** CRITICAL: 1
- 📄 **Files:** 1
- 📦 **Entities:** 1
**Key Entities:**
- 📦 **frontend.src.components.__tests__.task_log_viewer** (Module) `[CRITICAL]`
- Unit tests for TaskLogViewer component by mounting it and ob...
### 📁 `auth/`
- 🏗️ **Layers:** Component
@@ -811,6 +853,24 @@
- 🔗 DEPENDS_ON -> [DEF:api_module]
- 🔗 DEPENDS_ON -> frontend.src.lib.api.api_module
### 📁 `__tests__/`
- 🏗️ **Layers:** Infra (Tests)
- 📊 **Tiers:** CRITICAL: 1, STANDARD: 3
- 📄 **Files:** 1
- 📦 **Entities:** 4
**Key Entities:**
- **TestBuildReportQueryString** (Class)
- Validate query string construction from filter options.
- **TestGetReportsAsync** (Class)
- Validate getReports and getReportDetail with mocked api.fetc...
- **TestNormalizeApiError** (Class)
- Validate error normalization for UI-state mapping.
- 📦 **frontend.src.lib.api.__tests__.reports_api** (Module) `[CRITICAL]`
- Unit tests for reports API client functions: query string bu...
### 📁 `auth/`
- 🏗️ **Layers:** Feature
@@ -1027,9 +1087,15 @@
### 📁 `mocks/`
- 📊 **Tiers:** STANDARD: 3
- 📄 **Files:** 3
- 📦 **Entities:** 3
- 🏗️ **Layers:** UI (Tests)
- 📊 **Tiers:** STANDARD: 4
- 📄 **Files:** 4
- 📦 **Entities:** 4
**Key Entities:**
- 📦 **mock_env_public** (Module)
- Mock for $env/static/public SvelteKit module in vitest
### 📁 `ui/`
@@ -1148,9 +1214,9 @@
### 📁 `dashboards/`
- 🏗️ **Layers:** UI, Unknown
- 📊 **Tiers:** CRITICAL: 1, TRIVIAL: 27
- 📊 **Tiers:** CRITICAL: 1, TRIVIAL: 37
- 📄 **Files:** 1
- 📦 **Entities:** 28
- 📦 **Entities:** 38
**Key Entities:**
@@ -1259,9 +1325,9 @@
### 📁 `settings/`
- 🏗️ **Layers:** UI, Unknown
- 📊 **Tiers:** CRITICAL: 1, STANDARD: 1, TRIVIAL: 14
- 📊 **Tiers:** CRITICAL: 1, STANDARD: 1, TRIVIAL: 23
- 📄 **Files:** 2
- 📦 **Entities:** 16
- 📦 **Entities:** 25
**Key Entities:**
@@ -1445,10 +1511,13 @@ graph TD
__tests__-->|TESTS|backend
__tests__-->|DEPENDS_ON|backend
__tests__-->|DEPENDS_ON|backend
__tests__-->|VERIFIES|backend
core-->|USES|backend
core-->|USES|backend
core-->|DEPENDS_ON|backend
core-->|DEPENDS_ON|backend
core-->|DEPENDS_ON|backend
core-->|DEPENDS_ON|backend
auth-->|USES|backend
auth-->|USES|backend
auth-->|USES|backend
@@ -1461,9 +1530,12 @@ graph TD
models-->|DEPENDS_ON|backend
models-->|USED_BY|backend
models-->|INHERITS_FROM|backend
__tests__-->|TESTS|backend
llm_analysis-->|IMPLEMENTS|backend
llm_analysis-->|IMPLEMENTS|backend
storage-->|DEPENDS_ON|backend
scripts-->|USES|backend
scripts-->|USES|backend
scripts-->|READS_FROM|backend
scripts-->|READS_FROM|backend
scripts-->|USES|backend
@@ -1483,6 +1555,7 @@ graph TD
services-->|USES|backend
services-->|DEPENDS_ON|backend
services-->|DEPENDS_ON|backend
__tests__-->|TESTS|backend
__tests__-->|DEPENDS_ON|backend
__tests__-->|TESTS|backend
reports-->|DEPENDS_ON|backend
@@ -1493,7 +1566,11 @@ graph TD
reports-->|DEPENDS_ON|backend
reports-->|DEPENDS_ON|backend
__tests__-->|TESTS|backend
__tests__-->|TESTS|backend
tests-->|TESTS|backend
tests-->|TESTS|backend
core-->|VERIFIES|backend
core-->|VERIFIES|backend
__tests__-->|VERIFIES|components
__tests__-->|VERIFIES|lib
__tests__-->|VERIFIES|lib

View File

@@ -280,6 +280,9 @@
- 📝 Mock for $app/stores in tests
- 📦 **environment** (`Mock`)
- 📝 Mock for $app/environment in tests
- 📦 **mock_env_public** (`Module`)
- 📝 Mock for $env/static/public SvelteKit module in vitest
- 🏗️ Layer: UI (Tests)
- 📦 **frontend.src.lib.api.reports** (`Module`) `[CRITICAL]`
- 📝 Wrapper-based reports API client for list/detail retrieval without direct native fetch usage.
- 🏗️ Layer: Infra
@@ -308,6 +311,16 @@
- 📝 Retrieve paginated assistant conversation history.
- ƒ **getAssistantConversations** (`Function`)
- 📝 Retrieve paginated conversation list for assistant sidebar/history switcher.
- 📦 **frontend.src.lib.api.__tests__.reports_api** (`Module`) `[CRITICAL]`
- 📝 Unit tests for reports API client functions: query string building, error normalization, and fetch wrappers.
- 🏗️ Layer: Infra (Tests)
- 🔒 Invariant: Pure functions produce deterministic output. Async wrappers propagate structured errors.
- **TestBuildReportQueryString** (`Class`)
- 📝 Validate query string construction from filter options.
- **TestNormalizeApiError** (`Class`)
- 📝 Validate error normalization for UI-state mapping.
- **TestGetReportsAsync** (`Class`)
- 📝 Validate getReports and getReportDetail with mocked api.fetchApi.
- 🧩 **Select** (`Component`) `[TRIVIAL]`
- 📝 Standardized dropdown selection component.
- 🏗️ Layer: Atom
@@ -696,7 +709,8 @@
- 🏗️ Layer: UI
- 🔒 Invariant: Shows both local login form and ADFS SSO button.
- ⬅️ READS_FROM `app`
- ⬅️ READS_FROM `auth`
- ⬅️ READS_FROM `lib`
- ➡️ WRITES_TO `t`
- ƒ **handleLogin** (`Function`)
- 📝 Submits the local login form to the backend.
- ƒ **handleADFSLogin** (`Function`)
@@ -765,6 +779,26 @@
- 📝 Auto-detected function (orphan)
- ƒ **getStatusBadgeClass** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **isGitBusy** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **setGitBusy** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **ensureGitConfigs** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **updateDashboardGitState** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **refreshDashboardGitState** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **handleGitInit** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **handleGitSync** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **handleGitCommit** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **handleGitPull** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **handleGitPush** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **getTaskStatusIcon** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **getPaginationRange** (`Function`) `[TRIVIAL]`
@@ -789,8 +823,8 @@
- 🏗️ Layer: Domain
- 🔒 Invariant: Only accessible by users with Admin role.
- ⬅️ READS_FROM `lib`
- ⬅️ READS_FROM `t`
- ➡️ WRITES_TO `t`
- ⬅️ READS_FROM `t`
- ƒ **loadData** (`Function`)
- 📝 Fetches roles and available permissions.
- ƒ **openCreateModal** (`Function`)
@@ -806,8 +840,8 @@
- 🏗️ Layer: Feature
- 🔒 Invariant: Only accessible by users with "admin:users" permission.
- ⬅️ READS_FROM `lib`
- ⬅️ READS_FROM `t`
- ➡️ WRITES_TO `t`
- ⬅️ READS_FROM `t`
- ƒ **loadData** (`Function`)
- 📝 Fetches users and roles from the backend.
- ƒ **openCreateModal** (`Function`)
@@ -905,10 +939,12 @@
- 📝 Page for the dataset column mapper tool.
- 🏗️ Layer: UI
- ⬅️ READS_FROM `lib`
- ➡️ WRITES_TO `t`
- 🧩 **DebugPage** (`Component`) `[TRIVIAL]`
- 📝 Page for system diagnostics and debugging.
- 🏗️ Layer: UI
- ⬅️ READS_FROM `lib`
- ➡️ WRITES_TO `t`
- 📦 **SettingsPage** (`Page`) `[CRITICAL]`
- 📝 Consolidated Settings Page - All settings in one place with tabbed navigation
- 🏗️ Layer: UI
@@ -916,6 +952,12 @@
- 📦 **+page** (`Module`) `[TRIVIAL]`
- 📝 Auto-generated module for frontend/src/routes/settings/+page.svelte
- 🏗️ Layer: Unknown
- ƒ **normalizeTab** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **readTabFromUrl** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **writeTabToUrl** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **loadSettings** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **normalizeLlmSettings** (`Function`) `[TRIVIAL]`
@@ -928,7 +970,19 @@
- 📝 Auto-detected function (orphan)
- ƒ **handleTabChange** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **getTabClass** (`Function`) `[TRIVIAL]`
- ƒ **loadMigrationSettings** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **loadMappingsPage** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **onMappingsSearchInput** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **onMappingsFilterChange** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **goToMappingsPage** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **saveMigrationSettings** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **triggerSyncNow** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **handleSave** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
@@ -947,6 +1001,8 @@
- 🧩 **ConnectionsSettingsPage** (`Component`)
- 📝 Page for managing database connection configurations.
- 🏗️ Layer: UI
- ⬅️ READS_FROM `lib`
- ➡️ WRITES_TO `t`
- ƒ **handleSuccess** (`Function`)
- 📝 Refreshes the connection list after a successful creation.
- 🧩 **GitSettingsPage** (`Component`)
@@ -954,6 +1010,8 @@
- 🏗️ Layer: Page
- 🔒 Invariant: All configurations must be validated via connection test.
- ⬅️ READS_FROM `lib`
- ⬅️ READS_FROM `t`
- ➡️ WRITES_TO `t`
- ƒ **loadConfigs** (`Function`)
- 📝 Fetches existing git configurations.
- ƒ **handleTest** (`Function`)
@@ -983,6 +1041,8 @@
- 📝 The main settings page for the application, allowing management of environments and global settings.
- 🏗️ Layer: UI
- 🔒 Invariant: Settings changes must be saved to the backend.
- ⬅️ READS_FROM `t`
- ➡️ WRITES_TO `t`
- ƒ **loadSettings** (`Function`)
- 📝 Loads settings from the backend.
- ƒ **handleSaveGlobal** (`Function`)
@@ -1084,7 +1144,9 @@
- 🏗️ Layer: Feature
- 🔒 Invariant: Each source database can be mapped to one target database.
- ⚡ Events: update
- ⬅️ READS_FROM `lib`
- ➡️ WRITES_TO `props`
- ➡️ WRITES_TO `t`
- ƒ **updateMapping** (`Function`)
- 📝 Updates a mapping for a specific source database.
- ƒ **getSuggestion** (`Function`)
@@ -1161,6 +1223,7 @@
- 🏗️ Layer: UI
- ⬅️ READS_FROM `selectedTask`
- ➡️ WRITES_TO `selectedTask`
- ⬅️ READS_FROM `t`
- ƒ **fetchTasks** (`Function`)
- 📝 Fetches the list of recent tasks from the API.
- ƒ **clearTasks** (`Function`)
@@ -1180,9 +1243,9 @@
- 🧩 **TaskRunner** (`Component`)
- 📝 Connects to a WebSocket to display real-time logs for a running task with filtering support.
- 🏗️ Layer: UI
- ⬅️ READS_FROM `t`
- ⬅️ READS_FROM `selectedTask`
- ➡️ WRITES_TO `selectedTask`
- ➡️ WRITES_TO `taskLogs`
- ➡️ WRITES_TO `t`
- ƒ **connect** (`Function`)
- 📝 Establishes WebSocket connection with exponential backoff and filter parameters.
- ƒ **handleFilterChange** (`Function`)
@@ -1285,6 +1348,10 @@
- 🏗️ Layer: Unknown
- ƒ **statusColor** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **frontend.src.components.__tests__.task_log_viewer** (`Module`) `[CRITICAL]`
- 📝 Unit tests for TaskLogViewer component by mounting it and observing the DOM.
- 🏗️ Layer: UI (Tests)
- 🔒 Invariant: Duplicate logs are never appended. Polling only active for in-progress tasks.
- 🧩 **FileList** (`Component`)
- 📝 Displays a table of files with metadata and actions.
- 🏗️ Layer: UI
@@ -1538,6 +1605,26 @@
- 📝 Dependency for checking if the current user has a specific permission.
- ƒ **permission_checker** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **backend.src.scripts.seed_superset_load_test** (`Module`)
- 📝 Creates randomized load-test data in Superset by cloning chart configurations and creating dashboards in target environments.
- 🏗️ Layer: Scripts
- 🔒 Invariant: Created chart and dashboard names are globally unique for one script run.
- ƒ **_parse_args** (`Function`)
- 📝 Parses CLI arguments for load-test data generation.
- ƒ **_extract_result_payload** (`Function`)
- 📝 Normalizes Superset API payloads that may be wrapped in `result`.
- ƒ **_extract_created_id** (`Function`)
- 📝 Extracts object ID from create/update API response.
- ƒ **_generate_unique_name** (`Function`)
- 📝 Generates globally unique random names for charts/dashboards.
- ƒ **_resolve_target_envs** (`Function`)
- 📝 Resolves requested environment IDs from configuration.
- ƒ **_build_chart_template_pool** (`Function`)
- 📝 Builds a pool of source chart templates to clone in one environment.
- ƒ **seed_superset_load_data** (`Function`)
- 📝 Creates dashboards and cloned charts for load testing across target environments.
- ƒ **main** (`Function`)
- 📝 CLI entrypoint for Superset load-test data seeding.
- 📦 **test_dataset_dashboard_relations** (`Module`) `[TRIVIAL]`
- 📝 Auto-generated module for backend/src/scripts/test_dataset_dashboard_relations.py
- 🏗️ Layer: Unknown
@@ -1679,6 +1766,8 @@
- 📝 Iterates through all pages to collect all data items.
- ƒ **_validate_import_file** (`Function`)
- 📝 Validates that the file to be imported is a valid ZIP with metadata.yaml.
- ƒ **get_all_resources** (`Function`)
- 📝 Fetches all resources of a given type with id, uuid, and name columns.
- ƒ **extract_dataset_id_from_form_data** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **walk** (`Function`) `[TRIVIAL]`
@@ -1854,10 +1943,16 @@
- 🔗 DEPENDS_ON -> `PyYAML`
- **MigrationEngine** (`Class`)
- 📝 Engine for transforming Superset export ZIPs.
- ƒ **__init__** (`Function`)
- 📝 Initializes the migration engine with optional ID mapping service.
- ƒ **transform_zip** (`Function`)
- 📝 Extracts ZIP, replaces database UUIDs in YAMLs, and re-packages.
- 📝 Extracts ZIP, replaces database UUIDs in YAMLs, patches cross-filters, and re-packages.
- ƒ **_transform_yaml** (`Function`)
- 📝 Replaces database_uuid in a single YAML file.
- ƒ **_extract_chart_uuids_from_archive** (`Function`)
- 📝 Scans the unpacked ZIP to map local exported integer IDs back to their UUIDs.
- ƒ **_patch_dashboard_metadata** (`Function`)
- 📝 Replaces integer IDs in json_metadata.
- **PluginBase** (`Class`)
- 📝 Defines the abstract base class that all plugins must implement to be recognized by the system. It enforces a common structure for plugin metadata and execution.
- 🏗️ Layer: Core
@@ -1881,6 +1976,26 @@
- **PluginConfig** (`Class`)
- 📝 A Pydantic model used to represent the validated configuration and metadata of a loaded plugin. This object is what gets exposed to the API layer.
- 🏗️ Layer: Core
- 📦 **backend.src.core.mapping_service** (`Module`) `[CRITICAL]`
- 📝 Service for tracking and synchronizing Superset Resource IDs (UUID <-> Integer ID)
- 🏗️ Layer: Core
- 🔒 Invariant: sync_environment must handle remote API failures gracefully.
- 🔗 DEPENDS_ON -> `backend.src.models.mapping (ResourceMapping, ResourceType)`
- 🔗 DEPENDS_ON -> `backend.src.core.logger`
- **IdMappingService** (`Class`) `[CRITICAL]`
- 📝 Service handling the cataloging and retrieval of remote Superset Integer IDs.
- ƒ **__init__** (`Function`)
- 📝 Initializes the mapping service.
- ƒ **start_scheduler** (`Function`)
- 📝 Starts the background scheduler with a given cron string.
- ƒ **sync_environment** (`Function`)
- 📝 Fully synchronizes mapping for a specific environment.
- ƒ **get_remote_id** (`Function`)
- 📝 Retrieves the remote integer ID for a given universal UUID.
- ƒ **get_remote_ids_batch** (`Function`)
- 📝 Retrieves remote integer IDs for a list of universal UUIDs efficiently.
- ƒ **sync_all** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **backend.src.core.auth.config** (`Module`)
- 📝 Centralized configuration for authentication and authorization.
- 🏗️ Layer: Core
@@ -2108,6 +2223,12 @@
- 📝 Test that configure_logger updates task_log_level.
- ƒ **test_enable_belief_state_flag** (`Function`)
- 📝 Test that enable_belief_state flag controls belief_scope logging.
- ƒ **test_belief_scope_missing_anchor** (`Function`)
- 📝 Test @PRE condition: anchor_id must be provided
- ƒ **test_configure_logger_post_conditions** (`Function`)
- 📝 Test @POST condition: Logger level, handlers, belief state flag, and task log level are updated.
- ƒ **reset_logger_state** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **TaskLoggerModule** (`Module`) `[CRITICAL]`
- 📝 Provides a dedicated logger for tasks with automatic source attribution.
- 🏗️ Layer: Core
@@ -2429,6 +2550,14 @@
- 📝 Fetch all dashboards from the specified environment for the grid.
- ƒ **execute_migration** (`Function`)
- 📝 Execute the migration of selected dashboards.
- ƒ **get_migration_settings** (`Function`)
- 📝 Get current migration Cron string explicitly.
- ƒ **update_migration_settings** (`Function`)
- 📝 Update migration Cron string.
- ƒ **get_resource_mappings** (`Function`)
- 📝 Fetch synchronized object mappings with search, filtering, and pagination.
- ƒ **trigger_sync_now** (`Function`)
- 📝 Triggers an immediate ID synchronization for all environments.
- 📦 **PluginsRouter** (`Module`)
- 📝 Defines the FastAPI router for plugin-related endpoints, allowing clients to list available plugins.
- 🏗️ Layer: UI (API)
@@ -2611,6 +2740,8 @@
- 📝 Build current-user tool catalog for LLM planner with operation contracts and defaults.
- ƒ **_coerce_intent_entities** (`Function`)
- 📝 Normalize intent entity value types from LLM output to route-compatible values.
- ƒ **_confirmation_summary** (`Function`)
- 📝 Build human-readable confirmation prompt for an intent before execution.
- ƒ **_clarification_text_for_intent** (`Function`)
- 📝 Convert technical missing-parameter errors into user-facing clarification prompts.
- ƒ **_plan_intent_with_llm** (`Function`)
@@ -2631,6 +2762,8 @@
- 📝 Retrieve paginated assistant conversation history for current user.
- ƒ **get_assistant_audit** (`Function`)
- 📝 Return assistant audit decisions for current user from persistent and in-memory stores.
- ƒ **_label** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **storage_routes** (`Module`)
- 📝 API endpoints for file storage management (backups and repositories).
- 🏗️ Layer: API
@@ -2702,9 +2835,14 @@
- 📦 **DashboardChartItem** (`DataClass`)
- 📦 **DashboardDatasetItem** (`DataClass`)
- 📦 **DashboardDetailResponse** (`DataClass`)
- 📦 **DatabaseMapping** (`DataClass`)
- 📦 **DatabaseMappingsResponse** (`DataClass`)
- ƒ **get_dashboards** (`Function`)
- 📝 Fetch list of dashboards from a specific environment with Git status and last task status
- 🔗 CALLS -> `ResourceService.get_dashboards_with_status`
- ƒ **get_database_mappings** (`Function`)
- 📝 Get database mapping suggestions between source and target environments
- 🔗 CALLS -> `MappingService.get_suggestions`
- ƒ **get_dashboard_detail** (`Function`)
- 📝 Fetch detailed dashboard info with related charts and datasets
- 🔗 CALLS -> `SupersetClient.get_dashboard_detail`
@@ -2719,11 +2857,6 @@
- 📝 Trigger bulk backup of dashboards with optional cron schedule
- 🔗 DISPATCHES -> `BackupPlugin`
- 🔗 CALLS -> `task_manager.create_task`
- 📦 **DatabaseMapping** (`DataClass`)
- 📦 **DatabaseMappingsResponse** (`DataClass`)
- ƒ **get_database_mappings** (`Function`)
- 📝 Get database mapping suggestions between source and target environments
- 🔗 CALLS -> `MappingService.get_suggestions`
- 📦 **backend.src.api.routes.__tests__.test_dashboards** (`Module`)
- 📝 Unit tests for Dashboards API endpoints
- 🏗️ Layer: API
@@ -2910,14 +3043,18 @@
- 📝 Task status command must surface current status text for existing task id.
- ƒ **test_status_query_without_task_id_returns_latest_user_task** (`Function`)
- 📝 Status command without explicit task_id should resolve to latest task for current user.
- ƒ **test_llm_validation_missing_dashboard_returns_needs_clarification** (`Function`)
- 📝 LLM validation command without resolvable dashboard id must request clarification instead of generic failure.
- ƒ **test_list_conversations_groups_by_conversation_and_marks_archived** (`Function`)
- 📝 Conversations endpoint must group messages and compute archived marker by inactivity threshold.
- ƒ **test_history_from_latest_returns_recent_page_first** (`Function`)
- 📝 History endpoint from_latest mode must return newest page while preserving chronological order in chunk.
- ƒ **test_list_conversations_archived_only_filters_active** (`Function`)
- 📝 archived_only mode must return only archived conversations.
- ƒ **test_llm_validation_with_dashboard_ref_requires_confirmation** (`Function`)
- 📝 LLM validation with dashboard_ref should now require confirmation before dispatch.
- ƒ **test_list_conversations_groups_by_conversation_and_marks_archived** (`Function`)
- 📝 Conversations endpoint must group messages and compute archived marker by inactivity threshold.
- ƒ **test_history_from_latest_returns_recent_page_first** (`Function`)
- 📝 History endpoint from_latest mode must return newest page while preserving chronological order in chunk.
- ƒ **test_list_conversations_archived_only_filters_active** (`Function`)
- 📝 archived_only mode must return only archived conversations.
- ƒ **test_guarded_operation_always_requires_confirmation** (`Function`)
- 📝 Non-dangerous (guarded) commands must still require confirmation before execution.
- ƒ **test_guarded_operation_confirm_roundtrip** (`Function`)
- 📝 Guarded operation must execute successfully after explicit confirmation.
- ƒ **__init__** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **__init__** (`Function`) `[TRIVIAL]`
@@ -2958,6 +3095,43 @@
- 📝 Auto-detected function (orphan)
- ƒ **rollback** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **backend.src.api.routes.__tests__.test_migration_routes** (`Module`)
- 📝 Unit tests for migration API route handlers.
- 🏗️ Layer: API
- ƒ **db_session** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **_make_config_manager** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_migration_settings_returns_default_cron** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_migration_settings_returns_fallback_when_no_cron** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_update_migration_settings_saves_cron** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_update_migration_settings_rejects_missing_cron** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_resource_mappings_returns_formatted_list** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_resource_mappings_respects_pagination** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_resource_mappings_search_by_name** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_resource_mappings_filter_by_env** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_resource_mappings_filter_by_type** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **_mock_env** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **_make_sync_config_manager** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_trigger_sync_now_creates_env_row_and_syncs** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_trigger_sync_now_rejects_empty_environments** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_trigger_sync_now_handles_partial_failure** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_trigger_sync_now_idempotent_env_upsert** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **backend.src.models.config** (`Module`)
- 📝 Defines database schema for persisted application configuration.
- 🏗️ Layer: Domain
@@ -3005,6 +3179,8 @@
- 🏗️ Layer: Domain
- 🔒 Invariant: All primary keys are UUID strings.
- 🔗 DEPENDS_ON -> `sqlalchemy`
- **ResourceType** (`Class`) `[TRIVIAL]`
- 📝 Enumeration of possible Superset resource types for ID mapping.
- **MigrationStatus** (`Class`) `[TRIVIAL]`
- 📝 Enumeration of possible migration job statuses.
- **Environment** (`Class`)
@@ -3013,6 +3189,8 @@
- 📝 Represents a mapping between source and target databases.
- **MigrationJob** (`Class`) `[TRIVIAL]`
- 📝 Represents a single migration execution job.
- **ResourceMapping** (`Class`)
- 📝 Maps a universal UUID for a resource to its actual ID on a specific environment.
- 📦 **backend.src.models.report** (`Module`) `[CRITICAL]`
- 📝 Canonical report schemas for unified task reporting across heterogeneous task types.
- 🏗️ Layer: Domain
@@ -3098,6 +3276,61 @@
- 🏗️ Layer: Domain
- ƒ **test_environment_model** (`Function`)
- 📝 Tests that Environment model correctly stores values.
- 📦 **test_report_models** (`Module`) `[CRITICAL]`
- 📝 Unit tests for report Pydantic models and their validators
- 🏗️ Layer: Domain
- ƒ **test_enum_values** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_enum_values** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_valid_creation** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_minimal_creation** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **_make_report** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_valid_creation** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_empty_report_id_raises** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_whitespace_report_id_raises** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_empty_task_id_raises** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_empty_summary_raises** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_summary_whitespace_trimmed** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_optional_fields** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_with_error_context** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_defaults** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_invalid_sort_by_raises** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_valid_sort_by_values** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_invalid_sort_order_raises** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_valid_sort_order_values** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_time_range_validation_valid** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_time_range_validation_invalid** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_page_ge_1** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_page_size_bounds** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_valid_creation** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_with_items** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_valid_creation** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_with_all_fields** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **backend.src.services.resource_service** (`Module`)
- 📝 Shared service for fetching resource data with Git status and task status
- 🏗️ Layer: Service
@@ -3253,6 +3486,38 @@
- 📝 Helper to get an initialized SupersetClient for an environment.
- ƒ **get_suggestions** (`Function`)
- 📝 Fetches databases from both environments and returns fuzzy matching suggestions.
- 📦 **test_encryption_manager** (`Module`) `[CRITICAL]`
- 📝 Unit tests for EncryptionManager encrypt/decrypt functionality.
- 🏗️ Layer: Domain
- 🔒 Invariant: Encrypt+decrypt roundtrip always returns original plaintext.
- **TestEncryptionManager** (`Class`)
- 📝 Validate EncryptionManager encrypt/decrypt roundtrip, uniqueness, and error handling.
- ƒ **test_encrypt_decrypt_roundtrip** (`Function`)
- 📝 Encrypt then decrypt returns original plaintext.
- ƒ **test_encrypt_produces_different_output** (`Function`)
- 📝 Same plaintext produces different ciphertext (Fernet uses random IV).
- ƒ **test_different_inputs_yield_different_ciphertext** (`Function`)
- 📝 Different inputs produce different ciphertexts.
- ƒ **test_decrypt_invalid_data_raises** (`Function`)
- 📝 Decrypting invalid data raises InvalidToken.
- ƒ **test_encrypt_empty_string** (`Function`)
- 📝 Encrypting and decrypting an empty string works.
- ƒ **test_custom_key_roundtrip** (`Function`)
- 📝 Custom Fernet key produces valid roundtrip.
- ƒ **_make_manager** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **__init__** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **encrypt** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **decrypt** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **__init__** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **encrypt** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **decrypt** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **backend.src.services.__tests__.test_llm_prompt_templates** (`Module`)
- 📝 Validate normalization and rendering behavior for configurable LLM prompt templates.
- 🏗️ Layer: Domain Tests
@@ -3341,6 +3606,43 @@
- 📝 Return filtered, sorted, paginated report collection.
- ƒ **get_report_detail** (`Function`)
- 📝 Return one normalized report with timeline/diagnostics/next actions.
- 📦 **test_report_service** (`Module`) `[CRITICAL]`
- 📝 Unit tests for ReportsService list/detail operations
- 🏗️ Layer: Domain
- ƒ **_make_task** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **_make_service** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_empty_tasks_returns_empty_collection** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_single_task_normalized** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_pagination_first_page** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_pagination_last_page** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_filter_by_status** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_filter_by_task_type** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_search_filter** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_sort_by_status** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_applied_filters_echoed** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **_make_service** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_detail_found** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_detail_not_found** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_detail_includes_timeline** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_detail_failed_task_has_next_actions** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_detail_success_task_no_error_next_actions** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **backend.tests.test_report_normalizer** (`Module`) `[CRITICAL]`
- 📝 Validate unknown task type fallback and partial payload normalization behavior.
- 🏗️ Layer: Domain (Tests)
@@ -3633,8 +3935,139 @@
- 🏗️ Layer: Unknown
- ƒ **__init__** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **test_task_persistence** (`Module`) `[CRITICAL]`
- 📝 Unit tests for TaskPersistenceService.
- 🏗️ Layer: Test
- **TestTaskPersistenceHelpers** (`Class`) `[CRITICAL]`
- 📝 Test suite for TaskPersistenceService static helper methods.
- ƒ **test_json_load_if_needed_none** (`Function`)
- 📝 Test _json_load_if_needed with None input.
- ƒ **test_json_load_if_needed_dict** (`Function`)
- 📝 Test _json_load_if_needed with dict input.
- ƒ **test_json_load_if_needed_list** (`Function`)
- 📝 Test _json_load_if_needed with list input.
- ƒ **test_json_load_if_needed_json_string** (`Function`)
- 📝 Test _json_load_if_needed with JSON string.
- ƒ **test_json_load_if_needed_empty_string** (`Function`)
- 📝 Test _json_load_if_needed with empty/null strings.
- ƒ **test_json_load_if_needed_plain_string** (`Function`)
- 📝 Test _json_load_if_needed with non-JSON string.
- ƒ **test_json_load_if_needed_integer** (`Function`)
- 📝 Test _json_load_if_needed with integer.
- ƒ **test_parse_datetime_none** (`Function`)
- 📝 Test _parse_datetime with None.
- ƒ **test_parse_datetime_datetime_object** (`Function`)
- 📝 Test _parse_datetime with datetime object.
- ƒ **test_parse_datetime_iso_string** (`Function`)
- 📝 Test _parse_datetime with ISO string.
- ƒ **test_parse_datetime_invalid_string** (`Function`)
- 📝 Test _parse_datetime with invalid string.
- ƒ **test_parse_datetime_integer** (`Function`)
- 📝 Test _parse_datetime with non-string, non-datetime.
- **TestTaskPersistenceService** (`Class`) `[CRITICAL]`
- 📝 Test suite for TaskPersistenceService CRUD operations.
- ƒ **setup_class** (`Function`)
- 📝 Setup in-memory test database.
- ƒ **teardown_class** (`Function`)
- 📝 Dispose of test database.
- ƒ **setup_method** (`Function`)
- 📝 Clean task_records table before each test.
- ƒ **test_persist_task_new** (`Function`)
- 📝 Test persisting a new task creates a record.
- ƒ **test_persist_task_update** (`Function`)
- 📝 Test updating an existing task.
- ƒ **test_persist_task_with_logs** (`Function`)
- 📝 Test persisting a task with log entries.
- ƒ **test_persist_task_failed_extracts_error** (`Function`)
- 📝 Test that FAILED task extracts last error message.
- ƒ **test_persist_tasks_batch** (`Function`)
- 📝 Test persisting multiple tasks.
- ƒ **test_load_tasks** (`Function`)
- 📝 Test loading tasks from database.
- ƒ **test_load_tasks_with_status_filter** (`Function`)
- 📝 Test loading tasks filtered by status.
- ƒ **test_load_tasks_with_limit** (`Function`)
- 📝 Test loading tasks with limit.
- ƒ **test_delete_tasks** (`Function`)
- 📝 Test deleting tasks by ID list.
- ƒ **test_delete_tasks_empty_list** (`Function`)
- 📝 Test deleting with empty list (no-op).
- ƒ **test_persist_task_with_datetime_in_params** (`Function`)
- 📝 Test json_serializable handles datetime in params.
- ƒ **_patched** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **_make_task** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_environment_model** (`Function`)
- 📝 Tests that Environment model correctly stores values.
- 📦 **test_task_manager** (`Module`) `[CRITICAL]`
- 📝 Unit tests for TaskManager lifecycle, CRUD, log buffering, and filtering.
- 🏗️ Layer: Core
- 🔒 Invariant: TaskManager state changes are deterministic and testable with mocked dependencies.
- ƒ **_make_manager** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **_cleanup_manager** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_init_creates_empty_tasks** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_init_loads_persisted_tasks** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_init_starts_flusher_thread** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_task_returns_none_for_missing** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_task_returns_existing** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_all_tasks** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_tasks_with_status_filter** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_tasks_with_plugin_filter** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_tasks_with_pagination** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_tasks_completed_only** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_create_task_success** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_create_task_unknown_plugin_raises** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_create_task_invalid_params_raises** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_add_log_appends_to_task_and_buffer** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_add_log_skips_nonexistent_task** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_flush_logs_writes_to_persistence** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_flush_task_logs_writes_single_task** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_flush_logs_requeues_on_failure** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_clear_all_non_active** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_clear_by_status** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_clear_preserves_awaiting_input** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_subscribe_creates_queue** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_unsubscribe_removes_queue** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_multiple_subscribers** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_await_input_sets_status** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_await_input_not_running_raises** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_await_input_nonexistent_raises** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_resume_with_password** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_resume_not_awaiting_raises** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_resume_empty_passwords_raises** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **backend.tests.test_dashboards_api** (`Module`)
- 📝 Contract-driven tests for Dashboard Hub API
- 🏗️ Layer: Domain (Tests)
@@ -3714,6 +4147,13 @@
- 📝 Test sub-context logger uses new source.
- ƒ **test_multiple_sub_contexts** (`Function`)
- 📝 Test creating multiple sub-contexts.
- 📦 **test_smoke_plugins** (`Module`) `[TRIVIAL]`
- 📝 Auto-generated module for backend/tests/test_smoke_plugins.py
- 🏗️ Layer: Unknown
- ƒ **test_plugins_load_successfully** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_task_manager_initializes_with_plugins** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_belief_scope_logs_entry_action_exit_at_debug** (`Function`)
- 📝 Test that belief_scope generates [ID][Entry], [ID][Action], and [ID][Exit] logs at DEBUG level.
- ƒ **test_belief_scope_error_handling** (`Function`)
@@ -3751,23 +4191,23 @@
- 📝 Auto-detected function (orphan)
- ƒ **test_ad_group_mapping** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **test_log_persistence** (`Module`)
- 📦 **test_log_persistence** (`Module`) `[CRITICAL]`
- 📝 Unit tests for TaskLogPersistenceService.
- 🏗️ Layer: Test
- **TestLogPersistence** (`Class`)
- **TestLogPersistence** (`Class`) `[CRITICAL]`
- 📝 Test suite for TaskLogPersistenceService.
- ƒ **setup_class** (`Function`)
- 📝 Setup test database and service instance.
- ƒ **teardown_class** (`Function`)
- 📝 Clean up test database.
- ƒ **setup_method** (`Function`)
- 📝 Setup for each test method.
- ƒ **teardown_method** (`Function`)
- 📝 Cleanup after each test method.
- ƒ **test_add_log_single** (`Function`)
- 📝 Setup for each test method — clean task_logs table.
- ƒ **test_add_logs_single** (`Function`)
- 📝 Test adding a single log entry.
- ƒ **test_add_log_batch** (`Function`)
- ƒ **test_add_logs_batch** (`Function`)
- 📝 Test adding multiple log entries in batch.
- ƒ **test_add_logs_empty** (`Function`)
- 📝 Test adding empty log list (should be no-op).
- ƒ **test_get_logs_by_task_id** (`Function`)
- 📝 Test retrieving logs by task ID.
- ƒ **test_get_logs_with_filters** (`Function`)
@@ -3778,7 +4218,82 @@
- 📝 Test retrieving logs with search query.
- ƒ **test_get_log_stats** (`Function`)
- 📝 Test retrieving log statistics.
- ƒ **test_get_log_sources** (`Function`)
- ƒ **test_get_sources** (`Function`)
- 📝 Test retrieving unique log sources.
- ƒ **test_delete_logs_by_task_id** (`Function`)
- ƒ **test_delete_logs_for_task** (`Function`)
- 📝 Test deleting logs by task ID.
- ƒ **test_delete_logs_for_tasks** (`Function`)
- 📝 Test deleting logs for multiple tasks.
- ƒ **test_delete_logs_for_tasks_empty** (`Function`)
- 📝 Test deleting with empty list (no-op).
- ƒ **_patched** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **backend.tests.core.test_mapping_service** (`Module`)
- 📝 Unit tests for the IdMappingService matching UUIDs to integer IDs.
- 🏗️ Layer: Domain
- ƒ **db_session** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **__init__** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **get_all_resources** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_sync_environment_upserts_correctly** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_remote_id_returns_integer** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_remote_ids_batch_returns_dict** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_sync_environment_updates_existing_mapping** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_sync_environment_skips_resources_without_uuid** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_sync_environment_handles_api_error_gracefully** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **get_all_resources** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_remote_id_returns_none_for_missing** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_get_remote_ids_batch_returns_empty_for_empty_input** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_mapping_service_alignment_with_test_data** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_sync_environment_requires_existing_env** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_sync_environment_deletes_stale_mappings** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **test_defensive_guards** (`Module`) `[TRIVIAL]`
- 📝 Auto-generated module for backend/tests/core/test_defensive_guards.py
- 🏗️ Layer: Unknown
- ƒ **test_git_service_get_repo_path_guard** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_superset_client_import_dashboard_guard** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- 📦 **backend.tests.core.test_migration_engine** (`Module`)
- 📝 Unit tests for MigrationEngine's cross-filter patching algorithms.
- 🏗️ Layer: Domain
- ƒ **__init__** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **get_remote_ids_batch** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **_write_dashboard_yaml** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_patch_dashboard_metadata_replaces_chart_ids** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_patch_dashboard_metadata_replaces_dataset_ids** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_patch_dashboard_metadata_skips_when_no_metadata** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_patch_dashboard_metadata_handles_missing_targets** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_extract_chart_uuids_from_archive** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_transform_yaml_replaces_database_uuid** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_transform_yaml_ignores_unmapped_uuid** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_transform_zip_end_to_end** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_transform_zip_invalid_path** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)
- ƒ **test_transform_yaml_nonexistent_file** (`Function`) `[TRIVIAL]`
- 📝 Auto-detected function (orphan)