# Project Semantic Map > Compressed view for AI Context. Generated automatically. - πŸ“¦ **backend.src.services.reports.report_service** (`Module`) `[CRITICAL]` - πŸ“ Aggregate, normalize, filter, and paginate task reports for unified list/detail API use cases. - πŸ—οΈ Layer: Domain - πŸ”’ Invariant: List responses are deterministic and include applied filter echo metadata. - πŸ”— DEPENDS_ON -> `backend.src.core.task_manager.manager.TaskManager` - πŸ”— DEPENDS_ON -> `backend.src.models.report` - πŸ”— DEPENDS_ON -> `backend.src.services.reports.normalizer` - β„‚ **ReportsService** (`Class`) `[CRITICAL]` - πŸ“ Service layer for list/detail report retrieval and normalization. - πŸ”’ Invariant: Service methods are read-only over task history source. - Ζ’ **__init__** (`Function`) `[CRITICAL]` - πŸ“ Initialize service with TaskManager dependency. - πŸ”’ Invariant: Constructor performs no task mutations. - Ζ’ **_load_normalized_reports** (`Function`) - πŸ“ Build normalized reports from all available tasks. - πŸ”’ Invariant: Every returned item is a TaskReport. - Ζ’ **_to_utc_datetime** (`Function`) - πŸ“ Normalize naive/aware datetime values to UTC-aware datetime for safe comparisons. - πŸ”’ Invariant: Naive datetimes are interpreted as UTC to preserve deterministic ordering/filtering. - Ζ’ **_datetime_sort_key** (`Function`) - πŸ“ Produce stable numeric sort key for report timestamps. - πŸ”’ Invariant: Mixed naive/aware datetimes never raise TypeError. - Ζ’ **_matches_query** (`Function`) - πŸ“ Apply query filtering to a report. - πŸ”’ Invariant: Filter evaluation is side-effect free. - Ζ’ **_sort_reports** (`Function`) - πŸ“ Sort reports deterministically according to query settings. - πŸ”’ Invariant: Sorting criteria are deterministic for equal input. - Ζ’ **list_reports** (`Function`) - πŸ“ Return filtered, sorted, paginated report collection. - Ζ’ **get_report_detail** (`Function`) - πŸ“ Return one normalized report with timeline/diagnostics/next actions. - Ζ’ **print_entity** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **test_analyze** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for test_analyze.py - πŸ—οΈ Layer: Unknown - Ζ’ **print_issues** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **generate_semantic_map** (`Module`) - πŸ“ Scans the codebase to generate a Semantic Map, Module Map, and Compliance Report based on the System Standard. - πŸ—οΈ Layer: DevOps/Tooling - πŸ”’ Invariant: All DEF anchors must have matching closing anchors; TIER determines validation strictness. - Ζ’ **__init__** (`Function`) `[TRIVIAL]` - πŸ“ Mock init for self-containment. - Ζ’ **__enter__** (`Function`) `[TRIVIAL]` - πŸ“ Mock enter. - Ζ’ **__exit__** (`Function`) `[TRIVIAL]` - πŸ“ Mock exit. - β„‚ **Tier** (`Class`) `[TRIVIAL]` - πŸ“ Enumeration of semantic tiers defining validation strictness. - β„‚ **Severity** (`Class`) `[TRIVIAL]` - πŸ“ Severity levels for compliance issues. - β„‚ **ComplianceIssue** (`Class`) `[TRIVIAL]` - πŸ“ Represents a single compliance issue with severity. - β„‚ **SemanticEntity** (`Class`) `[CRITICAL]` - πŸ“ Represents a code entity (Module, Function, Component) found during parsing. - πŸ”’ Invariant: start_line is always set; end_line is set upon closure; tier defaults to STANDARD. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes a new SemanticEntity instance. - Ζ’ **get_tier** (`Function`) - πŸ“ Returns the tier of the entity, defaulting to STANDARD. - Ζ’ **to_dict** (`Function`) - πŸ“ Serializes the entity to a dictionary for JSON output. - Ζ’ **validate** (`Function`) `[CRITICAL]` - πŸ“ Checks for semantic compliance based on TIER requirements. - Ζ’ **get_score** (`Function`) - πŸ“ Calculates a compliance score (0.0 to 1.0) based on tier requirements. - Ζ’ **get_patterns** (`Function`) - πŸ“ Returns regex patterns for a specific language. - Ζ’ **extract_svelte_props** (`Function`) - πŸ“ Extracts props from Svelte component script section. - Ζ’ **extract_svelte_events** (`Function`) - πŸ“ Extracts dispatched events from Svelte component. - Ζ’ **extract_data_flow** (`Function`) - πŸ“ Extracts store subscriptions and data flow from Svelte component. - Ζ’ **parse_file** (`Function`) `[CRITICAL]` - πŸ“ Parses a single file to extract semantic entities with tier awareness and enhanced Svelte analysis. - πŸ”’ Invariant: Every opened anchor must have a matching closing anchor for valid compliance. - β„‚ **SemanticMapGenerator** (`Class`) `[CRITICAL]` - πŸ“ Orchestrates the mapping process with tier-based validation. - πŸ”’ Invariant: All entities are validated according to their TIER requirements. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the generator with a root directory. - Ζ’ **_load_gitignore** (`Function`) - πŸ“ Loads patterns from .gitignore file. - Ζ’ **_is_ignored** (`Function`) - πŸ“ Checks if a path should be ignored based on .gitignore or hardcoded defaults. - Ζ’ **run** (`Function`) `[CRITICAL]` - πŸ“ Main execution flow. - πŸ”— CALLS -> `_walk_and_parse` - πŸ”— CALLS -> `_generate_artifacts` - Ζ’ **_walk_and_parse** (`Function`) `[CRITICAL]` - πŸ“ Recursively walks directories and triggers parsing. - Ζ’ **_process_file_results** (`Function`) - πŸ“ Validates entities and calculates file scores with tier awareness. - Ζ’ **validate_recursive** (`Function`) - πŸ“ Calculate score and determine module's max tier for weighted global score - Ζ’ **_generate_artifacts** (`Function`) `[CRITICAL]` - πŸ“ Writes output files with tier-based compliance data. - Ζ’ **_generate_report** (`Function`) `[CRITICAL]` - πŸ“ Generates the Markdown compliance report with severity levels. - Ζ’ **_collect_issues** (`Function`) - πŸ“ Helper to collect issues for a specific file from the entity tree. - Ζ’ **_generate_compressed_map** (`Function`) `[CRITICAL]` - πŸ“ Generates the token-optimized project map with enhanced Svelte details. - Ζ’ **_write_entity_md** (`Function`) `[CRITICAL]` - πŸ“ Recursive helper to write entity tree to Markdown with tier badges and enhanced details. - Ζ’ **_generate_module_map** (`Function`) `[CRITICAL]` - πŸ“ Generates a module-centric map grouping entities by directory structure. - Ζ’ **_get_module_path** (`Function`) - πŸ“ Extracts the module path from a file path. - Ζ’ **_collect_all_entities** (`Function`) - πŸ“ Flattens entity tree for easier grouping. - Ζ’ **to_dict** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **DashboardTypes** (`Module`) `[TRIVIAL]` - πŸ“ TypeScript interfaces for Dashboard entities - πŸ—οΈ Layer: Domain - 🧩 **Counter** (`Component`) `[TRIVIAL]` - πŸ“ Simple counter demo component - πŸ—οΈ Layer: UI - ➑️ WRITES_TO `state` - πŸ“¦ **stores_module** (`Module`) - πŸ“ Global state management using Svelte stores. - πŸ—οΈ Layer: UI-State - πŸ“¦ **plugins** (`Data`) - πŸ“ Store for the list of available plugins. - πŸ“¦ **tasks** (`Data`) - πŸ“ Store for the list of tasks. - πŸ“¦ **selectedPlugin** (`Data`) - πŸ“ Store for the currently selected plugin. - πŸ“¦ **selectedTask** (`Data`) - πŸ“ Store for the currently selected task. - πŸ“¦ **currentPage** (`Data`) - πŸ“ Store for the current page. - πŸ“¦ **taskLogs** (`Data`) - πŸ“ Store for the logs of the currently selected task. - Ζ’ **fetchPlugins** (`Function`) - πŸ“ Fetches plugins from the API and updates the plugins store. - Ζ’ **fetchTasks** (`Function`) - πŸ“ Fetches tasks from the API and updates the tasks store. - πŸ“¦ **toasts_module** (`Module`) - πŸ“ Manages toast notifications using a Svelte writable store. - πŸ—οΈ Layer: UI-State - πŸ“¦ **toasts** (`Data`) - πŸ“ Writable store containing the list of active toasts. - Ζ’ **addToast** (`Function`) - πŸ“ Adds a new toast message. - Ζ’ **removeToast** (`Function`) - πŸ“ Removes a toast message by ID. - πŸ“¦ **api_module** (`Module`) - πŸ“ Handles all communication with the backend API. - πŸ—οΈ Layer: Infra-API - Ζ’ **getWsUrl** (`Function`) - πŸ“ Returns the WebSocket URL for a specific task, with fallback logic. - Ζ’ **getAuthHeaders** (`Function`) - πŸ“ Returns headers with Authorization if token exists. - Ζ’ **fetchApi** (`Function`) - πŸ“ Generic GET request wrapper. - Ζ’ **postApi** (`Function`) - πŸ“ Generic POST request wrapper. - Ζ’ **requestApi** (`Function`) - πŸ“ Generic request wrapper. - πŸ“¦ **api** (`Data`) - πŸ“ API client object with specific methods. - πŸ“¦ **Utils** (`Module`) `[TRIVIAL]` - πŸ“ General utility functions (class merging) - πŸ—οΈ Layer: Infra - Ζ’ **cn** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ—„οΈ **authStore** (`Store`) - πŸ“ Manages the global authentication state on the frontend. - πŸ—οΈ Layer: Feature - πŸ“¦ **AuthState** (`Interface`) - πŸ“ Defines the structure of the authentication state. - Ζ’ **createAuthStore** (`Function`) - πŸ“ Creates and configures the auth store with helper methods. - Ζ’ **setToken** (`Function`) - πŸ“ Updates the store with a new JWT token. - Ζ’ **setUser** (`Function`) - πŸ“ Sets the current user profile data. - Ζ’ **logout** (`Function`) - πŸ“ Clears authentication state and storage. - Ζ’ **setLoading** (`Function`) - πŸ“ Updates the loading state. - πŸ“¦ **Debounce** (`Module`) `[TRIVIAL]` - πŸ“ Debounce utility for limiting function execution rate - πŸ—οΈ Layer: Infra - Ζ’ **debounce** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ—„οΈ **assistantChat** (`Store`) - πŸ“ Control assistant chat panel visibility and active conversation binding. - πŸ—οΈ Layer: UI - πŸ”’ Invariant: conversationId persists while panel toggles unless explicitly reset. - Ζ’ **toggleAssistantChat** (`Function`) - πŸ“ Toggle assistant panel visibility. - Ζ’ **openAssistantChat** (`Function`) - πŸ“ Open assistant panel. - Ζ’ **closeAssistantChat** (`Function`) - πŸ“ Close assistant panel. - Ζ’ **setAssistantConversationId** (`Function`) - πŸ“ Bind current conversation id in UI state. - πŸ—„οΈ **taskDrawer** (`Store`) `[CRITICAL]` - πŸ“ Manage Task Drawer visibility and resource-to-task mapping - πŸ—οΈ Layer: UI - πŸ”’ Invariant: resourceTaskMap always reflects current task associations - πŸ“¦ **taskDrawer** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/lib/stores/taskDrawer.js - πŸ—οΈ Layer: Unknown - Ζ’ **openDrawerForTask** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **openDrawer** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **closeDrawer** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **updateResourceTask** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **getTaskForResource** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ—„οΈ **sidebar** (`Store`) - πŸ“ Manage sidebar visibility and navigation state - πŸ—οΈ Layer: UI - πŸ”’ Invariant: isExpanded state is always synced with localStorage - πŸ“¦ **sidebar** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/lib/stores/sidebar.js - πŸ—οΈ Layer: Unknown - Ζ’ **toggleSidebar** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **setActiveItem** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **setMobileOpen** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **closeMobile** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **toggleMobileSidebar** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ—„οΈ **activity** (`Store`) - πŸ“ Track active task count for navbar indicator - πŸ—οΈ Layer: UI - πŸ”— DEPENDS_ON -> `WebSocket connection, taskDrawer store` - πŸ“¦ **frontend.src.lib.stores.__tests__.test_sidebar** (`Module`) - πŸ“ Unit tests for sidebar store - πŸ—οΈ Layer: UI - πŸ“¦ **frontend.src.lib.stores.__tests__.sidebar** (`Module`) - πŸ“ Unit tests for sidebar store - πŸ—οΈ Layer: Domain (Tests) - πŸ”’ Invariant: Sidebar store transitions must be deterministic across desktop/mobile toggles. - Ζ’ **test_sidebar_initial_state** (`Function`) - πŸ“ Verify initial sidebar store values when no persisted state is available. - Ζ’ **test_toggleSidebar** (`Function`) - πŸ“ Verify desktop sidebar expansion toggles deterministically. - Ζ’ **test_setActiveItem** (`Function`) - Ζ’ **test_mobile_functions** (`Function`) - πŸ“¦ **frontend.src.lib.stores.__tests__.test_activity** (`Module`) - πŸ“ Unit tests for activity store - πŸ—οΈ Layer: UI - πŸ”— DEPENDS_ON -> `frontend.src.lib.stores.taskDrawer` - πŸ“¦ **setupTests** (`Module`) - πŸ“ Global test setup with mocks for SvelteKit modules - πŸ—οΈ Layer: UI - πŸ“¦ **frontend.src.lib.stores.__tests__.test_taskDrawer** (`Module`) `[CRITICAL]` - πŸ“ Unit tests for task drawer store - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Store state transitions remain deterministic for open/close and task-status mapping. - πŸ“¦ **frontend.src.lib.stores.__tests__.assistantChat** (`Module`) - πŸ“ Validate assistant chat store visibility and conversation binding transitions. - πŸ—οΈ Layer: UI Tests - πŸ”’ Invariant: Each test starts from default closed state. - πŸ”— DEPENDS_ON -> `assistantChatStore` - Ζ’ **assistantChatStore_tests** (`Function`) - πŸ“ Group store unit scenarios for assistant panel behavior. - πŸ“¦ **navigation** (`Mock`) - πŸ“ Mock for $app/navigation in tests - πŸ“¦ **stores** (`Mock`) - πŸ“ 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 - πŸ”’ Invariant: Uses existing api wrapper methods and returns structured errors for UI-state mapping. - πŸ”— DEPENDS_ON -> `[DEF:api_module]` - Ζ’ **buildReportQueryString** (`Function`) - πŸ“ Build query string for reports list endpoint from filter options. - Ζ’ **normalizeApiError** (`Function`) - πŸ“ Convert unknown API exceptions into deterministic UI-consumable error objects. - Ζ’ **getReports** (`Function`) - πŸ“ Fetch unified report list using existing request wrapper. - Ζ’ **getReportDetail** (`Function`) - πŸ“ Fetch one report detail by report_id. - πŸ“¦ **frontend.src.lib.api.assistant** (`Module`) - πŸ“ API client wrapper for assistant chat, confirmation actions, and history retrieval. - πŸ—οΈ Layer: Infra-API - πŸ”’ Invariant: All assistant requests must use requestApi wrapper (no native fetch). - πŸ”— DEPENDS_ON -> `frontend.src.lib.api.api_module` - Ζ’ **sendAssistantMessage** (`Function`) - πŸ“ Send a user message to assistant orchestrator endpoint. - Ζ’ **confirmAssistantOperation** (`Function`) - πŸ“ Confirm a pending risky assistant operation. - Ζ’ **cancelAssistantOperation** (`Function`) - πŸ“ Cancel a pending risky assistant operation. - Ζ’ **getAssistantHistory** (`Function`) - πŸ“ 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 - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `bindable` - ➑️ WRITES_TO `props` - πŸ“¦ **ui** (`Module`) `[TRIVIAL]` - πŸ“ Central export point for standardized UI components. - πŸ—οΈ Layer: Atom - πŸ”’ Invariant: All components exported here must follow Semantic Protocol. - 🧩 **PageHeader** (`Component`) `[TRIVIAL]` - πŸ“ Standardized page header with title and action area. - πŸ—οΈ Layer: Atom - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `props` - 🧩 **Card** (`Component`) `[TRIVIAL]` - πŸ“ Standardized container with padding and elevation. - πŸ—οΈ Layer: Atom - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `props` - 🧩 **Button** (`Component`) `[TRIVIAL]` - πŸ“ Define component interface and default values (Svelte 5 Runes). - πŸ—οΈ Layer: Atom - πŸ”’ Invariant: Supports accessible labels and keyboard navigation. - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `props` - 🧩 **Input** (`Component`) `[TRIVIAL]` - πŸ“ Standardized text input component with label and error handling. - πŸ—οΈ Layer: Atom - πŸ”’ Invariant: Consistent spacing and focus states. - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `bindable` - ➑️ WRITES_TO `props` - 🧩 **LanguageSwitcher** (`Component`) `[TRIVIAL]` - πŸ“ Dropdown component to switch between supported languages. - πŸ—οΈ Layer: Atom - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `locale` - πŸ“¦ **i18n** (`Module`) - πŸ“ Determines the starting locale. - πŸ—οΈ Layer: Infra - πŸ”’ Invariant: Persistence is handled via LocalStorage. - πŸ”— DEPENDS_ON -> `locales/ru.json` - πŸ”— DEPENDS_ON -> `locales/en.json` - πŸ—„οΈ **locale** (`Store`) - πŸ“ Holds the current active locale string. - πŸ—„οΈ **t** (`Store`) - πŸ“ Derived store providing the translation dictionary. - Ζ’ **_** (`Function`) - πŸ“ Get translation by key path. - 🧩 **AssistantChatPanel** (`Component`) `[CRITICAL]` - πŸ“ Slide-out assistant chat panel for natural language command execution and task tracking. - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Risky operations are executed only through explicit confirm action. - ⬅️ READS_FROM `app` - ⬅️ READS_FROM `lib` - ⬅️ READS_FROM `assistantChatStore` - Ζ’ **loadHistory** (`Function`) - πŸ“ Load current conversation history when panel becomes visible. - Ζ’ **loadConversations** (`Function`) - πŸ“ Load paginated conversation summaries for quick switching UI. - Ζ’ **loadOlderMessages** (`Function`) - πŸ“ Lazy-load older messages for active conversation when user scrolls to top. - Ζ’ **appendLocalUserMessage** (`Function`) - πŸ“ Add optimistic local user message before backend response. - Ζ’ **appendAssistantResponse** (`Function`) - πŸ“ Normalize and append assistant response payload to chat list. - Ζ’ **handleSend** (`Function`) - πŸ“ Submit user command to assistant orchestration API. - Ζ’ **selectConversation** (`Function`) - πŸ“ Switch active chat context to selected conversation item. - Ζ’ **startNewConversation** (`Function`) - πŸ“ Create local empty chat context that will be persisted on first message. - Ζ’ **handleAction** (`Function`) - πŸ“ Execute assistant action button behavior (open task/reports, confirm, cancel). - Ζ’ **handleKeydown** (`Function`) - πŸ“ Submit command by Enter while preserving multiline input with Shift+Enter. - Ζ’ **stateClass** (`Function`) - πŸ“ Map assistant state to visual badge style class. - Ζ’ **handleHistoryScroll** (`Function`) - πŸ“ Trigger lazy history fetch when user scroll reaches top boundary. - πŸ“¦ **AssistantChatPanel** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/lib/components/assistant/AssistantChatPanel.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **buildConversationTitle** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **setConversationFilter** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **formatConversationTime** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **frontend.src.lib.components.assistant.__tests__.assistant_confirmation_integration** (`Module`) - πŸ“ Validate confirm/cancel UX contract bindings in assistant chat panel source. - πŸ—οΈ Layer: UI Tests - πŸ”’ Invariant: Confirm/cancel action handling must remain explicit and confirmation-id bound. - Ζ’ **assistant_confirmation_contract_tests** (`Function`) - πŸ“ Assert that confirmation UX flow and API bindings are preserved in chat panel. - πŸ“¦ **frontend.src.lib.components.assistant.__tests__.assistant_chat_integration** (`Module`) - πŸ“ Contract-level integration checks for assistant chat panel implementation and localization wiring. - πŸ—οΈ Layer: UI Tests - πŸ”’ Invariant: Critical assistant UX states and action hooks remain present in component source. - Ζ’ **readJson** (`Function`) - πŸ“ Read and parse JSON fixture file from disk. - Ζ’ **assistant_chat_contract_tests** (`Function`) - πŸ“ Validate assistant chat component contract and locale integration without DOM runtime dependency. - 🧩 **ReportCard** (`Component`) `[CRITICAL]` - πŸ“ Render one report with explicit textual type label and profile-driven visual variant. - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Unknown task type always uses fallback profile. - ⚑ Events: select - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `derived` - πŸ“¦ **ReportCard** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/lib/components/reports/ReportCard.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **getStatusClass** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **getStatusLabel** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **formatDate** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **onSelect** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - 🧩 **ReportsList** (`Component`) `[CRITICAL]` - πŸ“ Render unified list of normalized reports with canonical minimum fields. - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Every rendered row shows task_type label, status, summary, and updated_at. - ⚑ Events: select - ➑️ WRITES_TO `props` - πŸ“¦ **ReportsList** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/lib/components/reports/ReportsList.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **handleSelect** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **frontend.src.lib.components.reports.reportTypeProfiles** (`Module`) `[CRITICAL]` - πŸ“ Deterministic mapping from report task_type to visual profile with one fallback. - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Unknown type always resolves to fallback profile. - πŸ”— DEPENDS_ON -> `frontend/src/lib/i18n/index.ts` - Ζ’ **getReportTypeProfile** (`Function`) - πŸ“ Resolve visual profile by task type with guaranteed fallback. - 🧩 **ReportDetailPanel** (`Component`) `[CRITICAL]` - πŸ“ Display detailed report context with diagnostics and actionable recovery guidance. - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Failed/partial reports surface actionable hints when available. - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `props` - ⬅️ READS_FROM `t` - πŸ“¦ **ReportDetailPanel** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/lib/components/reports/ReportDetailPanel.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **notProvided** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **formatDate** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **frontend.src.lib.components.reports.__tests__.reports_filter_performance** (`Module`) - πŸ“ Guard test for report filter responsiveness on moderate in-memory dataset. - πŸ—οΈ Layer: UI (Tests) - Ζ’ **applyFilters** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **makeDataset** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **frontend.src.lib.components.reports.__tests__.reports_page.integration** (`Module`) `[CRITICAL]` - πŸ“ Integration-style checks for unified mixed-type reports rendering expectations. - πŸ—οΈ Layer: UI (Tests) - πŸ”’ Invariant: Mixed fixture includes all supported report types in one list. - Ζ’ **collectVisibleTypeLabels** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **frontend.src.lib.components.reports.__tests__.report_type_profiles** (`Module`) `[CRITICAL]` - πŸ“ Validate report type profile mapping and unknown fallback behavior. - πŸ—οΈ Layer: UI (Tests) - πŸ”’ Invariant: Unknown task_type always resolves to the fallback profile. - πŸ“¦ **frontend.src.lib.components.reports.__tests__.report_card.ux** (`Module`) `[CRITICAL]` - πŸ“ Test UX states and transitions for ReportCard component - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Each test asserts at least one observable UX contract outcome. - πŸ“¦ **frontend.src.lib.components.reports.__tests__.report_detail.ux** (`Module`) `[CRITICAL]` - πŸ“ Test UX states and recovery for ReportDetailPanel component - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Detail UX tests keep placeholder-safe rendering and recovery visibility verifiable. - πŸ“¦ **frontend.src.lib.components.reports.__tests__.report_detail.integration** (`Module`) `[CRITICAL]` - πŸ“ Validate detail-panel behavior for failed reports and recovery guidance visibility. - πŸ—οΈ Layer: UI (Tests) - πŸ”’ Invariant: Failed report detail exposes actionable next actions when available. - Ζ’ **buildFailedDetailFixture** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **reports.fixtures** (`Module`) - πŸ“ Shared frontend fixtures for unified reports states. - πŸ—οΈ Layer: UI - 🧩 **Sidebar** (`Component`) `[CRITICAL]` - πŸ“ Persistent left sidebar with resource categories navigation - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Always shows active category and item - ⬅️ READS_FROM `app` - ⬅️ READS_FROM `lib` - ⬅️ READS_FROM `t` - πŸ“¦ **Sidebar** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/lib/components/layout/Sidebar.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **buildCategories** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleItemClick** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleCategoryToggle** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleSubItemClick** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleToggleClick** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleOverlayClick** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - 🧩 **TopNavbar** (`Component`) `[CRITICAL]` - πŸ“ Unified top navigation bar with Logo, Search, Activity, and User menu - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Always visible on non-login pages - ⚑ Events: activityClick - ⬅️ READS_FROM `app` - ⬅️ READS_FROM `lib` - ⬅️ READS_FROM `sidebarStore` - πŸ“¦ **TopNavbar** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/lib/components/layout/TopNavbar.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **toggleUserMenu** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **closeUserMenu** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleLogout** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleActivityClick** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleAssistantClick** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleSearchFocus** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleSearchBlur** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleDocumentClick** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleHamburgerClick** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - 🧩 **Breadcrumbs** (`Component`) - πŸ“ Display page hierarchy navigation - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Always shows current page path - ⬅️ READS_FROM `app` - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `props` - πŸ“¦ **Breadcrumbs** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/lib/components/layout/Breadcrumbs.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **getBreadcrumbs** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **formatBreadcrumbLabel** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **getCrumbMeta** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - 🧩 **TaskDrawer** (`Component`) `[CRITICAL]` - πŸ“ Global task drawer for monitoring background operations - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Drawer shows logs for active task or remains closed - ⬅️ READS_FROM `lib` - ⬅️ READS_FROM `taskDrawerStore` - ➑️ WRITES_TO `taskDrawerStore` - Ζ’ **disconnectWebSocket** (`Function`) - πŸ“ Disconnects the active WebSocket connection - Ζ’ **loadRecentTasks** (`Function`) - πŸ“ Load recent tasks for list mode display - Ζ’ **selectTask** (`Function`) - πŸ“ Select a task from list to view details - Ζ’ **goBackToList** (`Function`) - πŸ“ Return to task list view from task details - πŸ“¦ **TaskDrawer** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/lib/components/layout/TaskDrawer.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **handleClose** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **goToReportsPage** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleGlobalKeydown** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **connectWebSocket** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **test_breadcrumbs.svelte** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/lib/components/layout/__tests__/test_breadcrumbs.svelte.js - πŸ—οΈ Layer: Unknown - Ζ’ **getBreadcrumbs** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **formatBreadcrumbLabel** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **ErrorPage** (`Page`) - πŸ“ Global error page displaying HTTP status and messages - πŸ—οΈ Layer: UI - πŸ“¦ **RootLayoutConfig** (`Module`) `[TRIVIAL]` - πŸ“ Root layout configuration (SPA mode) - πŸ—οΈ Layer: Infra - πŸ“¦ **HomePage** (`Page`) `[CRITICAL]` - πŸ“ Redirect to Dashboard Hub as per UX requirements - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Always redirects to /dashboards - Ζ’ **load** (`Function`) - πŸ“ Loads initial plugin data for the dashboard. - πŸ“¦ **layout** (`Module`) - πŸ“ Bind global layout shell and conditional login/full-app rendering. - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Login route bypasses shell; all other routes are wrapped by ProtectedRoute. - πŸ“¦ **DatasetHub** (`Page`) `[CRITICAL]` - πŸ“ Dataset Hub - Dedicated hub for datasets with mapping progress - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Always shows environment selector and dataset grid - πŸ“¦ **+page** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/routes/datasets/+page.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **loadEnvironments** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **loadDatasets** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleEnvChange** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleSearch** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handlePageChange** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handlePageSizeChange** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **updateSelectionState** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleCheckboxChange** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleSelectAll** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleSelectVisible** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleAction** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleBulkMapColumns** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleBulkGenerateDocs** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleTaskStatusClick** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **getTaskStatusIcon** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **getMappingProgressClass** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **DatasetDetail** (`Page`) `[CRITICAL]` - πŸ“ Dataset Detail View - Shows detailed dataset information with columns, SQL, and linked dashboards - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Always shows dataset details when loaded - πŸ“¦ **+page** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/routes/datasets/[id]/+page.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **loadDatasetDetail** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **navigateToDashboard** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **goBack** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **getColumnTypeClass** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **getMappingProgress** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - 🧩 **UnifiedReportsPage** (`Component`) `[CRITICAL]` - πŸ“ Unified reports page with filtering and resilient UX states for mixed task types. - πŸ—οΈ Layer: UI - πŸ”’ Invariant: List state remains deterministic for active filter set. - ⬅️ READS_FROM `lib` - ⬅️ READS_FROM `t` - ➑️ WRITES_TO `t` - πŸ“¦ **+page** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/routes/reports/+page.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **buildQuery** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **loadReports** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **hasActiveFilters** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **clearFilters** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **onFilterChange** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **onSelectReport** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - 🧩 **LoginPage** (`Component`) - πŸ“ Provides the user interface for local and ADFS authentication. - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Shows both local login form and ADFS SSO button. - ⬅️ READS_FROM `app` - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `t` - Ζ’ **handleLogin** (`Function`) - πŸ“ Submits the local login form to the backend. - Ζ’ **handleADFSLogin** (`Function`) - πŸ“ Redirects the user to the ADFS login endpoint. - πŸ“¦ **StorageIndexPage** (`Page`) `[TRIVIAL]` - πŸ“ Redirect to the backups page as the default storage view. - πŸ—οΈ Layer: Page - πŸ”’ Invariant: Always redirects to /storage/backups. - πŸ“¦ **StorageReposPage** (`Page`) - Ζ’ **fetchEnvironments** (`Function`) - πŸ“ Fetches the list of available environments. - Ζ’ **fetchDashboards** (`Function`) - πŸ“ Fetches dashboards for a specific environment. - πŸ“¦ **DashboardHub** (`Page`) `[CRITICAL]` - πŸ“ Dashboard Hub - Central hub for managing dashboards with Git status and task actions - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Always shows environment selector and dashboard grid - πŸ“¦ **+page** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/routes/dashboards/+page.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **handleDocumentClick** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **loadEnvironments** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **loadDashboards** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleEnvChange** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleSearch** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handlePageChange** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handlePageSizeChange** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **updateSelectionState** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleCheckboxChange** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleSelectAll** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleSelectVisible** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **toggleActionDropdown** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **closeActionDropdown** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleAction** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleValidate** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleTargetEnvChange** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **loadDatabases** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleMappingUpdate** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **loadDbMappings** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleBulkMigrate** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleBulkBackup** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleTaskStatusClick** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **navigateToDashboardDetail** (`Function`) `[TRIVIAL]` - πŸ“ 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]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **DashboardDetail** (`Page`) `[CRITICAL]` - πŸ“ Dashboard Detail View - Overview of charts and datasets linked to a dashboard - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Shows dashboard metadata, charts, and datasets for selected environment - πŸ“¦ **+page** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/routes/dashboards/[id]/+page.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **loadDashboardDetail** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **goBack** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **openDataset** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **formatDate** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - 🧩 **AdminRolesPage** (`Component`) - πŸ“ UI for managing system roles and their permissions. - πŸ—οΈ Layer: Domain - πŸ”’ Invariant: Only accessible by users with Admin role. - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `t` - ⬅️ READS_FROM `t` - Ζ’ **loadData** (`Function`) - πŸ“ Fetches roles and available permissions. - Ζ’ **openCreateModal** (`Function`) - πŸ“ Initializes state for creating a new role. - Ζ’ **openEditModal** (`Function`) - πŸ“ Initializes state for editing an existing role. - Ζ’ **handleSaveRole** (`Function`) - πŸ“ Submits role data (create or update). - Ζ’ **handleDeleteRole** (`Function`) - πŸ“ Deletes a role after confirmation. - 🧩 **AdminUsersPage** (`Component`) - πŸ“ UI for managing system users and their roles. - πŸ—οΈ Layer: Feature - πŸ”’ Invariant: Only accessible by users with "admin:users" permission. - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `t` - ⬅️ READS_FROM `t` - Ζ’ **loadData** (`Function`) - πŸ“ Fetches users and roles from the backend. - Ζ’ **openCreateModal** (`Function`) - πŸ“ Prepares the form for creating a new user. - Ζ’ **openEditModal** (`Function`) - πŸ“ Prepares the form for editing an existing user. - Ζ’ **handleSaveUser** (`Function`) - πŸ“ Submits user data to the backend (create or update). - Ζ’ **handleDeleteUser** (`Function`) - πŸ“ Deletes a user after confirmation. - 🧩 **AdminSettingsPage** (`Component`) - πŸ“ UI for configuring Active Directory Group to local Role mappings for ADFS SSO and logging settings. - πŸ—οΈ Layer: Feature - πŸ”’ Invariant: Only accessible by users with "admin:settings" permission. - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `t` - ⬅️ READS_FROM `t` - Ζ’ **loadData** (`Function`) - πŸ“ Fetches AD mappings and roles from the backend to populate the UI. - Ζ’ **handleCreateMapping** (`Function`) - πŸ“ Submits a new AD Group to Role mapping to the backend. - Ζ’ **loadLoggingConfig** (`Function`) - πŸ“ Fetches current logging configuration from the backend. - Ζ’ **saveLoggingConfig** (`Function`) - πŸ“ Saves logging configuration to the backend. - 🧩 **LLMSettingsPage** (`Component`) - πŸ“ Admin settings page for LLM provider configuration. - πŸ—οΈ Layer: UI - ⬅️ READS_FROM `t` - ➑️ WRITES_TO `t` - πŸ“¦ **+page** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/routes/admin/settings/llm/+page.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **isMultimodalModel** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **getProviderById** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **fetchProviders** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **saveSettings** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - 🧩 **MigrationDashboard** (`Component`) - πŸ“ Main dashboard for configuring and starting migrations. - πŸ—οΈ Layer: Page - πŸ”’ Invariant: Migration cannot start without source and target environments. - ⬅️ READS_FROM `lib` - ⬅️ READS_FROM `selectedTask` - ➑️ WRITES_TO `selectedTask` - Ζ’ **fetchEnvironments** (`Function`) - πŸ“ Fetches the list of environments from the API. - Ζ’ **fetchDashboards** (`Function`) - πŸ“ Fetches dashboards for the selected source environment. - Ζ’ **fetchDatabases** (`Function`) - πŸ“ Fetches databases from both environments and gets suggestions. - Ζ’ **handleMappingUpdate** (`Function`) - πŸ“ Saves a mapping to the backend. - Ζ’ **handleViewLogs** (`Function`) - πŸ“ Opens the log viewer for a specific task. - Ζ’ **handlePasswordPrompt** (`Function`) - πŸ“ Reactive logic to show password prompt when a task is awaiting input. - Ζ’ **handleResumeMigration** (`Function`) - πŸ“ Resumes a migration task with provided passwords. - Ζ’ **startMigration** (`Function`) - πŸ“ Starts the migration process. - 🧩 **DashboardSelectionSection** (`Component`) - 🧩 **MappingManagement** (`Component`) - πŸ“ Page for managing database mappings between environments. - πŸ—οΈ Layer: Page - πŸ”’ Invariant: Mappings are saved to the backend for persistence. - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `t` - ⬅️ READS_FROM `t` - Ζ’ **fetchEnvironments** (`Function`) - πŸ“ Fetches the list of environments. - Ζ’ **fetchDatabases** (`Function`) - πŸ“ Fetches databases from both environments and gets suggestions. - Ζ’ **handleUpdate** (`Function`) - πŸ“ Saves a mapping to the backend. - 🧩 **StoragePage** (`Component`) - πŸ“ Main page for file storage management. - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Always displays tabs for Backups and Repositories. - ⬅️ READS_FROM `app` - ⬅️ READS_FROM `t` - ➑️ WRITES_TO `page` - Ζ’ **loadFiles** (`Function`) - πŸ“ Fetches the list of files from the server. - Ζ’ **handleDelete** (`Function`) - πŸ“ Handles the file deletion process. - Ζ’ **handleNavigate** (`Function`) - πŸ“ Updates the current path and reloads files when navigating into a directory. - Ζ’ **navigateUp** (`Function`) - πŸ“ Navigates one level up in the directory structure. - 🧩 **MapperPage** (`Component`) `[TRIVIAL]` - πŸ“ 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 - πŸ”’ Invariant: Always shows tabbed interface with all settings categories - πŸ“¦ **+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]` - πŸ“ Auto-detected function (orphan) - Ζ’ **isMultimodalModel** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **getProviderById** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **isDashboardValidationBindingValid** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleTabChange** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **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) - Ζ’ **handleTestEnv** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **editEnv** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **resetEnvForm** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleAddOrUpdateEnv** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleDeleteEnv** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **load** (`Function`) - πŸ“ Loads application settings and environment list. - 🧩 **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`) - πŸ“ Manage Git server configurations for dashboard versioning. - πŸ—οΈ 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`) - πŸ“ Tests connection to a git server with current form data. - Ζ’ **handleSave** (`Function`) - πŸ“ Saves a new git configuration. - Ζ’ **handleDelete** (`Function`) - πŸ“ Deletes a git configuration by ID. - 🧩 **GitDashboardPage** (`Component`) - πŸ“ Dashboard management page for Git integration. - πŸ—οΈ Layer: Page - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `t` - Ζ’ **fetchEnvironments** (`Function`) - πŸ“ Fetches the list of deployment environments from the API. - Ζ’ **fetchDashboards** (`Function`) - πŸ“ Fetches dashboards for a specific environment. - 🧩 **Dashboard** (`Component`) - πŸ“ Displays the list of available plugins and allows selecting one. - πŸ—οΈ Layer: UI - ⬅️ READS_FROM `plugins` - Ζ’ **onMount** (`Function`) - πŸ“ Fetch plugins when the component mounts. - Ζ’ **selectPlugin** (`Function`) - πŸ“ Selects a plugin to display its form. - 🧩 **Settings** (`Component`) - πŸ“ 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`) - πŸ“ Saves global settings to the backend. - Ζ’ **handleAddOrUpdateEnv** (`Function`) - πŸ“ Adds or updates an environment. - Ζ’ **handleDeleteEnv** (`Function`) - πŸ“ Deletes an environment. - Ζ’ **handleTestEnv** (`Function`) - πŸ“ Tests the connection to an environment. - Ζ’ **editEnv** (`Function`) - πŸ“ Sets the form to edit an existing environment. - Ζ’ **resetEnvForm** (`Function`) - πŸ“ Resets the environment form. - Ζ’ **getConnections** (`Function`) - πŸ“ Fetch a list of saved connections. - Ζ’ **createConnection** (`Function`) - πŸ“ Create a new connection configuration. - Ζ’ **deleteConnection** (`Function`) - πŸ“ Delete a connection configuration. - πŸ“¦ **GitServiceClient** (`Module`) - πŸ“ API client for Git operations, managing the communication between frontend and backend. - πŸ—οΈ Layer: Service - πŸ“¦ **gitService** (`Action`) - πŸ“ Retrieves the diff for specific files or the whole repository. - Ζ’ **runTask** (`Function`) - πŸ“ Start a new task for a given plugin. - Ζ’ **getTaskStatus** (`Function`) - πŸ“ Fetch details for a specific task (to poll status or get result). - πŸ“¦ **adminService** (`Module`) - πŸ“ Service for Admin-related API calls (User and Role management). - πŸ—οΈ Layer: Service - πŸ”’ Invariant: All requests must include valid Admin JWT token (handled by api client). - πŸ”— DEPENDS_ON -> `frontend.src.lib.api` - Ζ’ **getUsers** (`Function`) - πŸ“ Fetches all registered users from the backend. - Ζ’ **createUser** (`Function`) - πŸ“ Creates a new local user. - Ζ’ **getRoles** (`Function`) - πŸ“ Fetches all available system roles. - Ζ’ **getADGroupMappings** (`Function`) - πŸ“ Fetches mappings between AD groups and local roles. - Ζ’ **createADGroupMapping** (`Function`) - πŸ“ Creates or updates an AD group to Role mapping. - Ζ’ **updateUser** (`Function`) - πŸ“ Updates an existing user. - Ζ’ **deleteUser** (`Function`) - πŸ“ Deletes a user. - Ζ’ **createRole** (`Function`) - πŸ“ Creates a new role. - Ζ’ **updateRole** (`Function`) - πŸ“ Updates an existing role. - Ζ’ **deleteRole** (`Function`) - πŸ“ Deletes a role. - Ζ’ **getPermissions** (`Function`) - πŸ“ Fetches all available permissions. - Ζ’ **getLoggingConfig** (`Function`) - πŸ“ Fetches current logging configuration. - Ζ’ **updateLoggingConfig** (`Function`) - πŸ“ Updates logging configuration. - Ζ’ **getTasks** (`Function`) - πŸ“ Fetch a list of tasks with pagination and optional status filter. - Ζ’ **getTask** (`Function`) - πŸ“ Fetch details for a specific task. - Ζ’ **getTaskLogs** (`Function`) - πŸ“ Fetch logs for a specific task. - Ζ’ **resumeTask** (`Function`) - πŸ“ Resume a task that is awaiting input (e.g., passwords). - Ζ’ **resolveTask** (`Function`) - πŸ“ Resolve a task that is awaiting mapping. - Ζ’ **clearTasks** (`Function`) - πŸ“ Clear tasks based on status. - πŸ“¦ **storageService** (`Module`) - πŸ“ Frontend API client for file storage management. - πŸ—οΈ Layer: Service - Ζ’ **getStorageAuthHeaders** (`Function`) - πŸ“ Returns headers with Authorization for storage API calls. - Ζ’ **listFiles** (`Function`) - πŸ“ Fetches the list of files for a given category and subpath. - Ζ’ **uploadFile** (`Function`) - πŸ“ Uploads a file to the storage system. - Ζ’ **deleteFile** (`Function`) - πŸ“ Deletes a file or directory from storage. - Ζ’ **downloadFileUrl** (`Function`) - πŸ“ Returns the URL for downloading a file. - 🧩 **PasswordPrompt** (`Component`) - πŸ“ A modal component to prompt the user for database passwords when a migration task is paused. - πŸ—οΈ Layer: UI - ⚑ Events: cancel, resume - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `state` - ⬅️ READS_FROM `effect` - Ζ’ **handleSubmit** (`Function`) - πŸ“ Validates and dispatches the passwords to resume the task. - Ζ’ **handleCancel** (`Function`) - πŸ“ Cancels the password prompt. - 🧩 **MappingTable** (`Component`) - πŸ“ Displays and allows editing of database mappings. - πŸ—οΈ 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`) - πŸ“ Finds a suggestion for a source database. - 🧩 **TaskLogViewer** (`Component`) `[CRITICAL]` - πŸ“ Displays detailed logs for a specific task inline or in a modal using TaskLogPanel. - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Real-time logs are always appended without duplicates. - ⚑ Events: close - ➑️ WRITES_TO `bindable` - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `state` - πŸ“¦ **handleRealTimeLogs** (`Action`) - πŸ“ Sync real-time logs to the current log list - Ζ’ **fetchLogs** (`Function`) - πŸ“ Fetches logs for a given task ID - Ζ’ **handleFilterChange** (`Function`) - πŸ“ Updates filter conditions for the log viewer - Ζ’ **handleRefresh** (`Function`) - πŸ“ Refreshes the logs by polling the API - 🧩 **showInline** (`Component`) - πŸ“ Shows inline logs --> - πŸ—οΈ Layer: UI --> - 🧩 **showModal** (`Component`) - πŸ“ Shows modal logs --> - πŸ—οΈ Layer: UI --> - 🧩 **Footer** (`Component`) `[TRIVIAL]` - πŸ“ Displays the application footer with copyright information. - πŸ—οΈ Layer: UI - 🧩 **MissingMappingModal** (`Component`) - πŸ“ Prompts the user to provide a database mapping when one is missing during migration. - πŸ—οΈ Layer: Feature - πŸ”’ Invariant: Modal blocks migration progress until resolved or cancelled. - ⚑ Events: cancel, resolve - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `state` - Ζ’ **resolve** (`Function`) - πŸ“ Dispatches the resolution event with the selected mapping. - Ζ’ **cancel** (`Function`) - πŸ“ Cancels the mapping resolution modal. - 🧩 **DashboardGrid** (`Component`) - πŸ“ Displays a grid of dashboards with selection and pagination. - πŸ—οΈ Layer: Component - πŸ”’ Invariant: Selected IDs must be a subset of available dashboards. - ⚑ Events: selectionChanged - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `state` - ➑️ WRITES_TO `derived` - Ζ’ **handleValidate** (`Function`) - πŸ“ Triggers dashboard validation task. - Ζ’ **handleSort** (`Function`) - πŸ“ Toggles sort direction or changes sort column. - Ζ’ **handleSelectionChange** (`Function`) - πŸ“ Handles individual checkbox changes. - Ζ’ **handleSelectAll** (`Function`) - πŸ“ Handles select all checkbox. - Ζ’ **goToPage** (`Function`) - πŸ“ Changes current page. - Ζ’ **openGit** (`Function`) - πŸ“ Opens the Git management modal for a dashboard. - 🧩 **Navbar** (`Component`) - πŸ“ Main navigation bar for the application. - πŸ—οΈ Layer: UI - ⬅️ READS_FROM `app` - ⬅️ READS_FROM `lib` - ➑️ WRITES_TO `page` - πŸ“¦ **Navbar** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/components/Navbar.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **handleLogout** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - 🧩 **TaskHistory** (`Component`) - πŸ“ Displays a list of recent tasks with their status and allows selecting them for viewing logs. - πŸ—οΈ Layer: UI - ⬅️ READS_FROM `selectedTask` - ➑️ WRITES_TO `selectedTask` - ⬅️ READS_FROM `t` - Ζ’ **fetchTasks** (`Function`) - πŸ“ Fetches the list of recent tasks from the API. - Ζ’ **clearTasks** (`Function`) - πŸ“ Clears tasks from the history, optionally filtered by status. - Ζ’ **selectTask** (`Function`) - πŸ“ Selects a task and fetches its full details. - Ζ’ **getStatusColor** (`Function`) - πŸ“ Returns the CSS color class for a given task status. - Ζ’ **onMount** (`Function`) - πŸ“ Initializes the component by fetching tasks and starting polling. - Ζ’ **onDestroy** (`Function`) - πŸ“ Cleans up the polling interval when the component is destroyed. - 🧩 **Toast** (`Component`) `[TRIVIAL]` - πŸ“ Displays transient notifications (toasts) in the bottom-right corner. - πŸ—οΈ Layer: UI - ⬅️ READS_FROM `toasts` - 🧩 **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 `t` - Ζ’ **connect** (`Function`) - πŸ“ Establishes WebSocket connection with exponential backoff and filter parameters. - Ζ’ **handleFilterChange** (`Function`) - πŸ“ Handles filter changes and reconnects WebSocket with new parameters. - Ζ’ **fetchTargetDatabases** (`Function`) - πŸ“ Fetches available databases from target environment for mapping. - Ζ’ **handleMappingResolve** (`Function`) - πŸ“ Resolves missing database mapping and continues migration. - Ζ’ **handlePasswordResume** (`Function`) - πŸ“ Submits passwords and resumes paused migration task. - Ζ’ **startDataTimeout** (`Function`) - πŸ“ Starts timeout timer to detect idle connection. - Ζ’ **resetDataTimeout** (`Function`) - πŸ“ Resets data timeout timer when new data arrives. - Ζ’ **onMount** (`Function`) - πŸ“ Initializes WebSocket connection when component mounts. - Ζ’ **onDestroy** (`Function`) - 🧩 **TaskList** (`Component`) - πŸ“ Displays a list of tasks with their status and execution details. - πŸ—οΈ Layer: Component - ⚑ Events: select - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `t` - ⬅️ READS_FROM `t` - Ζ’ **getStatusColor** (`Function`) - πŸ“ Returns the CSS color class for a given task status. - Ζ’ **formatTime** (`Function`) - πŸ“ Formats a date string using date-fns. - Ζ’ **handleTaskClick** (`Function`) - πŸ“ Dispatches a select event when a task is clicked. - 🧩 **DynamicForm** (`Component`) - πŸ“ Generates a form dynamically based on a JSON schema. - πŸ—οΈ Layer: UI - ⚑ Events: submit - ➑️ WRITES_TO `props` - Ζ’ **handleSubmit** (`Function`) - πŸ“ Dispatches the submit event with the form data. - Ζ’ **initializeForm** (`Function`) - πŸ“ Initialize form data with default values from the schema. - 🧩 **EnvSelector** (`Component`) - πŸ“ Provides a UI component for selecting source and target environments. - πŸ—οΈ Layer: Feature - πŸ”’ Invariant: Source and target environments must be selectable from the list of configured environments. - ⚑ Events: change - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `t` - Ζ’ **handleSelect** (`Function`) - πŸ“ Dispatches the selection change event. - 🧩 **ProtectedRoute** (`Component`) `[TRIVIAL]` - πŸ“ Wraps content to ensure only authenticated users can access it. - πŸ—οΈ Layer: Component - πŸ”’ Invariant: Redirects to /login if user is not authenticated. - ⬅️ READS_FROM `app` - ⬅️ READS_FROM `auth` - 🧩 **TaskLogPanel** (`Component`) - πŸ“ Combines log filtering and display into a single cohesive dark-themed panel. - πŸ—οΈ Layer: UI - πŸ”’ Invariant: Must always display logs in chronological order and respect auto-scroll preference. - ⚑ Events: filterChange - ➑️ WRITES_TO `bindable` - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `state` - πŸ“¦ **TaskLogPanel** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/components/tasks/TaskLogPanel.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **filterLogs** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleFilterChange** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **scrollToBottom** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **toggleAutoScroll** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - 🧩 **LogFilterBar** (`Component`) - πŸ“ Compact filter toolbar for logs β€” level, source, and text search in a single dense row. - πŸ—οΈ Layer: UI - ➑️ WRITES_TO `bindable` - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `derived` - πŸ“¦ **LogFilterBar** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/components/tasks/LogFilterBar.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **handleLevelChange** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleSourceChange** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleSearchChange** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **clearFilters** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - 🧩 **LogEntryRow** (`Component`) - πŸ“ Renders a single log entry with stacked layout optimized for narrow drawer panels. - πŸ—οΈ Layer: UI - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `derived` - Ζ’ **formatTime** (`Function`) - πŸ“ Format ISO timestamp to HH:MM:SS */ - πŸ“¦ **TaskResultPanel** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/components/tasks/TaskResultPanel.svelte - πŸ—οΈ 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 - ⚑ Events: delete, navigate - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `t` - ⬅️ READS_FROM `t` - Ζ’ **isDirectory** (`Function`) - πŸ“ Checks if a file object represents a directory. - Ζ’ **formatSize** (`Function`) - πŸ“ Formats file size in bytes into a human-readable string. - Ζ’ **formatDate** (`Function`) - πŸ“ Formats an ISO date string into a localized readable format. - 🧩 **FileUpload** (`Component`) - πŸ“ Provides a form for uploading files to a specific category. - πŸ—οΈ Layer: UI - ⚑ Events: uploaded - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `state` - ⬅️ READS_FROM `t` - Ζ’ **handleUpload** (`Function`) - πŸ“ Handles the file upload process. - Ζ’ **handleDrop** (`Function`) - πŸ“ Handles the file drop event for drag-and-drop. - 🧩 **ConnectionForm** (`Component`) - πŸ“ UI component for creating a new database connection configuration. - πŸ—οΈ Layer: UI - ⚑ Events: success - ⬅️ READS_FROM `t` - ➑️ WRITES_TO `t` - Ζ’ **handleSubmit** (`Function`) - πŸ“ Submits the connection form to the backend. - Ζ’ **resetForm** (`Function`) - πŸ“ Resets the connection form fields to their default values. - 🧩 **ConnectionList** (`Component`) - πŸ“ UI component for listing and deleting saved database connection configurations. - πŸ—οΈ Layer: UI - ⬅️ READS_FROM `t` - ➑️ WRITES_TO `t` - Ζ’ **fetchConnections** (`Function`) - πŸ“ Fetches the list of connections from the backend. - Ζ’ **handleDelete** (`Function`) - πŸ“ Deletes a connection configuration. - 🧩 **MapperTool** (`Component`) - πŸ“ UI component for mapping dataset column verbose names using the MapperPlugin. - πŸ—οΈ Layer: UI - ⬅️ READS_FROM `t` - ➑️ WRITES_TO `t` - Ζ’ **fetchData** (`Function`) - πŸ“ Fetches environments and saved connections. - Ζ’ **handleRunMapper** (`Function`) - πŸ“ Triggers the MapperPlugin task. - Ζ’ **handleGenerateDocs** (`Function`) - πŸ“ Triggers the LLM Documentation task. - πŸ“¦ **MapperTool** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/components/tools/MapperTool.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **handleApplyDoc** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - 🧩 **DebugTool** (`Component`) - πŸ“ UI component for system diagnostics and debugging API responses. - πŸ—οΈ Layer: UI - ⬅️ READS_FROM `t` - ➑️ WRITES_TO `t` - Ζ’ **fetchEnvironments** (`Function`) - πŸ“ Fetches available environments. - Ζ’ **handleRunDebug** (`Function`) - πŸ“ Triggers the debug task. - Ζ’ **startPolling** (`Function`) - πŸ“ Polls for task completion. - 🧩 **CommitHistory** (`Component`) - πŸ“ Displays the commit history for a specific dashboard. - πŸ—οΈ Layer: Component - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `state` - ⬅️ READS_FROM `t` - Ζ’ **onMount** (`Function`) - πŸ“ Load history when component is mounted. - Ζ’ **loadHistory** (`Function`) - πŸ“ Fetch commit history from the backend. - 🧩 **DeploymentModal** (`Component`) - πŸ“ Modal for deploying a dashboard to a target environment. - πŸ—οΈ Layer: Component - πŸ”’ Invariant: Cannot deploy without a selected environment. - ⚑ Events: deploy - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `state` - ⬅️ READS_FROM `effect` - πŸ“¦ **loadStatus** (`Watcher`) - Ζ’ **loadEnvironments** (`Function`) - πŸ“ Fetch available environments from API. - Ζ’ **handleDeploy** (`Function`) - πŸ“ Trigger deployment to selected environment. - 🧩 **ConflictResolver** (`Component`) - πŸ“ UI for resolving merge conflicts (Keep Mine / Keep Theirs). - πŸ—οΈ Layer: Component - πŸ”’ Invariant: User must resolve all conflicts before saving. - ⚑ Events: resolve - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `state` - Ζ’ **resolve** (`Function`) - πŸ“ Set resolution strategy for a file. - Ζ’ **handleSave** (`Function`) - πŸ“ Validate and submit resolutions. - 🧩 **CommitModal** (`Component`) - πŸ“ МодальноС ΠΎΠΊΠ½ΠΎ для создания ΠΊΠΎΠΌΠΌΠΈΡ‚Π° с просмотром ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠΉ (diff). - πŸ—οΈ Layer: Component - ⚑ Events: commit - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `state` - ⬅️ READS_FROM `t` - Ζ’ **handleGenerateMessage** (`Function`) - πŸ“ Generates a commit message using LLM. - Ζ’ **loadStatus** (`Function`) - πŸ“ Π—Π°Π³Ρ€ΡƒΠΆΠ°Π΅Ρ‚ Ρ‚Π΅ΠΊΡƒΡ‰ΠΈΠΉ статус рСпозитория ΠΈ diff. - Ζ’ **handleCommit** (`Function`) - πŸ“ Π‘ΠΎΠ·Π΄Π°Π΅Ρ‚ ΠΊΠΎΠΌΠΌΠΈΡ‚ с ΡƒΠΊΠ°Π·Π°Π½Π½Ρ‹ΠΌ сообщСниСм. - 🧩 **BranchSelector** (`Component`) - πŸ“ UI для Π²Ρ‹Π±ΠΎΡ€Π° ΠΈ создания Π²Π΅Ρ‚ΠΎΠΊ Git. - πŸ—οΈ Layer: Component - ⚑ Events: change - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `state` - ⬅️ READS_FROM `t` - Ζ’ **onMount** (`Function`) - πŸ“ Load branches when component is mounted. - Ζ’ **loadBranches** (`Function`) - πŸ“ Π—Π°Π³Ρ€ΡƒΠΆΠ°Π΅Ρ‚ список Π²Π΅Ρ‚ΠΎΠΊ для Π΄Π°ΡˆΠ±ΠΎΡ€Π΄Π°. - Ζ’ **handleSelect** (`Function`) - πŸ“ Handles branch selection from dropdown. - Ζ’ **handleCheckout** (`Function`) - πŸ“ ΠŸΠ΅Ρ€Π΅ΠΊΠ»ΡŽΡ‡Π°Π΅Ρ‚ Ρ‚Π΅ΠΊΡƒΡ‰ΡƒΡŽ Π²Π΅Ρ‚ΠΊΡƒ. - Ζ’ **handleCreate** (`Function`) - πŸ“ Π‘ΠΎΠ·Π΄Π°Π΅Ρ‚ Π½ΠΎΠ²ΡƒΡŽ Π²Π΅Ρ‚ΠΊΡƒ. - 🧩 **GitManager** (`Component`) - πŸ“ Π¦Π΅Π½Ρ‚Ρ€Π°Π»ΡŒΠ½Ρ‹ΠΉ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ для управлСния Git-опСрациями ΠΊΠΎΠ½ΠΊΡ€Π΅Ρ‚Π½ΠΎΠ³ΠΎ Π΄Π°ΡˆΠ±ΠΎΡ€Π΄Π°. - πŸ—οΈ Layer: Component - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `state` - ⬅️ READS_FROM `t` - Ζ’ **checkStatus** (`Function`) - πŸ“ ΠŸΡ€ΠΎΠ²Π΅Ρ€ΡΠ΅Ρ‚, ΠΈΠ½ΠΈΡ†ΠΈΠ°Π»ΠΈΠ·ΠΈΡ€ΠΎΠ²Π°Π½ Π»ΠΈ Ρ€Π΅ΠΏΠΎΠ·ΠΈΡ‚ΠΎΡ€ΠΈΠΉ для Π΄Π°Π½Π½ΠΎΠ³ΠΎ Π΄Π°ΡˆΠ±ΠΎΡ€Π΄Π°. - Ζ’ **handleInit** (`Function`) - πŸ“ Π˜Π½ΠΈΡ†ΠΈΠ°Π»ΠΈΠ·ΠΈΡ€ΡƒΠ΅Ρ‚ Ρ€Π΅ΠΏΠΎΠ·ΠΈΡ‚ΠΎΡ€ΠΈΠΉ для Π΄Π°ΡˆΠ±ΠΎΡ€Π΄Π°. - Ζ’ **handleSync** (`Function`) - πŸ“ Π‘ΠΈΠ½Ρ…Ρ€ΠΎΠ½ΠΈΠ·ΠΈΡ€ΡƒΠ΅Ρ‚ состояниС Superset с Π»ΠΎΠΊΠ°Π»ΡŒΠ½Ρ‹ΠΌ Git-Ρ€Π΅ΠΏΠΎΠ·ΠΈΡ‚ΠΎΡ€ΠΈΠ΅ΠΌ. - Ζ’ **handlePush** (`Function`) - πŸ“ Pushes local commits to the remote repository. - Ζ’ **handlePull** (`Function`) - πŸ“ Pulls changes from the remote repository. - 🧩 **DocPreview** (`Component`) - πŸ“ UI component for previewing generated dataset documentation before saving. - πŸ—οΈ Layer: UI - ➑️ WRITES_TO `props` - ➑️ WRITES_TO `derived` - ➑️ WRITES_TO `state` - πŸ“¦ **DocPreview** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/components/llm/DocPreview.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **handleSave** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - 🧩 **ProviderConfig** (`Component`) - πŸ“ UI form for managing LLM provider configurations. - πŸ—οΈ Layer: UI - πŸ“₯ Props: providers: any, onSave: any - ➑️ WRITES_TO `t` - ⬅️ READS_FROM `t` - πŸ“¦ **ProviderConfig** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/components/llm/ProviderConfig.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **isMultimodalModel** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **resetForm** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleEdit** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **testConnection** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **handleSubmit** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **toggleActive** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **ValidationReport** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for frontend/src/components/llm/ValidationReport.svelte - πŸ—οΈ Layer: Unknown - Ζ’ **getStatusColor** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **frontend.src.components.llm.__tests__.provider_config_integration** (`Module`) - πŸ“ Protect edit-button interaction contract in LLM provider settings UI. - πŸ—οΈ Layer: UI Tests - πŸ”’ Invariant: Edit action keeps explicit click handler and opens normalized edit form. - Ζ’ **provider_config_edit_contract_tests** (`Function`) - πŸ“ Validate edit button handler wiring and normalized edit form state mapping. - πŸ“¦ **test_auth_debug** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for backend/test_auth_debug.py - πŸ—οΈ Layer: Unknown - Ζ’ **main** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **backend.delete_running_tasks** (`Module`) - πŸ“ Script to delete tasks with RUNNING status from the database. - πŸ—οΈ Layer: Utility - Ζ’ **delete_running_tasks** (`Function`) - πŸ“ Delete all tasks with RUNNING status from the database. - πŸ“¦ **AppModule** (`Module`) `[CRITICAL]` - πŸ“ The main entry point for the FastAPI application. It initializes the app, configures CORS, sets up dependencies, includes API routers, and defines the WebSocket endpoint for log streaming. - πŸ—οΈ Layer: UI (API) - πŸ”’ Invariant: All WebSocket connections must be properly cleaned up on disconnect. - πŸ“¦ **App** (`Global`) - πŸ“ The global FastAPI application instance. - Ζ’ **startup_event** (`Function`) - πŸ“ Handles application startup tasks, such as starting the scheduler. - Ζ’ **shutdown_event** (`Function`) - πŸ“ Handles application shutdown tasks, such as stopping the scheduler. - Ζ’ **network_error_handler** (`Function`) - πŸ“ Global exception handler for NetworkError. - Ζ’ **log_requests** (`Function`) - πŸ“ Middleware to log incoming HTTP requests and their response status. - πŸ“¦ **api.include_routers** (`Action`) - πŸ“ Registers all API routers with the FastAPI application. - πŸ—οΈ Layer: API - Ζ’ **websocket_endpoint** (`Function`) `[CRITICAL]` - πŸ“ Provides a WebSocket endpoint for real-time log streaming of a task with server-side filtering. - πŸ“¦ **StaticFiles** (`Mount`) - πŸ“ Mounts the frontend build directory to serve static assets. - Ζ’ **serve_spa** (`Function`) - πŸ“ Serves the SPA frontend for any path not matched by API routes. - Ζ’ **read_root** (`Function`) - πŸ“ A simple root endpoint to confirm that the API is running when frontend is missing. - Ζ’ **matches_filters** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **Dependencies** (`Module`) - πŸ“ Manages creation and provision of shared application dependencies, such as PluginLoader and TaskManager, to avoid circular imports. - πŸ—οΈ Layer: Core - Ζ’ **get_config_manager** (`Function`) - πŸ“ Dependency injector for ConfigManager. - Ζ’ **get_plugin_loader** (`Function`) - πŸ“ Dependency injector for PluginLoader. - Ζ’ **get_task_manager** (`Function`) - πŸ“ Dependency injector for TaskManager. - Ζ’ **get_scheduler_service** (`Function`) - πŸ“ Dependency injector for SchedulerService. - Ζ’ **get_resource_service** (`Function`) - πŸ“ Dependency injector for ResourceService. - Ζ’ **get_mapping_service** (`Function`) - πŸ“ Dependency injector for MappingService. - πŸ“¦ **oauth2_scheme** (`Variable`) - πŸ“ OAuth2 password bearer scheme for token extraction. - Ζ’ **get_current_user** (`Function`) - πŸ“ Dependency for retrieving currently authenticated user from a JWT. - Ζ’ **has_permission** (`Function`) - πŸ“ 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 - Ζ’ **test_dashboard_dataset_relations** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **backend.src.scripts.migrate_sqlite_to_postgres** (`Module`) - πŸ“ Migrates legacy config and task history from SQLite/file storage to PostgreSQL. - πŸ—οΈ Layer: Scripts - πŸ”’ Invariant: Script is idempotent for task_records and app_configurations. - πŸ“¦ **Constants** (`Section`) - Ζ’ **_json_load_if_needed** (`Function`) - πŸ“ Parses JSON-like values from SQLite TEXT/JSON columns to Python objects. - Ζ’ **_find_legacy_config_path** (`Function`) - πŸ“ Resolves the existing legacy config.json path from candidates. - Ζ’ **_connect_sqlite** (`Function`) - πŸ“ Opens a SQLite connection with row factory. - Ζ’ **_ensure_target_schema** (`Function`) - πŸ“ Ensures required PostgreSQL tables exist before migration. - Ζ’ **_migrate_config** (`Function`) - πŸ“ Migrates legacy config.json into app_configurations(global). - Ζ’ **_migrate_tasks_and_logs** (`Function`) - πŸ“ Migrates task_records and task_logs from SQLite into PostgreSQL. - Ζ’ **run_migration** (`Function`) - πŸ“ Orchestrates migration from SQLite/file to PostgreSQL. - Ζ’ **main** (`Function`) - πŸ“ CLI entrypoint. - πŸ“¦ **backend.src.scripts.seed_permissions** (`Module`) - πŸ“ Populates the auth database with initial system permissions. - πŸ—οΈ Layer: Scripts - πŸ”’ Invariant: Safe to run multiple times (idempotent). - πŸ“¦ **INITIAL_PERMISSIONS** (`Constant`) - Ζ’ **seed_permissions** (`Function`) - πŸ“ Inserts missing permissions into the database. - πŸ“¦ **backend.src.scripts.init_auth_db** (`Module`) - πŸ“ Initializes the auth database and creates the necessary tables. - πŸ—οΈ Layer: Scripts - πŸ”’ Invariant: Safe to run multiple times (idempotent). - πŸ”— CALLS -> `backend.src.core.database.init_db` - Ζ’ **run_init** (`Function`) - πŸ“ Main entry point for the initialization script. - πŸ“¦ **backend.src.scripts.create_admin** (`Module`) - πŸ“ CLI tool for creating the initial admin user. - πŸ—οΈ Layer: Scripts - πŸ”’ Invariant: Admin user must have the "Admin" role. - Ζ’ **create_admin** (`Function`) - πŸ“ Creates an admin user and necessary roles/permissions. - πŸ“¦ **backend.src.schemas.auth** (`Module`) - πŸ“ Pydantic schemas for authentication requests and responses. - πŸ—οΈ Layer: API - πŸ”’ Invariant: Sensitive fields like password must not be included in response schemas. - πŸ”— DEPENDS_ON -> `pydantic` - β„‚ **Token** (`Class`) `[TRIVIAL]` - πŸ“ Represents a JWT access token response. - β„‚ **TokenData** (`Class`) `[TRIVIAL]` - πŸ“ Represents the data encoded in a JWT token. - β„‚ **PermissionSchema** (`Class`) `[TRIVIAL]` - πŸ“ Represents a permission in API responses. - β„‚ **RoleSchema** (`Class`) - πŸ“ Represents a role in API responses. - β„‚ **RoleCreate** (`Class`) - πŸ“ Schema for creating a new role. - β„‚ **RoleUpdate** (`Class`) - πŸ“ Schema for updating an existing role. - β„‚ **ADGroupMappingSchema** (`Class`) - πŸ“ Represents an AD Group to Role mapping in API responses. - β„‚ **ADGroupMappingCreate** (`Class`) - πŸ“ Schema for creating an AD Group mapping. - β„‚ **UserBase** (`Class`) - πŸ“ Base schema for user data. - β„‚ **UserCreate** (`Class`) - πŸ“ Schema for creating a new user. - β„‚ **UserUpdate** (`Class`) - πŸ“ Schema for updating an existing user. - β„‚ **User** (`Class`) - πŸ“ Schema for user data in API responses. - πŸ“¦ **backend.src.core.superset_client** (`Module`) - πŸ“ ΠŸΡ€Π΅Π΄ΠΎΡΡ‚Π°Π²Π»ΡΠ΅Ρ‚ высокоуровнСвый ΠΊΠ»ΠΈΠ΅Π½Ρ‚ для взаимодСйствия с Superset REST API, инкапсулируя Π»ΠΎΠ³ΠΈΠΊΡƒ запросов, ΠΎΠ±Ρ€Π°Π±ΠΎΡ‚ΠΊΡƒ ошибок ΠΈ ΠΏΠ°Π³ΠΈΠ½Π°Ρ†ΠΈΡŽ. - πŸ—οΈ Layer: Core - πŸ”’ Invariant: All network operations must use the internal APIClient instance. - β„‚ **SupersetClient** (`Class`) - πŸ“ Класс-ΠΎΠ±Ρ‘Ρ€Ρ‚ΠΊΠ° Π½Π°Π΄ Superset REST API, ΠΏΡ€Π΅Π΄ΠΎΡΡ‚Π°Π²Π»ΡΡŽΡ‰ΠΈΠΉ ΠΌΠ΅Ρ‚ΠΎΠ΄Ρ‹ для Ρ€Π°Π±ΠΎΡ‚Ρ‹ с Π΄Π°ΡˆΠ±ΠΎΡ€Π΄Π°ΠΌΠΈ ΠΈ датасСтами. - Ζ’ **__init__** (`Function`) - πŸ“ Π˜Π½ΠΈΡ†ΠΈΠ°Π»ΠΈΠ·ΠΈΡ€ΡƒΠ΅Ρ‚ ΠΊΠ»ΠΈΠ΅Π½Ρ‚, провСряСт ΠΊΠΎΠ½Ρ„ΠΈΠ³ΡƒΡ€Π°Ρ†ΠΈΡŽ ΠΈ создаСт сСтСвой ΠΊΠ»ΠΈΠ΅Π½Ρ‚. - Ζ’ **authenticate** (`Function`) - πŸ“ Authenticates the client using the configured credentials. - Ζ’ **headers** (`Function`) - πŸ“ Π’ΠΎΠ·Π²Ρ€Π°Ρ‰Π°Π΅Ρ‚ Π±Π°Π·ΠΎΠ²Ρ‹Π΅ HTTP-Π·Π°Π³ΠΎΠ»ΠΎΠ²ΠΊΠΈ, ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅ΠΌΡ‹Π΅ сСтСвым ΠΊΠ»ΠΈΠ΅Π½Ρ‚ΠΎΠΌ. - Ζ’ **get_dashboards** (`Function`) - πŸ“ ΠŸΠΎΠ»ΡƒΡ‡Π°Π΅Ρ‚ ΠΏΠΎΠ»Π½Ρ‹ΠΉ список Π΄Π°ΡˆΠ±ΠΎΡ€Π΄ΠΎΠ², автоматичСски обрабатывая ΠΏΠ°Π³ΠΈΠ½Π°Ρ†ΠΈΡŽ. - Ζ’ **get_dashboards_summary** (`Function`) - πŸ“ Fetches dashboard metadata optimized for the grid. - Ζ’ **get_dashboard** (`Function`) - πŸ“ Fetches a single dashboard by ID. - Ζ’ **get_chart** (`Function`) - πŸ“ Fetches a single chart by ID. - Ζ’ **get_dashboard_detail** (`Function`) - πŸ“ Fetches detailed dashboard information including related charts and datasets. - Ζ’ **_extract_chart_ids_from_layout** (`Function`) - πŸ“ Traverses dashboard layout metadata and extracts chart IDs from common keys. - Ζ’ **export_dashboard** (`Function`) - πŸ“ ЭкспортируСт Π΄Π°ΡˆΠ±ΠΎΡ€Π΄ Π² Π²ΠΈΠ΄Π΅ ZIP-Π°Ρ€Ρ…ΠΈΠ²Π°. - Ζ’ **import_dashboard** (`Function`) - πŸ“ Π˜ΠΌΠΏΠΎΡ€Ρ‚ΠΈΡ€ΡƒΠ΅Ρ‚ Π΄Π°ΡˆΠ±ΠΎΡ€Π΄ ΠΈΠ· ZIP-Ρ„Π°ΠΉΠ»Π°. - Ζ’ **delete_dashboard** (`Function`) - πŸ“ УдаляСт Π΄Π°ΡˆΠ±ΠΎΡ€Π΄ ΠΏΠΎ Π΅Π³ΠΎ ID ΠΈΠ»ΠΈ slug. - Ζ’ **get_datasets** (`Function`) - πŸ“ ΠŸΠΎΠ»ΡƒΡ‡Π°Π΅Ρ‚ ΠΏΠΎΠ»Π½Ρ‹ΠΉ список датасСтов, автоматичСски обрабатывая ΠΏΠ°Π³ΠΈΠ½Π°Ρ†ΠΈΡŽ. - Ζ’ **get_datasets_summary** (`Function`) - πŸ“ Fetches dataset metadata optimized for the Dataset Hub grid. - Ζ’ **get_dataset_detail** (`Function`) - πŸ“ Fetches detailed dataset information including columns and linked dashboards - πŸ”— CALLS -> `self.get_dataset` - πŸ”— CALLS -> `self.network.request (for related_objects)` - Ζ’ **get_dataset** (`Function`) - πŸ“ ΠŸΠΎΠ»ΡƒΡ‡Π°Π΅Ρ‚ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΡŽ ΠΎ ΠΊΠΎΠ½ΠΊΡ€Π΅Ρ‚Π½ΠΎΠΌ датасСтС ΠΏΠΎ Π΅Π³ΠΎ ID. - Ζ’ **update_dataset** (`Function`) - πŸ“ ΠžΠ±Π½ΠΎΠ²Π»ΡΠ΅Ρ‚ Π΄Π°Π½Π½Ρ‹Π΅ датасСта ΠΏΠΎ Π΅Π³ΠΎ ID. - Ζ’ **get_databases** (`Function`) - πŸ“ ΠŸΠΎΠ»ΡƒΡ‡Π°Π΅Ρ‚ ΠΏΠΎΠ»Π½Ρ‹ΠΉ список Π±Π°Π· Π΄Π°Π½Π½Ρ‹Ρ…. - Ζ’ **get_database** (`Function`) - πŸ“ ΠŸΠΎΠ»ΡƒΡ‡Π°Π΅Ρ‚ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΡŽ ΠΎ ΠΊΠΎΠ½ΠΊΡ€Π΅Ρ‚Π½ΠΎΠΉ Π±Π°Π·Π΅ Π΄Π°Π½Π½Ρ‹Ρ… ΠΏΠΎ Π΅Ρ‘ ID. - Ζ’ **get_databases_summary** (`Function`) - πŸ“ Fetch a summary of databases including uuid, name, and engine. - Ζ’ **get_database_by_uuid** (`Function`) - πŸ“ Find a database by its UUID. - Ζ’ **_resolve_target_id_for_delete** (`Function`) - πŸ“ Resolves a dashboard ID from either an ID or a slug. - Ζ’ **_do_import** (`Function`) - πŸ“ Performs the actual multipart upload for import. - Ζ’ **_validate_export_response** (`Function`) - πŸ“ Validates that the export response is a non-empty ZIP archive. - Ζ’ **_resolve_export_filename** (`Function`) - πŸ“ Determines the filename for an exported dashboard. - Ζ’ **_validate_query_params** (`Function`) - πŸ“ Ensures query parameters have default page and page_size. - Ζ’ **_fetch_total_object_count** (`Function`) - πŸ“ Fetches the total number of items for a given endpoint. - Ζ’ **_fetch_all_pages** (`Function`) - πŸ“ 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]` - πŸ“ Auto-detected function (orphan) - Ζ’ **as_bool** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **ConfigManagerModule** (`Module`) - πŸ“ Manages application configuration persisted in database with one-time migration from JSON. - πŸ—οΈ Layer: Core - πŸ”’ Invariant: Configuration must always be valid according to AppConfig model. - πŸ”— DEPENDS_ON -> `ConfigModels` - πŸ”— DEPENDS_ON -> `AppConfigRecord` - πŸ”— CALLS -> `logger` - β„‚ **ConfigManager** (`Class`) - πŸ“ A class to handle application configuration persistence and management. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the ConfigManager. - Ζ’ **_default_config** (`Function`) - πŸ“ Returns default application configuration. - Ζ’ **_load_from_legacy_file** (`Function`) - πŸ“ Loads legacy configuration from config.json for migration fallback. - Ζ’ **_get_record** (`Function`) - πŸ“ Loads config record from DB. - Ζ’ **_load_config** (`Function`) - πŸ“ Loads the configuration from DB or performs one-time migration from JSON file. - Ζ’ **_save_config_to_db** (`Function`) - πŸ“ Saves the provided configuration object to DB. - Ζ’ **save** (`Function`) - πŸ“ Saves the current configuration state to DB. - Ζ’ **get_config** (`Function`) - πŸ“ Returns the current configuration. - Ζ’ **update_global_settings** (`Function`) - πŸ“ Updates the global settings and persists the change. - Ζ’ **validate_path** (`Function`) - πŸ“ Validates if a path exists and is writable. - Ζ’ **get_environments** (`Function`) - πŸ“ Returns the list of configured environments. - Ζ’ **has_environments** (`Function`) - πŸ“ Checks if at least one environment is configured. - Ζ’ **get_environment** (`Function`) - πŸ“ Returns a single environment by ID. - Ζ’ **add_environment** (`Function`) - πŸ“ Adds a new environment to the configuration. - Ζ’ **update_environment** (`Function`) - πŸ“ Updates an existing environment. - Ζ’ **delete_environment** (`Function`) - πŸ“ Deletes an environment by ID. - πŸ“¦ **SchedulerModule** (`Module`) - πŸ“ Manages scheduled tasks using APScheduler. - πŸ—οΈ Layer: Core - β„‚ **SchedulerService** (`Class`) - πŸ“ Provides a service to manage scheduled backup tasks. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the scheduler service with task and config managers. - Ζ’ **start** (`Function`) - πŸ“ Starts the background scheduler and loads initial schedules. - Ζ’ **stop** (`Function`) - πŸ“ Stops the background scheduler. - Ζ’ **load_schedules** (`Function`) - πŸ“ Loads backup schedules from configuration and registers them. - Ζ’ **add_backup_job** (`Function`) - πŸ“ Adds a scheduled backup job for an environment. - Ζ’ **_trigger_backup** (`Function`) - πŸ“ Triggered by the scheduler to start a backup task. - πŸ“¦ **ConfigModels** (`Module`) - πŸ“ Defines the data models for application configuration using Pydantic. - πŸ—οΈ Layer: Core - πŸ“¦ **Schedule** (`DataClass`) - πŸ“ Represents a backup schedule configuration. - πŸ“¦ **Environment** (`DataClass`) - πŸ“ Represents a Superset environment configuration. - πŸ“¦ **LoggingConfig** (`DataClass`) - πŸ“ Defines the configuration for the application's logging system. - πŸ“¦ **GlobalSettings** (`DataClass`) - πŸ“ Represents global application settings. - πŸ“¦ **AppConfig** (`DataClass`) - πŸ“ The root configuration model containing all application settings. - πŸ“¦ **backend.src.core.database** (`Module`) - πŸ“ Configures database connection and session management (PostgreSQL-first). - πŸ—οΈ Layer: Core - πŸ”’ Invariant: A single engine instance is used for the entire application. - πŸ”— DEPENDS_ON -> `sqlalchemy` - πŸ”— DEPENDS_ON -> `backend.src.models.mapping` - πŸ”— DEPENDS_ON -> `backend.src.core.auth.config` - πŸ“¦ **BASE_DIR** (`Variable`) - πŸ“ Base directory for the backend. - πŸ“¦ **DATABASE_URL** (`Constant`) - πŸ“ URL for the main application database. - πŸ“¦ **TASKS_DATABASE_URL** (`Constant`) - πŸ“ URL for the tasks execution database. - πŸ“¦ **AUTH_DATABASE_URL** (`Constant`) - πŸ“ URL for the authentication database. - πŸ“¦ **engine** (`Variable`) - πŸ“ SQLAlchemy engine for mappings database. - πŸ“¦ **tasks_engine** (`Variable`) - πŸ“ SQLAlchemy engine for tasks database. - πŸ“¦ **auth_engine** (`Variable`) - πŸ“ SQLAlchemy engine for authentication database. - β„‚ **SessionLocal** (`Class`) `[TRIVIAL]` - πŸ“ A session factory for the main mappings database. - β„‚ **TasksSessionLocal** (`Class`) `[TRIVIAL]` - πŸ“ A session factory for the tasks execution database. - β„‚ **AuthSessionLocal** (`Class`) `[TRIVIAL]` - πŸ“ A session factory for the authentication database. - Ζ’ **init_db** (`Function`) - πŸ“ Initializes the database by creating all tables. - Ζ’ **get_db** (`Function`) - πŸ“ Dependency for getting a database session. - Ζ’ **get_tasks_db** (`Function`) - πŸ“ Dependency for getting a tasks database session. - Ζ’ **get_auth_db** (`Function`) - πŸ“ Dependency for getting an authentication database session. - Ζ’ **_build_engine** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **LoggerModule** (`Module`) - πŸ“ Configures the application's logging system, including a custom handler for buffering logs and streaming them over WebSockets. - πŸ—οΈ Layer: Core - β„‚ **BeliefFormatter** (`Class`) - πŸ“ Custom logging formatter that adds belief state prefixes to log messages. - Ζ’ **format** (`Function`) - πŸ“ Formats the log record, adding belief state context if available. - β„‚ **LogEntry** (`Class`) - πŸ“ A Pydantic model representing a single, structured log entry. This is a re-definition for consistency, as it's also defined in task_manager.py. - Ζ’ **belief_scope** (`Function`) - πŸ“ Context manager for structured Belief State logging. - Ζ’ **configure_logger** (`Function`) - πŸ“ Configures the logger with the provided logging settings. - Ζ’ **get_task_log_level** (`Function`) - πŸ“ Returns the current task log level filter. - Ζ’ **should_log_task_level** (`Function`) - πŸ“ Checks if a log level should be recorded based on task_log_level setting. - β„‚ **WebSocketLogHandler** (`Class`) - πŸ“ A custom logging handler that captures log records into a buffer. It is designed to be extended for real-time log streaming over WebSockets. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the handler with a fixed-capacity buffer. - Ζ’ **emit** (`Function`) - πŸ“ Captures a log record, formats it, and stores it in the buffer. - Ζ’ **get_recent_logs** (`Function`) - πŸ“ Returns a list of recent log entries from the buffer. - πŸ“¦ **Logger** (`Global`) - πŸ“ The global logger instance for the application, configured with both a console handler and the custom WebSocket handler. - Ζ’ **believed** (`Function`) - πŸ“ A decorator that wraps a function in a belief scope. - Ζ’ **decorator** (`Function`) - πŸ“ Internal decorator for belief scope. - Ζ’ **explore** (`Function`) - πŸ“ Logs an EXPLORE message (Van der Waals force) for searching, alternatives, and hypotheses. - Ζ’ **reason** (`Function`) - πŸ“ Logs a REASON message (Covalent bond) for strict deduction and core logic. - Ζ’ **reflect** (`Function`) - πŸ“ Logs a REFLECT message (Hydrogen bond) for self-check and structural validation. - β„‚ **PluginLoader** (`Class`) - πŸ“ Scans a specified directory for Python modules, dynamically loads them, and registers any classes that are valid implementations of the PluginBase interface. - πŸ—οΈ Layer: Core - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the PluginLoader with a directory to scan. - Ζ’ **_load_plugins** (`Function`) - πŸ“ Scans the plugin directory and loads all valid plugins. - Ζ’ **_load_module** (`Function`) - πŸ“ Loads a single Python module and discovers PluginBase implementations. - Ζ’ **_register_plugin** (`Function`) - πŸ“ Registers a PluginBase instance and its configuration. - Ζ’ **get_plugin** (`Function`) - πŸ“ Retrieves a loaded plugin instance by its ID. - Ζ’ **get_all_plugin_configs** (`Function`) - πŸ“ Returns a list of all registered plugin configurations. - Ζ’ **has_plugin** (`Function`) - πŸ“ Checks if a plugin with the given ID is registered. - πŸ“¦ **backend.src.core.migration_engine** (`Module`) - πŸ“ Handles the interception and transformation of Superset asset ZIP archives. - πŸ—οΈ Layer: Core - πŸ”’ Invariant: ZIP structure must be preserved after transformation. - πŸ”— 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, 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 - πŸ”’ Invariant: All plugins MUST inherit from this class. - Ζ’ **id** (`Function`) - πŸ“ Returns the unique identifier for the plugin. - Ζ’ **name** (`Function`) - πŸ“ Returns the human-readable name of the plugin. - Ζ’ **description** (`Function`) - πŸ“ Returns a brief description of the plugin. - Ζ’ **version** (`Function`) - πŸ“ Returns the version of the plugin. - Ζ’ **required_permission** (`Function`) - πŸ“ Returns the required permission string to execute this plugin. - Ζ’ **ui_route** (`Function`) - πŸ“ Returns the frontend route for the plugin's UI, if applicable. - Ζ’ **get_schema** (`Function`) - πŸ“ Returns the JSON schema for the plugin's input parameters. - Ζ’ **execute** (`Function`) - πŸ“ Executes the plugin's core logic. - β„‚ **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 - πŸ”’ Invariant: All sensitive configuration must have defaults or be loaded from environment. - πŸ”— DEPENDS_ON -> `pydantic` - β„‚ **AuthConfig** (`Class`) - πŸ“ Holds authentication-related settings. - πŸ“¦ **auth_config** (`Variable`) - πŸ“ Singleton instance of AuthConfig. - πŸ“¦ **backend.src.core.auth.jwt** (`Module`) - πŸ“ JWT token generation and validation logic. - πŸ—οΈ Layer: Core - πŸ”’ Invariant: Tokens must include expiration time and user identifier. - πŸ”— DEPENDS_ON -> `jose` - Ζ’ **create_access_token** (`Function`) - πŸ“ Generates a new JWT access token. - Ζ’ **decode_token** (`Function`) - πŸ“ Decodes and validates a JWT token. - πŸ“¦ **backend.src.core.auth.oauth** (`Module`) - πŸ“ ADFS OIDC configuration and client using Authlib. - πŸ—οΈ Layer: Core - πŸ”’ Invariant: Must use secure OIDC flows. - πŸ”— DEPENDS_ON -> `authlib` - πŸ“¦ **oauth** (`Variable`) - πŸ“ Global Authlib OAuth registry. - Ζ’ **register_adfs** (`Function`) - πŸ“ Registers the ADFS OIDC client. - Ζ’ **is_adfs_configured** (`Function`) - πŸ“ Checks if ADFS is properly configured. - πŸ“¦ **backend.src.core.auth.logger** (`Module`) - πŸ“ Audit logging for security-related events. - πŸ—οΈ Layer: Core - πŸ”’ Invariant: Must not log sensitive data like passwords or full tokens. - Ζ’ **log_security_event** (`Function`) - πŸ“ Logs a security-related event for audit trails. - πŸ“¦ **backend.src.core.auth.security** (`Module`) - πŸ“ Utility for password hashing and verification using Passlib. - πŸ—οΈ Layer: Core - πŸ”’ Invariant: Uses bcrypt for hashing with standard work factor. - πŸ”— DEPENDS_ON -> `passlib` - Ζ’ **verify_password** (`Function`) - πŸ“ Verifies a plain password against a hashed password. - Ζ’ **get_password_hash** (`Function`) - πŸ“ Generates a bcrypt hash for a plain password. - πŸ“¦ **backend.src.core.auth.repository** (`Module`) - πŸ“ Data access layer for authentication-related entities. - πŸ—οΈ Layer: Core - πŸ”’ Invariant: All database operations must be performed within a session. - πŸ”— DEPENDS_ON -> `sqlalchemy` - β„‚ **AuthRepository** (`Class`) - πŸ“ Encapsulates database operations for authentication. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the repository with a database session. - Ζ’ **get_user_by_username** (`Function`) - πŸ“ Retrieves a user by their username. - Ζ’ **get_user_by_id** (`Function`) - πŸ“ Retrieves a user by their unique ID. - Ζ’ **get_role_by_name** (`Function`) - πŸ“ Retrieves a role by its name. - Ζ’ **update_last_login** (`Function`) - πŸ“ Updates the last_login timestamp for a user. - Ζ’ **get_role_by_id** (`Function`) - πŸ“ Retrieves a role by its unique ID. - Ζ’ **get_permission_by_id** (`Function`) - πŸ“ Retrieves a permission by its unique ID. - Ζ’ **get_permission_by_resource_action** (`Function`) - πŸ“ Retrieves a permission by resource and action. - Ζ’ **list_permissions** (`Function`) - πŸ“ Lists all available permissions. - πŸ“¦ **test_auth** (`Module`) - πŸ“ Unit tests for authentication module - πŸ—οΈ Layer: Domain - Ζ’ **db_session** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **auth_service** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **auth_repo** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_create_user** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_authenticate_user** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_create_session** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_role_permission_association** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_user_role_association** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_ad_group_mapping** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **backend.core.utils.fileio** (`Module`) - πŸ“ ΠŸΡ€Π΅Π΄ΠΎΡΡ‚Π°Π²Π»ΡΠ΅Ρ‚ Π½Π°Π±ΠΎΡ€ ΡƒΡ‚ΠΈΠ»ΠΈΡ‚ для управлСния Ρ„Π°ΠΉΠ»ΠΎΠ²Ρ‹ΠΌΠΈ опСрациями, Π²ΠΊΠ»ΡŽΡ‡Π°Ρ Ρ€Π°Π±ΠΎΡ‚Ρƒ с Π²Ρ€Π΅ΠΌΠ΅Π½Π½Ρ‹ΠΌΠΈ Ρ„Π°ΠΉΠ»Π°ΠΌΠΈ, Π°Ρ€Ρ…ΠΈΠ²Π°ΠΌΠΈ ZIP, Ρ„Π°ΠΉΠ»Π°ΠΌΠΈ YAML ΠΈ очистку Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΉ. - πŸ—οΈ Layer: Infra - πŸ”— DEPENDS_ON -> `backend.src.core.logger` - πŸ”— DEPENDS_ON -> `pyyaml` - β„‚ **InvalidZipFormatError** (`Class`) - πŸ“ Exception raised when a file is not a valid ZIP archive. - Ζ’ **create_temp_file** (`Function`) - πŸ“ ΠšΠΎΠ½Ρ‚Π΅ΠΊΡΡ‚Π½Ρ‹ΠΉ ΠΌΠ΅Π½Π΅Π΄ΠΆΠ΅Ρ€ для создания Π²Ρ€Π΅ΠΌΠ΅Π½Π½ΠΎΠ³ΠΎ Ρ„Π°ΠΉΠ»Π° ΠΈΠ»ΠΈ Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ с Π³Π°Ρ€Π°Π½Ρ‚ΠΈΡ€ΠΎΠ²Π°Π½Π½Ρ‹ΠΌ ΡƒΠ΄Π°Π»Π΅Π½ΠΈΠ΅ΠΌ. - Ζ’ **remove_empty_directories** (`Function`) - πŸ“ РСкурсивно удаляСт всС пустыС ΠΏΠΎΠ΄Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ, начиная с ΡƒΠΊΠ°Π·Π°Π½Π½ΠΎΠ³ΠΎ ΠΏΡƒΡ‚ΠΈ. - Ζ’ **read_dashboard_from_disk** (`Function`) - πŸ“ Π§ΠΈΡ‚Π°Π΅Ρ‚ Π±ΠΈΠ½Π°Ρ€Π½ΠΎΠ΅ содСрТимоС Ρ„Π°ΠΉΠ»Π° с диска. - Ζ’ **calculate_crc32** (`Function`) - πŸ“ ВычисляСт ΠΊΠΎΠ½Ρ‚Ρ€ΠΎΠ»ΡŒΠ½ΡƒΡŽ сумму CRC32 для Ρ„Π°ΠΉΠ»Π°. - πŸ“¦ **RetentionPolicy** (`DataClass`) - πŸ“ ΠžΠΏΡ€Π΅Π΄Π΅Π»ΡΠ΅Ρ‚ ΠΏΠΎΠ»ΠΈΡ‚ΠΈΠΊΡƒ хранСния для Π°Ρ€Ρ…ΠΈΠ²ΠΎΠ² (Π΅ΠΆΠ΅Π΄Π½Π΅Π²Π½Ρ‹Π΅, Π΅ΠΆΠ΅Π½Π΅Π΄Π΅Π»ΡŒΠ½Ρ‹Π΅, СТСмСсячныС). - Ζ’ **archive_exports** (`Function`) - πŸ“ УправляСт Π°Ρ€Ρ…ΠΈΠ²ΠΎΠΌ экспортированных Ρ„Π°ΠΉΠ»ΠΎΠ², примСняя ΠΏΠΎΠ»ΠΈΡ‚ΠΈΠΊΡƒ хранСния ΠΈ Π΄Π΅Π΄ΡƒΠΏΠ»ΠΈΠΊΠ°Ρ†ΠΈΡŽ. - πŸ”— CALLS -> `apply_retention_policy` - πŸ”— CALLS -> `calculate_crc32` - Ζ’ **apply_retention_policy** (`Function`) - πŸ“ (Helper) ΠŸΡ€ΠΈΠΌΠ΅Π½ΡΠ΅Ρ‚ ΠΏΠΎΠ»ΠΈΡ‚ΠΈΠΊΡƒ хранСния ΠΊ списку Ρ„Π°ΠΉΠ»ΠΎΠ², возвращая Ρ‚Π΅, Ρ‡Ρ‚ΠΎ Π½ΡƒΠΆΠ½ΠΎ ΡΠΎΡ…Ρ€Π°Π½ΠΈΡ‚ΡŒ. - Ζ’ **save_and_unpack_dashboard** (`Function`) - πŸ“ БохраняСт Π±ΠΈΠ½Π°Ρ€Π½ΠΎΠ΅ содСрТимоС ZIP-Π°Ρ€Ρ…ΠΈΠ²Π° Π½Π° диск ΠΈ ΠΎΠΏΡ†ΠΈΠΎΠ½Π°Π»ΡŒΠ½ΠΎ распаковываСт Π΅Π³ΠΎ. - Ζ’ **update_yamls** (`Function`) - πŸ“ ΠžΠ±Π½ΠΎΠ²Π»ΡΠ΅Ρ‚ ΠΊΠΎΠ½Ρ„ΠΈΠ³ΡƒΡ€Π°Ρ†ΠΈΠΈ Π² YAML-Ρ„Π°ΠΉΠ»Π°Ρ…, замСняя значСния ΠΈΠ»ΠΈ примСняя regex. - πŸ”— CALLS -> `_update_yaml_file` - Ζ’ **_update_yaml_file** (`Function`) - πŸ“ (Helper) ΠžΠ±Π½ΠΎΠ²Π»ΡΠ΅Ρ‚ ΠΎΠ΄ΠΈΠ½ YAML Ρ„Π°ΠΉΠ». - Ζ’ **replacer** (`Function`) - πŸ“ Ѐункция Π·Π°ΠΌΠ΅Π½Ρ‹, ΡΠΎΡ…Ρ€Π°Π½ΡΡŽΡ‰Π°Ρ ΠΊΠ°Π²Ρ‹Ρ‡ΠΊΠΈ Ссли ΠΎΠ½ΠΈ Π±Ρ‹Π»ΠΈ. - Ζ’ **create_dashboard_export** (`Function`) - πŸ“ Π‘ΠΎΠ·Π΄Π°Π΅Ρ‚ ZIP-Π°Ρ€Ρ…ΠΈΠ² ΠΈΠ· ΡƒΠΊΠ°Π·Π°Π½Π½Ρ‹Ρ… исходных ΠΏΡƒΡ‚Π΅ΠΉ. - Ζ’ **sanitize_filename** (`Function`) - πŸ“ ΠžΡ‡ΠΈΡ‰Π°Π΅Ρ‚ строку ΠΎΡ‚ символов, нСдопустимых Π² ΠΈΠΌΠ΅Π½Π°Ρ… Ρ„Π°ΠΉΠ»ΠΎΠ². - Ζ’ **get_filename_from_headers** (`Function`) - πŸ“ Π˜Π·Π²Π»Π΅ΠΊΠ°Π΅Ρ‚ имя Ρ„Π°ΠΉΠ»Π° ΠΈΠ· HTTP Π·Π°Π³ΠΎΠ»ΠΎΠ²ΠΊΠ° 'Content-Disposition'. - Ζ’ **consolidate_archive_folders** (`Function`) - πŸ“ ΠšΠΎΠ½ΡΠΎΠ»ΠΈΠ΄ΠΈΡ€ΡƒΠ΅Ρ‚ Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ Π°Ρ€Ρ…ΠΈΠ²ΠΎΠ² Π½Π° основС ΠΎΠ±Ρ‰Π΅Π³ΠΎ слага Π² ΠΈΠΌΠ΅Π½ΠΈ. - πŸ“¦ **backend.core.utils.network** (`Module`) - πŸ“ Π˜Π½ΠΊΠ°ΠΏΡΡƒΠ»ΠΈΡ€ΡƒΠ΅Ρ‚ Π½ΠΈΠ·ΠΊΠΎΡƒΡ€ΠΎΠ²Π½Π΅Π²ΡƒΡŽ HTTP-Π»ΠΎΠ³ΠΈΠΊΡƒ для взаимодСйствия с Superset API, Π²ΠΊΠ»ΡŽΡ‡Π°Ρ Π°ΡƒΡ‚Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ†ΠΈΡŽ, ΡƒΠΏΡ€Π°Π²Π»Π΅Π½ΠΈΠ΅ сСссиСй, retry-Π»ΠΎΠ³ΠΈΠΊΡƒ ΠΈ ΠΎΠ±Ρ€Π°Π±ΠΎΡ‚ΠΊΡƒ ошибок. - πŸ—οΈ Layer: Infra - πŸ”— DEPENDS_ON -> `backend.src.core.logger` - πŸ”— DEPENDS_ON -> `requests` - β„‚ **SupersetAPIError** (`Class`) - πŸ“ Base exception for all Superset API related errors. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the exception with a message and context. - β„‚ **AuthenticationError** (`Class`) - πŸ“ Exception raised when authentication fails. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the authentication error. - β„‚ **PermissionDeniedError** (`Class`) - πŸ“ Exception raised when access is denied. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the permission denied error. - β„‚ **DashboardNotFoundError** (`Class`) - πŸ“ Exception raised when a dashboard cannot be found. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the not found error with resource ID. - β„‚ **NetworkError** (`Class`) - πŸ“ Exception raised when a network level error occurs. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the network error. - β„‚ **APIClient** (`Class`) - πŸ“ Π˜Π½ΠΊΠ°ΠΏΡΡƒΠ»ΠΈΡ€ΡƒΠ΅Ρ‚ HTTP-Π»ΠΎΠ³ΠΈΠΊΡƒ для Ρ€Π°Π±ΠΎΡ‚Ρ‹ с API, Π²ΠΊΠ»ΡŽΡ‡Π°Ρ сСссии, Π°ΡƒΡ‚Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ†ΠΈΡŽ, ΠΈ ΠΎΠ±Ρ€Π°Π±ΠΎΡ‚ΠΊΡƒ запросов. - Ζ’ **__init__** (`Function`) - πŸ“ Π˜Π½ΠΈΡ†ΠΈΠ°Π»ΠΈΠ·ΠΈΡ€ΡƒΠ΅Ρ‚ API ΠΊΠ»ΠΈΠ΅Π½Ρ‚ с ΠΊΠΎΠ½Ρ„ΠΈΠ³ΡƒΡ€Π°Ρ†ΠΈΠ΅ΠΉ, сСссиСй ΠΈ Π»ΠΎΠ³Π³Π΅Ρ€ΠΎΠΌ. - Ζ’ **_init_session** (`Function`) - πŸ“ Π‘ΠΎΠ·Π΄Π°Π΅Ρ‚ ΠΈ настраиваСт `requests.Session` с retry-Π»ΠΎΠ³ΠΈΠΊΠΎΠΉ. - Ζ’ **authenticate** (`Function`) - πŸ“ ВыполняСт Π°ΡƒΡ‚Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ†ΠΈΡŽ Π² Superset API ΠΈ ΠΏΠΎΠ»ΡƒΡ‡Π°Π΅Ρ‚ access ΠΈ CSRF Ρ‚ΠΎΠΊΠ΅Π½Ρ‹. - Ζ’ **headers** (`Function`) - πŸ“ Π’ΠΎΠ·Π²Ρ€Π°Ρ‰Π°Π΅Ρ‚ HTTP-Π·Π°Π³ΠΎΠ»ΠΎΠ²ΠΊΠΈ для Π°ΡƒΡ‚Π΅Π½Ρ‚ΠΈΡ„ΠΈΡ†ΠΈΡ€ΠΎΠ²Π°Π½Π½Ρ‹Ρ… запросов. - Ζ’ **request** (`Function`) - πŸ“ ВыполняСт ΡƒΠ½ΠΈΠ²Π΅Ρ€ΡΠ°Π»ΡŒΠ½Ρ‹ΠΉ HTTP-запрос ΠΊ API. - Ζ’ **_handle_http_error** (`Function`) - πŸ“ (Helper) ΠŸΡ€Π΅ΠΎΠ±Ρ€Π°Π·ΡƒΠ΅Ρ‚ HTTP ошибки Π² кастомныС ΠΈΡΠΊΠ»ΡŽΡ‡Π΅Π½ΠΈΡ. - Ζ’ **_handle_network_error** (`Function`) - πŸ“ (Helper) ΠŸΡ€Π΅ΠΎΠ±Ρ€Π°Π·ΡƒΠ΅Ρ‚ сСтСвыС ошибки Π² `NetworkError`. - Ζ’ **upload_file** (`Function`) - πŸ“ Π—Π°Π³Ρ€ΡƒΠΆΠ°Π΅Ρ‚ Ρ„Π°ΠΉΠ» Π½Π° сСрвСр Ρ‡Π΅Ρ€Π΅Π· multipart/form-data. - Ζ’ **_perform_upload** (`Function`) - πŸ“ (Helper) ВыполняСт POST запрос с Ρ„Π°ΠΉΠ»ΠΎΠΌ. - Ζ’ **fetch_paginated_count** (`Function`) - πŸ“ ΠŸΠΎΠ»ΡƒΡ‡Π°Π΅Ρ‚ ΠΎΠ±Ρ‰Π΅Π΅ количСство элСмСнтов для ΠΏΠ°Π³ΠΈΠ½Π°Ρ†ΠΈΠΈ. - Ζ’ **fetch_paginated_data** (`Function`) - πŸ“ АвтоматичСски собираСт Π΄Π°Π½Π½Ρ‹Π΅ со всСх страниц ΠΏΠ°Π³ΠΈΠ½ΠΈΡ€ΠΎΠ²Π°Π½Π½ΠΎΠ³ΠΎ эндпоинта. - Ζ’ **init_poolmanager** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **backend.src.core.utils.matching** (`Module`) - πŸ“ Provides utility functions for fuzzy matching database names. - πŸ—οΈ Layer: Core - πŸ”’ Invariant: Confidence scores are returned as floats between 0.0 and 1.0. - πŸ”— DEPENDS_ON -> `rapidfuzz` - Ζ’ **suggest_mappings** (`Function`) - πŸ“ Suggests mappings between source and target databases using fuzzy matching. - πŸ“¦ **backend.core.utils.dataset_mapper** (`Module`) - πŸ“ Π­Ρ‚ΠΎΡ‚ ΠΌΠΎΠ΄ΡƒΠ»ΡŒ ΠΎΡ‚Π²Π΅Ρ‡Π°Π΅Ρ‚ Π·Π° ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΌΠ΅Ρ‚Π°Π΄Π°Π½Π½Ρ‹Ρ… (verbose_map) Π² датасСтах Superset, извлСкая ΠΈΡ… ΠΈΠ· PostgreSQL ΠΈΠ»ΠΈ XLSX-Ρ„Π°ΠΉΠ»ΠΎΠ². - πŸ—οΈ Layer: Domain - πŸ”— DEPENDS_ON -> `backend.core.superset_client` - πŸ”— DEPENDS_ON -> `pandas` - πŸ”— DEPENDS_ON -> `psycopg2` - β„‚ **DatasetMapper** (`Class`) - πŸ“ Класс для ΠΌΠ΅ΠΏΠΏΠΈΠ½Π³Π° ΠΈ обновлСния verbose_map Π² датасСтах Superset. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the mapper. - Ζ’ **get_postgres_comments** (`Function`) - πŸ“ Π˜Π·Π²Π»Π΅ΠΊΠ°Π΅Ρ‚ ΠΊΠΎΠΌΠΌΠ΅Π½Ρ‚Π°Ρ€ΠΈΠΈ ΠΊ ΠΊΠΎΠ»ΠΎΠ½ΠΊΠ°ΠΌ ΠΈΠ· систСмного ΠΊΠ°Ρ‚Π°Π»ΠΎΠ³Π° PostgreSQL. - Ζ’ **load_excel_mappings** (`Function`) - πŸ“ Π—Π°Π³Ρ€ΡƒΠΆΠ°Π΅Ρ‚ ΠΌΠ΅ΠΏΠΏΠΈΠ½Π³ΠΈ 'column_name' -> 'column_comment' ΠΈΠ· XLSX Ρ„Π°ΠΉΠ»Π°. - Ζ’ **run_mapping** (`Function`) - πŸ“ Основная функция для выполнСния ΠΌΠ΅ΠΏΠΏΠΈΠ½Π³Π° ΠΈ обновлСния verbose_map датасСта Π² Superset. - πŸ”— CALLS -> `self.get_postgres_comments` - πŸ”— CALLS -> `self.load_excel_mappings` - πŸ”— CALLS -> `superset_client.get_dataset` - πŸ”— CALLS -> `superset_client.update_dataset` - πŸ“¦ **test_logger** (`Module`) - πŸ“ Unit tests for logger module - πŸ—οΈ Layer: Infra - Ζ’ **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`) - πŸ“ Test that belief_scope logs Coherence:Failed on exception. - Ζ’ **test_belief_scope_success_coherence** (`Function`) - πŸ“ Test that belief_scope logs Coherence:OK on success. - Ζ’ **test_belief_scope_not_visible_at_info** (`Function`) - πŸ“ Test that belief_scope Entry/Exit/Coherence logs are NOT visible at INFO level. - Ζ’ **test_task_log_level_default** (`Function`) - πŸ“ Test that default task log level is INFO. - Ζ’ **test_should_log_task_level** (`Function`) - πŸ“ Test that should_log_task_level correctly filters log levels. - Ζ’ **test_configure_logger_task_log_level** (`Function`) - πŸ“ 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 - πŸ”’ Invariant: Each TaskLogger instance is bound to a specific task_id and default source. - πŸ”— DEPENDS_ON -> `TaskManager, CALLS -> TaskManager._add_log` - β„‚ **TaskLogger** (`Class`) `[CRITICAL]` - πŸ“ A wrapper around TaskManager._add_log that carries task_id and source context. - πŸ”’ Invariant: All log calls include the task_id and source. - Ζ’ **__init__** (`Function`) - πŸ“ Initialize the TaskLogger with task context. - Ζ’ **with_source** (`Function`) - πŸ“ Create a sub-logger with a different default source. - Ζ’ **_log** (`Function`) - πŸ“ Internal method to log a message at a given level. - Ζ’ **debug** (`Function`) - πŸ“ Log a DEBUG level message. - Ζ’ **info** (`Function`) - πŸ“ Log an INFO level message. - Ζ’ **warning** (`Function`) - πŸ“ Log a WARNING level message. - Ζ’ **error** (`Function`) - πŸ“ Log an ERROR level message. - Ζ’ **progress** (`Function`) - πŸ“ Log a progress update with percentage. - πŸ“¦ **TaskPersistenceModule** (`Module`) `[CRITICAL]` - πŸ“ Handles the persistence of tasks using SQLAlchemy and the tasks.db database. - πŸ—οΈ Layer: Core - πŸ”’ Invariant: Database schema must match the TaskRecord model structure. - β„‚ **TaskPersistenceService** (`Class`) `[CRITICAL]` - πŸ“ Provides methods to save and load tasks from the tasks.db database using SQLAlchemy. - πŸ”’ Invariant: Persistence must handle potentially missing task fields natively. - Ζ’ **_json_load_if_needed** (`Function`) - πŸ“ Safely load JSON strings from DB if necessary - Ζ’ **_parse_datetime** (`Function`) - πŸ“ Safely parse a datetime string from the database - Ζ’ **_resolve_environment_id** (`Function`) - πŸ“ Resolve environment id based on provided value or fallback to default - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the persistence service. - Ζ’ **persist_task** (`Function`) - πŸ“ Persists or updates a single task in the database. - Ζ’ **persist_tasks** (`Function`) - πŸ“ Persists multiple tasks. - Ζ’ **load_tasks** (`Function`) - πŸ“ Loads tasks from the database. - Ζ’ **delete_tasks** (`Function`) - πŸ“ Deletes specific tasks from the database. - β„‚ **TaskLogPersistenceService** (`Class`) `[CRITICAL]` - πŸ“ Provides methods to save and query task logs from the task_logs table. - πŸ”’ Invariant: Log entries are batch-inserted for performance. - πŸ”— DEPENDS_ON -> `TaskLogRecord` - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the TaskLogPersistenceService - Ζ’ **add_logs** (`Function`) - πŸ“ Batch insert log entries for a task. - Ζ’ **get_logs** (`Function`) - πŸ“ Query logs for a task with filtering and pagination. - Ζ’ **get_log_stats** (`Function`) - πŸ“ Get statistics about logs for a task. - Ζ’ **get_sources** (`Function`) - πŸ“ Get unique sources for a task's logs. - Ζ’ **delete_logs_for_task** (`Function`) - πŸ“ Delete all logs for a specific task. - Ζ’ **delete_logs_for_tasks** (`Function`) - πŸ“ Delete all logs for multiple tasks. - Ζ’ **json_serializable** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **TaskManagerModule** (`Module`) `[CRITICAL]` - πŸ“ Manages the lifecycle of tasks, including their creation, execution, and state tracking. It uses a thread pool to run plugins asynchronously. - πŸ—οΈ Layer: Core - πŸ”’ Invariant: Task IDs are unique. - β„‚ **TaskManager** (`Class`) `[CRITICAL]` - πŸ“ Manages the lifecycle of tasks, including their creation, execution, and state tracking. - πŸ”’ Invariant: Log entries are never deleted after being added to a task. - Ζ’ **__init__** (`Function`) - πŸ“ Initialize the TaskManager with dependencies. - Ζ’ **_flusher_loop** (`Function`) - πŸ“ Background thread that periodically flushes log buffer to database. - Ζ’ **_flush_logs** (`Function`) - πŸ“ Flush all buffered logs to the database. - Ζ’ **_flush_task_logs** (`Function`) - πŸ“ Flush logs for a specific task immediately. - Ζ’ **create_task** (`Function`) - πŸ“ Creates and queues a new task for execution. - Ζ’ **_run_task** (`Function`) - πŸ“ Internal method to execute a task with TaskContext support. - Ζ’ **resolve_task** (`Function`) - πŸ“ Resumes a task that is awaiting mapping. - Ζ’ **wait_for_resolution** (`Function`) - πŸ“ Pauses execution and waits for a resolution signal. - Ζ’ **wait_for_input** (`Function`) - πŸ“ Pauses execution and waits for user input. - Ζ’ **get_task** (`Function`) - πŸ“ Retrieves a task by its ID. - Ζ’ **get_all_tasks** (`Function`) - πŸ“ Retrieves all registered tasks. - Ζ’ **get_tasks** (`Function`) - πŸ“ Retrieves tasks with pagination and optional status filter. - Ζ’ **get_task_logs** (`Function`) - πŸ“ Retrieves logs for a specific task (from memory for running, persistence for completed). - Ζ’ **get_task_log_stats** (`Function`) - πŸ“ Get statistics about logs for a task. - Ζ’ **get_task_log_sources** (`Function`) - πŸ“ Get unique sources for a task's logs. - Ζ’ **_add_log** (`Function`) - πŸ“ Adds a log entry to a task buffer and notifies subscribers. - Ζ’ **subscribe_logs** (`Function`) - πŸ“ Subscribes to real-time logs for a task. - Ζ’ **unsubscribe_logs** (`Function`) - πŸ“ Unsubscribes from real-time logs for a task. - Ζ’ **load_persisted_tasks** (`Function`) - πŸ“ Load persisted tasks using persistence service. - Ζ’ **await_input** (`Function`) - πŸ“ Transition a task to AWAITING_INPUT state with input request. - Ζ’ **resume_task_with_password** (`Function`) - πŸ“ Resume a task that is awaiting input with provided passwords. - Ζ’ **clear_tasks** (`Function`) - πŸ“ Clears tasks based on status filter (also deletes associated logs). - Ζ’ **sort_key** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **TaskManagerModels** (`Module`) - πŸ“ Defines the data models and enumerations used by the Task Manager. - πŸ—οΈ Layer: Core - πŸ”’ Invariant: Task IDs are immutable once created. - πŸ“¦ **TaskStatus** (`Enum`) `[TRIVIAL]` - πŸ“ Defines the possible states a task can be in during its lifecycle. - πŸ“¦ **LogLevel** (`Enum`) - πŸ“ Defines the possible log levels for task logging. - β„‚ **LogEntry** (`Class`) `[CRITICAL]` - πŸ“ A Pydantic model representing a single, structured log entry associated with a task. - πŸ”’ Invariant: Each log entry has a unique timestamp and source. - β„‚ **TaskLog** (`Class`) - πŸ“ A Pydantic model representing a persisted log entry from the database. - β„‚ **LogFilter** (`Class`) - πŸ“ Filter parameters for querying task logs. - β„‚ **LogStats** (`Class`) - πŸ“ Statistics about log entries for a task. - β„‚ **Task** (`Class`) - πŸ“ A Pydantic model representing a single execution instance of a plugin, including its status, parameters, and logs. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the Task model and validates input_request for AWAITING_INPUT status. - πŸ“¦ **TaskCleanupModule** (`Module`) - πŸ“ Implements task cleanup and retention policies, including associated logs. - πŸ—οΈ Layer: Core - β„‚ **TaskCleanupService** (`Class`) - πŸ“ Provides methods to clean up old task records and their associated logs. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the cleanup service with dependencies. - Ζ’ **run_cleanup** (`Function`) - πŸ“ Deletes tasks older than the configured retention period and their logs. - Ζ’ **delete_task_with_logs** (`Function`) - πŸ“ Delete a single task and all its associated logs. - πŸ“¦ **TaskManagerPackage** (`Module`) `[TRIVIAL]` - πŸ“ Exports the public API of the task manager package. - πŸ—οΈ Layer: Core - πŸ“¦ **TaskContextModule** (`Module`) `[CRITICAL]` - πŸ“ Provides execution context passed to plugins during task execution. - πŸ—οΈ Layer: Core - πŸ”’ Invariant: Each TaskContext is bound to a single task execution. - πŸ”— DEPENDS_ON -> `TaskLogger, USED_BY -> plugins` - β„‚ **TaskContext** (`Class`) `[CRITICAL]` - πŸ“ A container passed to plugin.execute() providing the logger and other task-specific utilities. - πŸ”’ Invariant: logger is always a valid TaskLogger instance. - Ζ’ **__init__** (`Function`) - πŸ“ Initialize the TaskContext with task-specific resources. - Ζ’ **task_id** (`Function`) - πŸ“ Get the task ID. - Ζ’ **logger** (`Function`) - πŸ“ Get the TaskLogger instance for this context. - Ζ’ **params** (`Function`) - πŸ“ Get the task parameters. - Ζ’ **get_param** (`Function`) - πŸ“ Get a specific parameter value with optional default. - Ζ’ **create_sub_context** (`Function`) - πŸ“ Create a sub-context with a different default source. - Ζ’ **execute** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **backend.src.api.auth** (`Module`) - πŸ“ Authentication API endpoints. - πŸ—οΈ Layer: API - πŸ”’ Invariant: All auth endpoints must return consistent error codes. - πŸ“¦ **router** (`Variable`) - πŸ“ APIRouter instance for authentication routes. - Ζ’ **login_for_access_token** (`Function`) - πŸ“ Authenticates a user and returns a JWT access token. - Ζ’ **read_users_me** (`Function`) - πŸ“ Retrieves the profile of the currently authenticated user. - Ζ’ **logout** (`Function`) - πŸ“ Logs out the current user (placeholder for session revocation). - Ζ’ **login_adfs** (`Function`) - πŸ“ Initiates the ADFS OIDC login flow. - Ζ’ **auth_callback_adfs** (`Function`) - πŸ“ Handles the callback from ADFS after successful authentication. - πŸ“¦ **router** (`Global`) - πŸ“ APIRouter instance for LLM routes. - Ζ’ **get_providers** (`Function`) - πŸ“ Retrieve all LLM provider configurations. - Ζ’ **create_provider** (`Function`) - πŸ“ Create a new LLM provider configuration. - Ζ’ **update_provider** (`Function`) - πŸ“ Update an existing LLM provider configuration. - Ζ’ **delete_provider** (`Function`) - πŸ“ Delete an LLM provider configuration. - Ζ’ **test_connection** (`Function`) - πŸ“ Test connection to an LLM provider. - Ζ’ **test_provider_config** (`Function`) - πŸ“ Test connection with a provided configuration (not yet saved). - πŸ“¦ **backend.src.api.routes.datasets** (`Module`) - πŸ“ API endpoints for the Dataset Hub - listing datasets with mapping progress - πŸ—οΈ Layer: API - πŸ”’ Invariant: All dataset responses include last_task metadata - πŸ”— DEPENDS_ON -> `backend.src.dependencies` - πŸ”— DEPENDS_ON -> `backend.src.services.resource_service` - πŸ”— DEPENDS_ON -> `backend.src.core.superset_client` - πŸ“¦ **MappedFields** (`DataClass`) - πŸ“¦ **LastTask** (`DataClass`) - πŸ“¦ **DatasetItem** (`DataClass`) - πŸ“¦ **LinkedDashboard** (`DataClass`) - πŸ“¦ **DatasetColumn** (`DataClass`) - πŸ“¦ **DatasetDetailResponse** (`DataClass`) - πŸ“¦ **DatasetsResponse** (`DataClass`) - πŸ“¦ **TaskResponse** (`DataClass`) - Ζ’ **get_dataset_ids** (`Function`) - πŸ“ Fetch list of all dataset IDs from a specific environment (without pagination) - πŸ”— CALLS -> `ResourceService.get_datasets_with_status` - Ζ’ **get_datasets** (`Function`) - πŸ“ Fetch list of datasets from a specific environment with mapping progress - πŸ”— CALLS -> `ResourceService.get_datasets_with_status` - πŸ“¦ **MapColumnsRequest** (`DataClass`) - Ζ’ **map_columns** (`Function`) - πŸ“ Trigger bulk column mapping for datasets - πŸ”— DISPATCHES -> `MapperPlugin` - πŸ”— CALLS -> `task_manager.create_task` - πŸ“¦ **GenerateDocsRequest** (`DataClass`) - Ζ’ **generate_docs** (`Function`) - πŸ“ Trigger bulk documentation generation for datasets - πŸ”— DISPATCHES -> `LLMAnalysisPlugin` - πŸ”— CALLS -> `task_manager.create_task` - Ζ’ **get_dataset_detail** (`Function`) - πŸ“ Get detailed dataset information including columns and linked dashboards - πŸ”— CALLS -> `SupersetClient.get_dataset_detail` - πŸ“¦ **backend.src.api.routes.git** (`Module`) - πŸ“ Provides FastAPI endpoints for Git integration operations. - πŸ—οΈ Layer: API - πŸ”’ Invariant: All Git operations must be routed through GitService. - Ζ’ **get_git_configs** (`Function`) - πŸ“ List all configured Git servers. - Ζ’ **create_git_config** (`Function`) - πŸ“ Register a new Git server configuration. - Ζ’ **delete_git_config** (`Function`) - πŸ“ Remove a Git server configuration. - Ζ’ **test_git_config** (`Function`) - πŸ“ Validate connection to a Git server using provided credentials. - Ζ’ **init_repository** (`Function`) - πŸ“ Link a dashboard to a Git repository and perform initial clone/init. - Ζ’ **get_branches** (`Function`) - πŸ“ List all branches for a dashboard's repository. - Ζ’ **create_branch** (`Function`) - πŸ“ Create a new branch in the dashboard's repository. - Ζ’ **checkout_branch** (`Function`) - πŸ“ Switch the dashboard's repository to a specific branch. - Ζ’ **commit_changes** (`Function`) - πŸ“ Stage and commit changes in the dashboard's repository. - Ζ’ **push_changes** (`Function`) - πŸ“ Push local commits to the remote repository. - Ζ’ **pull_changes** (`Function`) - πŸ“ Pull changes from the remote repository. - Ζ’ **sync_dashboard** (`Function`) - πŸ“ Sync dashboard state from Superset to Git using the GitPlugin. - Ζ’ **get_environments** (`Function`) - πŸ“ List all deployment environments. - Ζ’ **deploy_dashboard** (`Function`) - πŸ“ Deploy dashboard from Git to a target environment. - Ζ’ **get_history** (`Function`) - πŸ“ View commit history for a dashboard's repository. - Ζ’ **get_repository_status** (`Function`) - πŸ“ Get current Git status for a dashboard repository. - Ζ’ **get_repository_diff** (`Function`) - πŸ“ Get Git diff for a dashboard repository. - Ζ’ **generate_commit_message** (`Function`) - πŸ“ Generate a suggested commit message using LLM. - πŸ“¦ **ConnectionsRouter** (`Module`) - πŸ“ Defines the FastAPI router for managing external database connections. - πŸ—οΈ Layer: UI (API) - β„‚ **ConnectionSchema** (`Class`) - πŸ“ Pydantic model for connection response. - β„‚ **ConnectionCreate** (`Class`) - πŸ“ Pydantic model for creating a connection. - Ζ’ **list_connections** (`Function`) - πŸ“ Lists all saved connections. - Ζ’ **create_connection** (`Function`) - πŸ“ Creates a new connection configuration. - Ζ’ **delete_connection** (`Function`) - πŸ“ Deletes a connection configuration. - πŸ“¦ **backend.src.api.routes.environments** (`Module`) - πŸ“ API endpoints for listing environments and their databases. - πŸ—οΈ Layer: API - πŸ”’ Invariant: Environment IDs must exist in the configuration. - πŸ”— DEPENDS_ON -> `backend.src.dependencies` - πŸ”— DEPENDS_ON -> `backend.src.core.superset_client` - πŸ“¦ **ScheduleSchema** (`DataClass`) - πŸ“¦ **EnvironmentResponse** (`DataClass`) - πŸ“¦ **DatabaseResponse** (`DataClass`) - Ζ’ **get_environments** (`Function`) - πŸ“ List all configured environments. - πŸ—οΈ Layer: API - Ζ’ **update_environment_schedule** (`Function`) - πŸ“ Update backup schedule for an environment. - πŸ—οΈ Layer: API - Ζ’ **get_environment_databases** (`Function`) - πŸ“ Fetch the list of databases from a specific environment. - πŸ—οΈ Layer: API - πŸ“¦ **backend.src.api.routes.migration** (`Module`) - πŸ“ API endpoints for migration operations. - πŸ—οΈ Layer: API - πŸ”— DEPENDS_ON -> `backend.src.dependencies` - πŸ”— DEPENDS_ON -> `backend.src.models.dashboard` - Ζ’ **get_dashboards** (`Function`) - πŸ“ 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) - Ζ’ **list_plugins** (`Function`) - πŸ“ Retrieve a list of all available plugins. - πŸ“¦ **backend.src.api.routes.mappings** (`Module`) - πŸ“ API endpoints for managing database mappings and getting suggestions. - πŸ—οΈ Layer: API - πŸ”’ Invariant: Mappings are persisted in the SQLite database. - πŸ”— DEPENDS_ON -> `backend.src.dependencies` - πŸ”— DEPENDS_ON -> `backend.src.core.database` - πŸ”— DEPENDS_ON -> `backend.src.services.mapping_service` - πŸ“¦ **MappingCreate** (`DataClass`) - πŸ“¦ **MappingResponse** (`DataClass`) - πŸ“¦ **SuggestRequest** (`DataClass`) - Ζ’ **get_mappings** (`Function`) - πŸ“ List all saved database mappings. - Ζ’ **create_mapping** (`Function`) - πŸ“ Create or update a database mapping. - Ζ’ **suggest_mappings_api** (`Function`) - πŸ“ Get suggested mappings based on fuzzy matching. - πŸ“¦ **SettingsRouter** (`Module`) - πŸ“ Provides API endpoints for managing application settings and Superset environments. - πŸ—οΈ Layer: UI (API) - πŸ”’ Invariant: All settings changes must be persisted via ConfigManager. - πŸ”— DEPENDS_ON -> `ConfigManager` - πŸ”— DEPENDS_ON -> `ConfigModels` - β„‚ **LoggingConfigResponse** (`Class`) - πŸ“ Response model for logging configuration with current task log level. - Ζ’ **get_settings** (`Function`) - πŸ“ Retrieves all application settings. - Ζ’ **update_global_settings** (`Function`) - πŸ“ Updates global application settings. - Ζ’ **get_storage_settings** (`Function`) - πŸ“ Retrieves storage-specific settings. - Ζ’ **update_storage_settings** (`Function`) - πŸ“ Updates storage-specific settings. - Ζ’ **get_environments** (`Function`) - πŸ“ Lists all configured Superset environments. - Ζ’ **add_environment** (`Function`) - πŸ“ Adds a new Superset environment. - Ζ’ **update_environment** (`Function`) - πŸ“ Updates an existing Superset environment. - Ζ’ **delete_environment** (`Function`) - πŸ“ Deletes a Superset environment. - Ζ’ **test_environment_connection** (`Function`) - πŸ“ Tests the connection to a Superset environment. - Ζ’ **get_logging_config** (`Function`) - πŸ“ Retrieves current logging configuration. - Ζ’ **update_logging_config** (`Function`) - πŸ“ Updates logging configuration. - β„‚ **ConsolidatedSettingsResponse** (`Class`) - Ζ’ **get_consolidated_settings** (`Function`) - πŸ“ Retrieves all settings categories in a single call - Ζ’ **update_consolidated_settings** (`Function`) - πŸ“ Bulk update application settings from the consolidated view. - πŸ“¦ **backend.src.api.routes.admin** (`Module`) - πŸ“ Admin API endpoints for user and role management. - πŸ—οΈ Layer: API - πŸ”’ Invariant: All endpoints in this module require 'Admin' role or 'admin' scope. - πŸ“¦ **router** (`Variable`) - πŸ“ APIRouter instance for admin routes. - Ζ’ **list_users** (`Function`) - πŸ“ Lists all registered users. - Ζ’ **create_user** (`Function`) - πŸ“ Creates a new local user. - Ζ’ **update_user** (`Function`) - πŸ“ Updates an existing user. - Ζ’ **delete_user** (`Function`) - πŸ“ Deletes a user. - Ζ’ **list_roles** (`Function`) - πŸ“ Lists all available roles. - πŸ”— CALLS -> `backend.src.models.auth.Role` - Ζ’ **create_role** (`Function`) - πŸ“ Creates a new system role with associated permissions. - πŸ”— CALLS -> `backend.src.core.auth.repository.AuthRepository.get_permission_by_id` - Ζ’ **update_role** (`Function`) - πŸ“ Updates an existing role's metadata and permissions. - πŸ”— CALLS -> `backend.src.core.auth.repository.AuthRepository.get_role_by_id` - Ζ’ **delete_role** (`Function`) - πŸ“ Removes a role from the system. - πŸ”— CALLS -> `backend.src.core.auth.repository.AuthRepository.get_role_by_id` - Ζ’ **list_permissions** (`Function`) - πŸ“ Lists all available system permissions for assignment. - πŸ”— CALLS -> `backend.src.core.auth.repository.AuthRepository.list_permissions` - Ζ’ **list_ad_mappings** (`Function`) - πŸ“ Lists all AD Group to Role mappings. - Ζ’ **create_ad_mapping** (`Function`) - πŸ“ Creates a new AD Group mapping. - πŸ“¦ **backend.src.api.routes.git_schemas** (`Module`) - πŸ“ Defines Pydantic models for the Git integration API layer. - πŸ—οΈ Layer: API - πŸ”’ Invariant: All schemas must be compatible with the FastAPI router. - πŸ”— DEPENDS_ON -> `backend.src.models.git` - β„‚ **GitServerConfigBase** (`Class`) `[TRIVIAL]` - πŸ“ Base schema for Git server configuration attributes. - β„‚ **GitServerConfigCreate** (`Class`) - πŸ“ Schema for creating a new Git server configuration. - β„‚ **GitServerConfigSchema** (`Class`) - πŸ“ Schema for representing a Git server configuration with metadata. - β„‚ **GitRepositorySchema** (`Class`) - πŸ“ Schema for tracking a local Git repository linked to a dashboard. - β„‚ **BranchSchema** (`Class`) - πŸ“ Schema for representing a Git branch metadata. - β„‚ **CommitSchema** (`Class`) - πŸ“ Schema for representing Git commit details. - β„‚ **BranchCreate** (`Class`) - πŸ“ Schema for branch creation requests. - β„‚ **BranchCheckout** (`Class`) - πŸ“ Schema for branch checkout requests. - β„‚ **CommitCreate** (`Class`) - πŸ“ Schema for staging and committing changes. - β„‚ **ConflictResolution** (`Class`) - πŸ“ Schema for resolving merge conflicts. - β„‚ **DeploymentEnvironmentSchema** (`Class`) - πŸ“ Schema for representing a target deployment environment. - β„‚ **DeployRequest** (`Class`) - πŸ“ Schema for dashboard deployment requests. - β„‚ **RepoInitRequest** (`Class`) - πŸ“ Schema for repository initialization requests. - πŸ“¦ **backend.src.api.routes.assistant** (`Module`) - πŸ“ API routes for LLM assistant command parsing and safe execution orchestration. - πŸ—οΈ Layer: API - πŸ”’ Invariant: Risky operations are never executed without valid confirmation token. - πŸ”— DEPENDS_ON -> `backend.src.core.task_manager` - πŸ”— DEPENDS_ON -> `backend.src.models.assistant` - β„‚ **AssistantMessageRequest** (`Class`) `[TRIVIAL]` - πŸ“ Input payload for assistant message endpoint. - β„‚ **AssistantAction** (`Class`) `[TRIVIAL]` - πŸ“ UI action descriptor returned with assistant responses. - β„‚ **AssistantMessageResponse** (`Class`) - πŸ“ Output payload contract for assistant interaction endpoints. - β„‚ **ConfirmationRecord** (`Class`) - πŸ“ In-memory confirmation token model for risky operation dispatch. - Ζ’ **_append_history** (`Function`) - πŸ“ Append conversation message to in-memory history buffer. - Ζ’ **_persist_message** (`Function`) - πŸ“ Persist assistant/user message record to database. - Ζ’ **_audit** (`Function`) - πŸ“ Append in-memory audit record for assistant decision trace. - Ζ’ **_persist_audit** (`Function`) - πŸ“ Persist structured assistant audit payload in database. - Ζ’ **_persist_confirmation** (`Function`) - πŸ“ Persist confirmation token record to database. - Ζ’ **_update_confirmation_state** (`Function`) - πŸ“ Update persistent confirmation token lifecycle state. - Ζ’ **_load_confirmation_from_db** (`Function`) - πŸ“ Load confirmation token from database into in-memory model. - Ζ’ **_ensure_conversation** (`Function`) - πŸ“ Resolve active conversation id in memory or create a new one. - Ζ’ **_resolve_or_create_conversation** (`Function`) - πŸ“ Resolve active conversation using explicit id, memory cache, or persisted history. - Ζ’ **_cleanup_history_ttl** (`Function`) - πŸ“ Enforce assistant message retention window by deleting expired rows and in-memory records. - Ζ’ **_is_conversation_archived** (`Function`) - πŸ“ Determine archived state for a conversation based on last update timestamp. - Ζ’ **_coerce_query_bool** (`Function`) - πŸ“ Normalize bool-like query values for compatibility in direct handler invocations/tests. - Ζ’ **_extract_id** (`Function`) - πŸ“ Extract first regex match group from text by ordered pattern list. - Ζ’ **_resolve_env_id** (`Function`) - πŸ“ Resolve environment identifier/name token to canonical environment id. - Ζ’ **_is_production_env** (`Function`) - πŸ“ Determine whether environment token resolves to production-like target. - Ζ’ **_resolve_provider_id** (`Function`) - πŸ“ Resolve provider token to provider id with active/default fallback. - Ζ’ **_get_default_environment_id** (`Function`) - πŸ“ Resolve default environment id from settings or first configured environment. - Ζ’ **_resolve_dashboard_id_by_ref** (`Function`) - πŸ“ Resolve dashboard id by title or slug reference in selected environment. - Ζ’ **_resolve_dashboard_id_entity** (`Function`) - πŸ“ Resolve dashboard id from intent entities using numeric id or dashboard_ref fallback. - Ζ’ **_parse_command** (`Function`) - πŸ“ Deterministically parse RU/EN command text into intent payload. - Ζ’ **_check_any_permission** (`Function`) - πŸ“ Validate user against alternative permission checks (logical OR). - Ζ’ **_has_any_permission** (`Function`) - πŸ“ Check whether user has at least one permission tuple from the provided list. - Ζ’ **_build_tool_catalog** (`Function`) - πŸ“ 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`) - πŸ“ Use active LLM provider to select best tool/operation from dynamic catalog. - Ζ’ **_authorize_intent** (`Function`) - πŸ“ Validate user permissions for parsed intent before confirmation/dispatch. - Ζ’ **_dispatch_intent** (`Function`) - πŸ“ Execute parsed assistant intent via existing task/plugin/git services. - Ζ’ **send_message** (`Function`) - πŸ“ Parse assistant command, enforce safety gates, and dispatch executable intent. - Ζ’ **confirm_operation** (`Function`) - πŸ“ Execute previously requested risky operation after explicit user confirmation. - Ζ’ **cancel_operation** (`Function`) - πŸ“ Cancel pending risky operation and mark confirmation token as cancelled. - Ζ’ **list_conversations** (`Function`) - πŸ“ Return paginated conversation list for current user with archived flag and last message preview. - Ζ’ **get_history** (`Function`) - πŸ“ 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 - πŸ”’ Invariant: All paths must be validated against path traversal. - πŸ”— DEPENDS_ON -> `backend.src.models.storage` - Ζ’ **list_files** (`Function`) - πŸ“ List all files and directories in the storage system. - πŸ”— CALLS -> `StoragePlugin.list_files` - Ζ’ **upload_file** (`Function`) - πŸ“ Upload a file to the storage system. - πŸ”— CALLS -> `StoragePlugin.save_file` - Ζ’ **delete_file** (`Function`) - πŸ“ Delete a specific file or directory. - πŸ”— CALLS -> `StoragePlugin.delete_file` - Ζ’ **download_file** (`Function`) - πŸ“ Retrieve a file for download. - πŸ”— CALLS -> `StoragePlugin.get_file_path` - πŸ“¦ **ReportsRouter** (`Module`) `[CRITICAL]` - πŸ“ FastAPI router for unified task report list and detail retrieval endpoints. - πŸ—οΈ Layer: UI (API) - πŸ”’ Invariant: Endpoints are read-only and do not trigger long-running tasks. - πŸ”— DEPENDS_ON -> `backend.src.services.reports.report_service.ReportsService` - πŸ”— DEPENDS_ON -> `backend.src.dependencies` - Ζ’ **_parse_csv_enum_list** (`Function`) - πŸ“ Parse comma-separated query value into enum list. - Ζ’ **list_reports** (`Function`) - πŸ“ Return paginated unified reports list. - Ζ’ **get_report_detail** (`Function`) - πŸ“ Return one normalized report detail with diagnostics and next actions. - πŸ“¦ **backend.src.api.routes.__init__** (`Module`) - πŸ“ Provide lazy route module loading to avoid heavyweight imports during tests. - πŸ—οΈ Layer: API - πŸ”’ Invariant: Only names listed in __all__ are importable via __getattr__. - πŸ”— DEPENDS_ON -> `importlib` - Ζ’ **__getattr__** (`Function`) `[TRIVIAL]` - πŸ“ Lazily import route module by attribute name. - πŸ“¦ **TasksRouter** (`Module`) - πŸ“ Defines the FastAPI router for task-related endpoints, allowing clients to create, list, and get the status of tasks. - πŸ—οΈ Layer: UI (API) - Ζ’ **create_task** (`Function`) - πŸ“ Create and start a new task for a given plugin. - Ζ’ **list_tasks** (`Function`) - πŸ“ Retrieve a list of tasks with pagination and optional status filter. - Ζ’ **get_task** (`Function`) - πŸ“ Retrieve the details of a specific task. - Ζ’ **get_task_logs** (`Function`) `[CRITICAL]` - πŸ“ Retrieve logs for a specific task with optional filtering. - Ζ’ **get_task_log_stats** (`Function`) - πŸ“ Get statistics about logs for a task (counts by level and source). - Ζ’ **get_task_log_sources** (`Function`) - πŸ“ Get unique sources for a task's logs. - Ζ’ **resolve_task** (`Function`) - πŸ“ Resolve a task that is awaiting mapping. - Ζ’ **resume_task** (`Function`) - πŸ“ Resume a task that is awaiting input (e.g., passwords). - Ζ’ **clear_tasks** (`Function`) - πŸ“ Clear tasks matching the status filter. - πŸ“¦ **backend.src.api.routes.dashboards** (`Module`) - πŸ“ API endpoints for the Dashboard Hub - listing dashboards with Git and task status - πŸ—οΈ Layer: API - πŸ”’ Invariant: All dashboard responses include git_status and last_task metadata - πŸ”— DEPENDS_ON -> `backend.src.dependencies` - πŸ”— DEPENDS_ON -> `backend.src.services.resource_service` - πŸ”— DEPENDS_ON -> `backend.src.core.superset_client` - πŸ“¦ **GitStatus** (`DataClass`) - πŸ“¦ **LastTask** (`DataClass`) - πŸ“¦ **DashboardItem** (`DataClass`) - πŸ“¦ **DashboardsResponse** (`DataClass`) - πŸ“¦ **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` - πŸ“¦ **MigrateRequest** (`DataClass`) - πŸ“¦ **TaskResponse** (`DataClass`) - Ζ’ **migrate_dashboards** (`Function`) - πŸ“ Trigger bulk migration of dashboards from source to target environment - πŸ”— DISPATCHES -> `MigrationPlugin` - πŸ”— CALLS -> `task_manager.create_task` - πŸ“¦ **BackupRequest** (`DataClass`) - Ζ’ **backup_dashboards** (`Function`) - πŸ“ Trigger bulk backup of dashboards with optional cron schedule - πŸ”— DISPATCHES -> `BackupPlugin` - πŸ”— CALLS -> `task_manager.create_task` - πŸ“¦ **backend.src.api.routes.__tests__.test_dashboards** (`Module`) - πŸ“ Unit tests for Dashboards API endpoints - πŸ—οΈ Layer: API - Ζ’ **test_get_dashboards_success** (`Function`) - Ζ’ **test_get_dashboards_with_search** (`Function`) - Ζ’ **test_get_dashboards_env_not_found** (`Function`) - Ζ’ **test_get_dashboards_invalid_pagination** (`Function`) - Ζ’ **test_get_dashboard_detail_success** (`Function`) - Ζ’ **test_get_dashboard_detail_env_not_found** (`Function`) - Ζ’ **test_migrate_dashboards_success** (`Function`) - Ζ’ **test_migrate_dashboards_no_ids** (`Function`) - Ζ’ **test_backup_dashboards_success** (`Function`) - Ζ’ **test_get_database_mappings_success** (`Function`) - Ζ’ **mock_get_dashboards** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **mock_get_dashboards** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **backend.tests.test_reports_openapi_conformance** (`Module`) `[CRITICAL]` - πŸ“ Validate implemented reports payload shape against OpenAPI-required top-level contract fields. - πŸ—οΈ Layer: Domain (Tests) - πŸ”’ Invariant: List and detail payloads include required contract keys. - Ζ’ **__init__** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **get_all_tasks** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **_admin_user** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **_task** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_reports_list_openapi_required_keys** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_reports_detail_openapi_required_keys** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **backend.tests.test_reports_api** (`Module`) `[CRITICAL]` - πŸ“ Contract tests for GET /api/reports defaults, pagination, and filtering behavior. - πŸ—οΈ Layer: Domain (Tests) - πŸ”’ Invariant: API response contract contains {items,total,page,page_size,has_next,applied_filters}. - Ζ’ **__init__** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **get_all_tasks** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **_admin_user** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **_make_task** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_get_reports_default_pagination_contract** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_get_reports_filter_and_pagination** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_get_reports_handles_mixed_naive_and_aware_datetimes** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_get_reports_invalid_filter_returns_400** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **backend.src.api.routes.__tests__.test_datasets** (`Module`) - πŸ“ Unit tests for Datasets API endpoints - πŸ—οΈ Layer: API - πŸ”’ Invariant: Endpoint contracts remain stable for success and validation failure paths. - Ζ’ **test_get_datasets_success** (`Function`) - πŸ“ Validate successful datasets listing contract for an existing environment. - Ζ’ **test_get_datasets_env_not_found** (`Function`) - Ζ’ **test_get_datasets_invalid_pagination** (`Function`) - Ζ’ **test_map_columns_success** (`Function`) - Ζ’ **test_map_columns_invalid_source_type** (`Function`) - Ζ’ **test_generate_docs_success** (`Function`) - πŸ“¦ **backend.tests.test_reports_detail_api** (`Module`) `[CRITICAL]` - πŸ“ Contract tests for GET /api/reports/{report_id} detail endpoint behavior. - πŸ—οΈ Layer: Domain (Tests) - πŸ”’ Invariant: Detail endpoint tests must keep deterministic assertions for success and not-found contracts. - Ζ’ **__init__** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **get_all_tasks** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **_admin_user** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **_make_task** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_get_report_detail_success** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_get_report_detail_not_found** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **backend.src.api.routes.__tests__.test_assistant_authz** (`Module`) - πŸ“ Verify assistant confirmation ownership, expiration, and deny behavior for restricted users. - πŸ—οΈ Layer: UI (API Tests) - πŸ”’ Invariant: Security-sensitive flows fail closed for unauthorized actors. - πŸ”— DEPENDS_ON -> `backend.src.api.routes.assistant` - Ζ’ **_run_async** (`Function`) `[TRIVIAL]` - πŸ“ Execute async endpoint handler in synchronous test context. - β„‚ **_FakeTask** (`Class`) `[TRIVIAL]` - πŸ“ Lightweight task model used for assistant authz tests. - β„‚ **_FakeTaskManager** (`Class`) `[TRIVIAL]` - πŸ“ Minimal task manager for deterministic operation creation and lookup. - β„‚ **_FakeConfigManager** (`Class`) `[TRIVIAL]` - πŸ“ Provide deterministic environment aliases required by intent parsing. - Ζ’ **_admin_user** (`Function`) `[TRIVIAL]` - πŸ“ Build admin principal fixture. - Ζ’ **_other_admin_user** (`Function`) `[TRIVIAL]` - πŸ“ Build second admin principal fixture for ownership tests. - Ζ’ **_limited_user** (`Function`) `[TRIVIAL]` - πŸ“ Build limited principal without required assistant execution privileges. - β„‚ **_FakeQuery** (`Class`) `[TRIVIAL]` - πŸ“ Minimal chainable query object for fake DB interactions. - β„‚ **_FakeDb** (`Class`) `[TRIVIAL]` - πŸ“ In-memory session substitute for assistant route persistence calls. - Ζ’ **_clear_assistant_state** (`Function`) `[TRIVIAL]` - πŸ“ Reset assistant process-local state between test cases. - Ζ’ **test_confirmation_owner_mismatch_returns_403** (`Function`) - πŸ“ Confirm endpoint should reject requests from user that does not own the confirmation token. - Ζ’ **test_expired_confirmation_cannot_be_confirmed** (`Function`) - πŸ“ Expired confirmation token should be rejected and not create task. - Ζ’ **test_limited_user_cannot_launch_restricted_operation** (`Function`) - πŸ“ Limited user should receive denied state for privileged operation. - Ζ’ **__init__** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **__init__** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **create_task** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **get_task** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **get_tasks** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **get_environments** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **__init__** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **filter** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **order_by** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **first** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **all** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **limit** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **offset** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **count** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **__init__** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **add** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **merge** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **query** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **commit** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **rollback** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **backend.src.api.routes.__tests__.test_assistant_api** (`Module`) - πŸ“ Validate assistant API endpoint logic via direct async handler invocation. - πŸ—οΈ Layer: UI (API Tests) - πŸ”’ Invariant: Every test clears assistant in-memory state before execution. - πŸ”— DEPENDS_ON -> `backend.src.api.routes.assistant` - Ζ’ **_run_async** (`Function`) `[TRIVIAL]` - πŸ“ Execute async endpoint handler in synchronous test context. - β„‚ **_FakeTask** (`Class`) `[TRIVIAL]` - πŸ“ Lightweight task stub used by assistant API tests. - β„‚ **_FakeTaskManager** (`Class`) `[TRIVIAL]` - πŸ“ Minimal async-compatible TaskManager fixture for deterministic test flows. - β„‚ **_FakeConfigManager** (`Class`) `[TRIVIAL]` - πŸ“ Environment config fixture with dev/prod aliases for parser tests. - Ζ’ **_admin_user** (`Function`) `[TRIVIAL]` - πŸ“ Build admin principal fixture. - Ζ’ **_limited_user** (`Function`) `[TRIVIAL]` - πŸ“ Build non-admin principal fixture. - β„‚ **_FakeQuery** (`Class`) `[TRIVIAL]` - πŸ“ Minimal chainable query object for fake SQLAlchemy-like DB behavior in tests. - β„‚ **_FakeDb** (`Class`) `[TRIVIAL]` - πŸ“ In-memory fake database implementing subset of Session interface used by assistant routes. - Ζ’ **_clear_assistant_state** (`Function`) `[TRIVIAL]` - πŸ“ Reset in-memory assistant registries for isolation between tests. - Ζ’ **test_unknown_command_returns_needs_clarification** (`Function`) - πŸ“ Unknown command should return clarification state and unknown intent. - Ζ’ **test_capabilities_question_returns_successful_help** (`Function`) - πŸ“ Capability query should return deterministic help response, not clarification. - Ζ’ **test_non_admin_command_returns_denied** (`Function`) - πŸ“ Non-admin user must receive denied state for privileged command. - Ζ’ **test_migration_to_prod_requires_confirmation_and_can_be_confirmed** (`Function`) - πŸ“ Migration to prod must require confirmation and then start task after explicit confirm. - Ζ’ **test_status_query_returns_task_status** (`Function`) - πŸ“ 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_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]` - πŸ“ Auto-detected function (orphan) - Ζ’ **create_task** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **get_task** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **get_tasks** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **get_environments** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **__init__** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **filter** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **order_by** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **first** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **all** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **count** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **offset** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **limit** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **__init__** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **add** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **merge** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **query** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **commit** (`Function`) `[TRIVIAL]` - πŸ“ 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 - πŸ”— DEPENDS_ON -> `sqlalchemy` - β„‚ **AppConfigRecord** (`Class`) - πŸ“ Stores the single source of truth for application configuration. - πŸ“¦ **backend.src.models.llm** (`Module`) - πŸ“ SQLAlchemy models for LLM provider configuration and validation results. - πŸ—οΈ Layer: Domain - β„‚ **LLMProvider** (`Class`) - πŸ“ SQLAlchemy model for LLM provider configuration. - β„‚ **ValidationRecord** (`Class`) - πŸ“ SQLAlchemy model for dashboard validation history. - Ζ’ **generate_uuid** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **GitModels** (`Module`) `[TRIVIAL]` - πŸ“ Git-specific SQLAlchemy models for configuration and repository tracking. - πŸ—οΈ Layer: Model - β„‚ **GitServerConfig** (`Class`) `[TRIVIAL]` - πŸ“ Configuration for a Git server connection. - β„‚ **GitRepository** (`Class`) `[TRIVIAL]` - πŸ“ Tracking for a local Git repository linked to a dashboard. - β„‚ **DeploymentEnvironment** (`Class`) `[TRIVIAL]` - πŸ“ Target Superset environments for dashboard deployment. - πŸ“¦ **backend.src.models.task** (`Module`) `[TRIVIAL]` - πŸ“ Defines the database schema for task execution records. - πŸ—οΈ Layer: Domain - πŸ”’ Invariant: All primary keys are UUID strings. - πŸ”— DEPENDS_ON -> `sqlalchemy` - β„‚ **TaskRecord** (`Class`) `[TRIVIAL]` - πŸ“ Represents a persistent record of a task execution. - β„‚ **TaskLogRecord** (`Class`) `[CRITICAL]` - πŸ“ Represents a single persistent log entry for a task. - πŸ”’ Invariant: Each log entry belongs to exactly one task. - πŸ”— DEPENDS_ON -> `TaskRecord` - πŸ“¦ **backend.src.models.connection** (`Module`) `[TRIVIAL]` - πŸ“ Defines the database schema for external database connection configurations. - πŸ—οΈ Layer: Domain - πŸ”’ Invariant: All primary keys are UUID strings. - πŸ”— DEPENDS_ON -> `sqlalchemy` - β„‚ **ConnectionConfig** (`Class`) `[TRIVIAL]` - πŸ“ Stores credentials for external databases used for column mapping. - πŸ“¦ **backend.src.models.mapping** (`Module`) - πŸ“ Defines the database schema for environment metadata and database mappings using SQLAlchemy. - πŸ—οΈ 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`) - πŸ“ Represents a Superset instance environment. - β„‚ **DatabaseMapping** (`Class`) - πŸ“ 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 - πŸ”’ Invariant: Canonical report fields are always present for every report item. - πŸ”— DEPENDS_ON -> `backend.src.core.task_manager.models` - β„‚ **TaskType** (`Class`) `[CRITICAL]` - πŸ“ Supported normalized task report types. - πŸ”’ Invariant: Must contain valid generic task type mappings. - β„‚ **ReportStatus** (`Class`) `[CRITICAL]` - πŸ“ Supported normalized report status values. - πŸ”’ Invariant: TaskStatus enum mapping logic holds. - β„‚ **ErrorContext** (`Class`) `[CRITICAL]` - πŸ“ Error and recovery context for failed/partial reports. - πŸ”’ Invariant: The properties accurately describe error state. - β„‚ **TaskReport** (`Class`) `[CRITICAL]` - πŸ“ Canonical normalized report envelope for one task execution. - πŸ”’ Invariant: Must represent canonical task record attributes. - β„‚ **ReportQuery** (`Class`) `[CRITICAL]` - πŸ“ Query object for server-side report filtering, sorting, and pagination. - πŸ”’ Invariant: Time and pagination queries are mutually consistent. - β„‚ **ReportCollection** (`Class`) `[CRITICAL]` - πŸ“ Paginated collection of normalized task reports. - πŸ”’ Invariant: Represents paginated data correctly. - β„‚ **ReportDetailView** (`Class`) `[CRITICAL]` - πŸ“ Detailed report representation including diagnostics and recovery actions. - πŸ”’ Invariant: Incorporates a report and logs correctly. - Ζ’ **_non_empty_str** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **_validate_sort_by** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **_validate_sort_order** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **_validate_time_range** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **backend.src.models.assistant** (`Module`) - πŸ“ SQLAlchemy models for assistant audit trail and confirmation tokens. - πŸ—οΈ Layer: Domain - πŸ”’ Invariant: Assistant records preserve immutable ids and creation timestamps. - πŸ”— DEPENDS_ON -> `backend.src.models.mapping` - β„‚ **AssistantAuditRecord** (`Class`) - πŸ“ Store audit decisions and outcomes produced by assistant command handling. - β„‚ **AssistantMessageRecord** (`Class`) - πŸ“ Persist chat history entries for assistant conversations. - β„‚ **AssistantConfirmationRecord** (`Class`) - πŸ“ Persist risky operation confirmation tokens with lifecycle state. - πŸ“¦ **backend.src.models.storage** (`Module`) `[TRIVIAL]` - πŸ“ Data models for the storage system. - πŸ—οΈ Layer: Domain - β„‚ **FileCategory** (`Class`) `[TRIVIAL]` - πŸ“ Enumeration of supported file categories in the storage system. - β„‚ **StorageConfig** (`Class`) `[TRIVIAL]` - πŸ“ Configuration model for the storage system, defining paths and naming patterns. - β„‚ **StoredFile** (`Class`) `[TRIVIAL]` - πŸ“ Data model representing metadata for a file stored in the system. - πŸ“¦ **backend.src.models.dashboard** (`Module`) - πŸ“ Defines data models for dashboard metadata and selection. - πŸ—οΈ Layer: Model - β„‚ **DashboardMetadata** (`Class`) `[TRIVIAL]` - πŸ“ Represents a dashboard available for migration. - β„‚ **DashboardSelection** (`Class`) `[TRIVIAL]` - πŸ“ Represents the user's selection of dashboards to migrate. - πŸ“¦ **backend.src.models.auth** (`Module`) - πŸ“ SQLAlchemy models for multi-user authentication and authorization. - πŸ—οΈ Layer: Domain - πŸ”’ Invariant: Usernames and emails must be unique. - Ζ’ **generate_uuid** (`Function`) - πŸ“ Generates a unique UUID string. - πŸ“¦ **user_roles** (`Table`) - πŸ“ Association table for many-to-many relationship between Users and Roles. - πŸ“¦ **role_permissions** (`Table`) - πŸ“ Association table for many-to-many relationship between Roles and Permissions. - β„‚ **User** (`Class`) - πŸ“ Represents an identity that can authenticate to the system. - β„‚ **Role** (`Class`) - πŸ“ Represents a collection of permissions. - β„‚ **Permission** (`Class`) - πŸ“ Represents a specific capability within the system. - β„‚ **ADGroupMapping** (`Class`) - πŸ“ Maps an Active Directory group to a local System Role. - πŸ”— DEPENDS_ON -> `Role` - πŸ“¦ **test_models** (`Module`) `[TRIVIAL]` - πŸ“ Unit tests for data models - πŸ—οΈ 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 - πŸ”’ Invariant: All resources include metadata about their current state - πŸ”— DEPENDS_ON -> `backend.src.core.superset_client` - πŸ”— DEPENDS_ON -> `backend.src.core.task_manager` - πŸ”— DEPENDS_ON -> `backend.src.services.git_service` - β„‚ **ResourceService** (`Class`) - πŸ“ Provides centralized access to resource data with enhanced metadata - Ζ’ **__init__** (`Function`) - πŸ“ Initialize the resource service with dependencies - Ζ’ **get_dashboards_with_status** (`Function`) - πŸ“ Fetch dashboards from environment with Git status and last task status - πŸ”— CALLS -> `SupersetClient.get_dashboards_summary` - πŸ”— CALLS -> `self._get_git_status_for_dashboard` - πŸ”— CALLS -> `self._get_last_task_for_resource` - Ζ’ **get_datasets_with_status** (`Function`) - πŸ“ Fetch datasets from environment with mapping progress and last task status - πŸ”— CALLS -> `SupersetClient.get_datasets_summary` - πŸ”— CALLS -> `self._get_last_task_for_resource` - Ζ’ **get_activity_summary** (`Function`) - πŸ“ Get summary of active and recent tasks for the activity indicator - Ζ’ **_get_git_status_for_dashboard** (`Function`) - πŸ“ Get Git sync status for a dashboard - πŸ”— CALLS -> `GitService.get_repo` - Ζ’ **_get_last_task_for_resource** (`Function`) - πŸ“ Get the most recent task for a specific resource - Ζ’ **_extract_resource_name_from_task** (`Function`) - πŸ“ Extract resource name from task params - Ζ’ **_extract_resource_type_from_task** (`Function`) - πŸ“ Extract resource type from task params - πŸ“¦ **backend.src.services.llm_prompt_templates** (`Module`) - πŸ“ Provide default LLM prompt templates and normalization helpers for runtime usage. - πŸ—οΈ Layer: Domain - πŸ”’ Invariant: All required prompt template keys are always present after normalization. - πŸ”— DEPENDS_ON -> `backend.src.core.config_manager` - πŸ“¦ **DEFAULT_LLM_PROMPTS** (`Constant`) - πŸ“ Default prompt templates used by documentation, dashboard validation, and git commit generation. - πŸ“¦ **DEFAULT_LLM_PROVIDER_BINDINGS** (`Constant`) - πŸ“ Default provider binding per task domain. - πŸ“¦ **DEFAULT_LLM_ASSISTANT_SETTINGS** (`Constant`) - πŸ“ Default planner settings for assistant chat intent model/provider resolution. - Ζ’ **normalize_llm_settings** (`Function`) - πŸ“ Ensure llm settings contain stable schema with prompts section and default templates. - Ζ’ **is_multimodal_model** (`Function`) - πŸ“ Heuristically determine whether model supports image input required for dashboard validation. - Ζ’ **resolve_bound_provider_id** (`Function`) - πŸ“ Resolve provider id configured for a task binding with fallback to default provider. - Ζ’ **render_prompt** (`Function`) - πŸ“ Render prompt template using deterministic placeholder replacement with graceful fallback. - πŸ“¦ **backend.src.services.llm_provider** (`Module`) - πŸ“ Service for managing LLM provider configurations with encrypted API keys. - πŸ—οΈ Layer: Domain - πŸ”— DEPENDS_ON -> `backend.src.core.database` - πŸ”— DEPENDS_ON -> `backend.src.models.llm` - β„‚ **EncryptionManager** (`Class`) `[CRITICAL]` - πŸ“ Handles encryption and decryption of sensitive data like API keys. - πŸ”’ Invariant: Uses a secret key from environment or a default one (fallback only for dev). - Ζ’ **EncryptionManager.__init__** (`Function`) - πŸ“ Initialize the encryption manager with a Fernet key. - Ζ’ **EncryptionManager.encrypt** (`Function`) - πŸ“ Encrypt a plaintext string. - Ζ’ **EncryptionManager.decrypt** (`Function`) - πŸ“ Decrypt an encrypted string. - β„‚ **LLMProviderService** (`Class`) - πŸ“ Service to manage LLM provider lifecycle. - Ζ’ **LLMProviderService.__init__** (`Function`) - πŸ“ Initialize the service with database session. - Ζ’ **get_all_providers** (`Function`) - πŸ“ Returns all configured LLM providers. - Ζ’ **get_provider** (`Function`) - πŸ“ Returns a single LLM provider by ID. - Ζ’ **create_provider** (`Function`) - πŸ“ Creates a new LLM provider with encrypted API key. - Ζ’ **update_provider** (`Function`) - πŸ“ Updates an existing LLM provider. - Ζ’ **delete_provider** (`Function`) - πŸ“ Deletes an LLM provider. - Ζ’ **get_decrypted_api_key** (`Function`) - πŸ“ Returns the decrypted API key for a provider. - Ζ’ **__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) - πŸ“¦ **backend.src.services** (`Module`) - πŸ“ Package initialization for services module - πŸ—οΈ Layer: Core - Ζ’ **__getattr__** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **backend.src.services.auth_service** (`Module`) - πŸ“ Orchestrates authentication business logic. - πŸ—οΈ Layer: Service - πŸ”’ Invariant: Authentication must verify both credentials and account status. - β„‚ **AuthService** (`Class`) - πŸ“ Provides high-level authentication services. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the service with a database session. - Ζ’ **authenticate_user** (`Function`) - πŸ“ Authenticates a user with username and password. - Ζ’ **create_session** (`Function`) - πŸ“ Creates a JWT session for an authenticated user. - Ζ’ **provision_adfs_user** (`Function`) - πŸ“ Just-In-Time (JIT) provisioning for ADFS users based on group mappings. - πŸ“¦ **backend.src.services.git_service** (`Module`) - πŸ“ Core Git logic using GitPython to manage dashboard repositories. - πŸ—οΈ Layer: Service - πŸ”’ Invariant: All Git operations must be performed on a valid local directory. - β„‚ **GitService** (`Class`) - πŸ“ Wrapper for GitPython operations with semantic logging and error handling. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the GitService with a base path for repositories. - Ζ’ **_get_repo_path** (`Function`) - πŸ“ Resolves the local filesystem path for a dashboard's repository. - Ζ’ **init_repo** (`Function`) - πŸ“ Initialize or clone a repository for a dashboard. - Ζ’ **get_repo** (`Function`) - πŸ“ Get Repo object for a dashboard. - Ζ’ **list_branches** (`Function`) - πŸ“ List all branches for a dashboard's repository. - Ζ’ **create_branch** (`Function`) - πŸ“ Create a new branch from an existing one. - Ζ’ **checkout_branch** (`Function`) - πŸ“ Switch to a specific branch. - Ζ’ **commit_changes** (`Function`) - πŸ“ Stage and commit changes. - Ζ’ **push_changes** (`Function`) - πŸ“ Push local commits to remote. - Ζ’ **pull_changes** (`Function`) - πŸ“ Pull changes from remote. - Ζ’ **get_status** (`Function`) - πŸ“ Get current repository status (dirty files, untracked, etc.) - Ζ’ **get_diff** (`Function`) - πŸ“ Generate diff for a file or the whole repository. - Ζ’ **get_commit_history** (`Function`) - πŸ“ Retrieve commit history for a repository. - Ζ’ **test_connection** (`Function`) - πŸ“ Test connection to Git provider using PAT. - πŸ“¦ **backend.src.services.mapping_service** (`Module`) - πŸ“ Orchestrates database fetching and fuzzy matching suggestions. - πŸ—οΈ Layer: Service - πŸ”’ Invariant: Suggestions are based on database names. - πŸ”— DEPENDS_ON -> `backend.src.core.superset_client` - πŸ”— DEPENDS_ON -> `backend.src.core.utils.matching` - β„‚ **MappingService** (`Class`) - πŸ“ Service for handling database mapping logic. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the mapping service with a config manager. - Ζ’ **_get_client** (`Function`) - πŸ“ 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 - πŸ”’ Invariant: All required prompt keys remain available after normalization. - πŸ”— DEPENDS_ON -> `backend.src.services.llm_prompt_templates` - Ζ’ **test_normalize_llm_settings_adds_default_prompts** (`Function`) - πŸ“ Ensure legacy/partial llm settings are expanded with all prompt defaults. - Ζ’ **test_normalize_llm_settings_keeps_custom_prompt_values** (`Function`) - πŸ“ Ensure user-customized prompt values are preserved during normalization. - Ζ’ **test_render_prompt_replaces_known_placeholders** (`Function`) - πŸ“ Ensure template placeholders are deterministically replaced. - Ζ’ **test_is_multimodal_model_detects_known_vision_models** (`Function`) - πŸ“ Ensure multimodal model detection recognizes common vision-capable model names. - Ζ’ **test_resolve_bound_provider_id_prefers_binding_then_default** (`Function`) - πŸ“ Verify provider binding resolution priority. - Ζ’ **test_normalize_llm_settings_keeps_assistant_planner_settings** (`Function`) - πŸ“ Ensure assistant planner provider/model fields are preserved and normalized. - πŸ“¦ **backend.src.services.__tests__.test_resource_service** (`Module`) - πŸ“ Unit tests for ResourceService - πŸ—οΈ Layer: Service - πŸ”’ Invariant: Resource summaries preserve task linkage and status projection behavior. - Ζ’ **test_get_dashboards_with_status** (`Function`) - πŸ“ Validate dashboard enrichment includes git/task status projections. - Ζ’ **test_get_datasets_with_status** (`Function`) - Ζ’ **test_get_activity_summary** (`Function`) - Ζ’ **test_get_git_status_for_dashboard_no_repo** (`Function`) - Ζ’ **test_get_last_task_for_resource** (`Function`) - Ζ’ **test_extract_resource_name_from_task** (`Function`) - πŸ“¦ **backend.src.services.reports.normalizer** (`Module`) `[CRITICAL]` - πŸ“ Convert task manager task objects into canonical unified TaskReport entities with deterministic fallback behavior. - πŸ—οΈ Layer: Domain - πŸ”’ Invariant: Unknown task types and partial payloads remain visible via fallback mapping. - πŸ”— DEPENDS_ON -> `backend.src.core.task_manager.models.Task` - πŸ”— DEPENDS_ON -> `backend.src.models.report` - πŸ”— DEPENDS_ON -> `backend.src.services.reports.type_profiles` - Ζ’ **status_to_report_status** (`Function`) - πŸ“ Normalize internal task status to canonical report status. - Ζ’ **build_summary** (`Function`) - πŸ“ Build deterministic user-facing summary from task payload and status. - Ζ’ **extract_error_context** (`Function`) - πŸ“ Extract normalized error context and next actions for failed/partial reports. - Ζ’ **normalize_task_report** (`Function`) - πŸ“ Convert one Task to canonical TaskReport envelope. - πŸ“¦ **backend.src.services.reports.type_profiles** (`Module`) `[CRITICAL]` - πŸ“ Deterministic mapping of plugin/task identifiers to canonical report task types and fallback profile metadata. - πŸ—οΈ Layer: Domain - πŸ”’ Invariant: Unknown input always resolves to TaskType.UNKNOWN with a single fallback profile. - πŸ”— DEPENDS_ON -> `backend.src.models.report.TaskType` - πŸ“¦ **PLUGIN_TO_TASK_TYPE** (`Data`) - πŸ“ Maps plugin identifiers to normalized report task types. - πŸ“¦ **TASK_TYPE_PROFILES** (`Data`) - πŸ“ Profile metadata registry for each normalized task type. - Ζ’ **resolve_task_type** (`Function`) - πŸ“ Resolve canonical task type from plugin/task identifier with guaranteed fallback. - Ζ’ **get_type_profile** (`Function`) - πŸ“ Return deterministic profile metadata for a task type. - πŸ“¦ **backend.src.services.reports.report_service** (`Module`) `[CRITICAL]` - πŸ“ Aggregate, normalize, filter, and paginate task reports for unified list/detail API use cases. - πŸ—οΈ Layer: Domain - πŸ”’ Invariant: List responses are deterministic and include applied filter echo metadata. - πŸ”— DEPENDS_ON -> `backend.src.core.task_manager.manager.TaskManager` - πŸ”— DEPENDS_ON -> `backend.src.models.report` - πŸ”— DEPENDS_ON -> `backend.src.services.reports.normalizer` - β„‚ **ReportsService** (`Class`) `[CRITICAL]` - πŸ“ Service layer for list/detail report retrieval and normalization. - πŸ”’ Invariant: Service methods are read-only over task history source. - Ζ’ **__init__** (`Function`) `[CRITICAL]` - πŸ“ Initialize service with TaskManager dependency. - πŸ”’ Invariant: Constructor performs no task mutations. - Ζ’ **_load_normalized_reports** (`Function`) - πŸ“ Build normalized reports from all available tasks. - πŸ”’ Invariant: Every returned item is a TaskReport. - Ζ’ **_to_utc_datetime** (`Function`) - πŸ“ Normalize naive/aware datetime values to UTC-aware datetime for safe comparisons. - πŸ”’ Invariant: Naive datetimes are interpreted as UTC to preserve deterministic ordering/filtering. - Ζ’ **_datetime_sort_key** (`Function`) - πŸ“ Produce stable numeric sort key for report timestamps. - πŸ”’ Invariant: Mixed naive/aware datetimes never raise TypeError. - Ζ’ **_matches_query** (`Function`) - πŸ“ Apply query filtering to a report. - πŸ”’ Invariant: Filter evaluation is side-effect free. - Ζ’ **_sort_reports** (`Function`) - πŸ“ Sort reports deterministically according to query settings. - πŸ”’ Invariant: Sorting criteria are deterministic for equal input. - Ζ’ **list_reports** (`Function`) - πŸ“ 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) - πŸ”’ Invariant: Unknown plugin types are mapped to canonical unknown task type. - Ζ’ **test_unknown_type_maps_to_unknown_profile** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_partial_payload_keeps_report_visible_with_placeholders** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **BackupPlugin** (`Module`) - πŸ“ A plugin that provides functionality to back up Superset dashboards. - πŸ—οΈ Layer: App - πŸ”— IMPLEMENTS -> `PluginBase` - πŸ”— DEPENDS_ON -> `superset_tool.client` - πŸ”— DEPENDS_ON -> `superset_tool.utils` - β„‚ **BackupPlugin** (`Class`) - πŸ“ Implementation of the backup plugin logic. - Ζ’ **id** (`Function`) - πŸ“ Returns the unique identifier for the backup plugin. - Ζ’ **name** (`Function`) - πŸ“ Returns the human-readable name of the backup plugin. - Ζ’ **description** (`Function`) - πŸ“ Returns a description of the backup plugin. - Ζ’ **version** (`Function`) - πŸ“ Returns the version of the backup plugin. - Ζ’ **ui_route** (`Function`) - πŸ“ Returns the frontend route for the backup plugin. - Ζ’ **get_schema** (`Function`) - πŸ“ Returns the JSON schema for backup plugin parameters. - Ζ’ **execute** (`Function`) - πŸ“ Executes the dashboard backup logic with TaskContext support. - πŸ“¦ **DebugPluginModule** (`Module`) - πŸ“ Implements a plugin for system diagnostics and debugging Superset API responses. - πŸ—οΈ Layer: Plugins - β„‚ **DebugPlugin** (`Class`) - πŸ“ Plugin for system diagnostics and debugging. - Ζ’ **id** (`Function`) - πŸ“ Returns the unique identifier for the debug plugin. - Ζ’ **name** (`Function`) - πŸ“ Returns the human-readable name of the debug plugin. - Ζ’ **description** (`Function`) - πŸ“ Returns a description of the debug plugin. - Ζ’ **version** (`Function`) - πŸ“ Returns the version of the debug plugin. - Ζ’ **ui_route** (`Function`) - πŸ“ Returns the frontend route for the debug plugin. - Ζ’ **get_schema** (`Function`) - πŸ“ Returns the JSON schema for the debug plugin parameters. - Ζ’ **execute** (`Function`) - πŸ“ Executes the debug logic with TaskContext support. - Ζ’ **_test_db_api** (`Function`) - πŸ“ Tests database API connectivity for source and target environments. - Ζ’ **_get_dataset_structure** (`Function`) - πŸ“ Retrieves the structure of a dataset. - πŸ“¦ **SearchPluginModule** (`Module`) - πŸ“ Implements a plugin for searching text patterns across all datasets in a specific Superset environment. - πŸ—οΈ Layer: Plugins - β„‚ **SearchPlugin** (`Class`) - πŸ“ Plugin for searching text patterns in Superset datasets. - Ζ’ **id** (`Function`) - πŸ“ Returns the unique identifier for the search plugin. - Ζ’ **name** (`Function`) - πŸ“ Returns the human-readable name of the search plugin. - Ζ’ **description** (`Function`) - πŸ“ Returns a description of the search plugin. - Ζ’ **version** (`Function`) - πŸ“ Returns the version of the search plugin. - Ζ’ **ui_route** (`Function`) - πŸ“ Returns the frontend route for the search plugin. - Ζ’ **get_schema** (`Function`) - πŸ“ Returns the JSON schema for the search plugin parameters. - Ζ’ **execute** (`Function`) - πŸ“ Executes the dataset search logic with TaskContext support. - Ζ’ **_get_context** (`Function`) - πŸ“ Extracts a small context around the match for display. - πŸ“¦ **MapperPluginModule** (`Module`) - πŸ“ Implements a plugin for mapping dataset columns using external database connections or Excel files. - πŸ—οΈ Layer: Plugins - β„‚ **MapperPlugin** (`Class`) - πŸ“ Plugin for mapping dataset columns verbose names. - Ζ’ **id** (`Function`) - πŸ“ Returns the unique identifier for the mapper plugin. - Ζ’ **name** (`Function`) - πŸ“ Returns the human-readable name of the mapper plugin. - Ζ’ **description** (`Function`) - πŸ“ Returns a description of the mapper plugin. - Ζ’ **version** (`Function`) - πŸ“ Returns the version of the mapper plugin. - Ζ’ **ui_route** (`Function`) - πŸ“ Returns the frontend route for the mapper plugin. - Ζ’ **get_schema** (`Function`) - πŸ“ Returns the JSON schema for the mapper plugin parameters. - Ζ’ **execute** (`Function`) - πŸ“ Executes the dataset mapping logic with TaskContext support. - πŸ“¦ **backend.src.plugins.git_plugin** (`Module`) - πŸ“ ΠŸΡ€Π΅Π΄ΠΎΡΡ‚Π°Π²Π»ΡΠ΅Ρ‚ ΠΏΠ»Π°Π³ΠΈΠ½ для вСрсионирования ΠΈ развСртывания Π΄Π°ΡˆΠ±ΠΎΡ€Π΄ΠΎΠ² Superset. - πŸ—οΈ Layer: Plugin - πŸ”’ Invariant: ВсС ΠΎΠΏΠ΅Ρ€Π°Ρ†ΠΈΠΈ с Git Π΄ΠΎΠ»ΠΆΠ½Ρ‹ Π²Ρ‹ΠΏΠΎΠ»Π½ΡΡ‚ΡŒΡΡ Ρ‡Π΅Ρ€Π΅Π· GitService. - β„‚ **GitPlugin** (`Class`) - πŸ“ РСализация ΠΏΠ»Π°Π³ΠΈΠ½Π° Git Integration для управлСния вСрсиями Π΄Π°ΡˆΠ±ΠΎΡ€Π΄ΠΎΠ². - Ζ’ **__init__** (`Function`) - πŸ“ Π˜Π½ΠΈΡ†ΠΈΠ°Π»ΠΈΠ·ΠΈΡ€ΡƒΠ΅Ρ‚ ΠΏΠ»Π°Π³ΠΈΠ½ ΠΈ Π΅Π³ΠΎ зависимости. - Ζ’ **id** (`Function`) - πŸ“ Returns the plugin identifier. - Ζ’ **name** (`Function`) - πŸ“ Returns the plugin name. - Ζ’ **description** (`Function`) - πŸ“ Returns the plugin description. - Ζ’ **version** (`Function`) - πŸ“ Returns the plugin version. - Ζ’ **ui_route** (`Function`) - πŸ“ Returns the frontend route for the git plugin. - Ζ’ **get_schema** (`Function`) - πŸ“ Π’ΠΎΠ·Π²Ρ€Π°Ρ‰Π°Π΅Ρ‚ JSON-схСму ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ² для выполнСния Π·Π°Π΄Π°Ρ‡ ΠΏΠ»Π°Π³ΠΈΠ½Π°. - Ζ’ **initialize** (`Function`) - πŸ“ ВыполняСт Π½Π°Ρ‡Π°Π»ΡŒΠ½ΡƒΡŽ настройку ΠΏΠ»Π°Π³ΠΈΠ½Π°. - Ζ’ **execute** (`Function`) - πŸ“ Основной ΠΌΠ΅Ρ‚ΠΎΠ΄ выполнСния Π·Π°Π΄Π°Ρ‡ ΠΏΠ»Π°Π³ΠΈΠ½Π° с ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠΎΠΉ TaskContext. - πŸ”— CALLS -> `self._handle_sync` - πŸ”— CALLS -> `self._handle_deploy` - Ζ’ **_handle_sync** (`Function`) - πŸ“ ЭкспортируСт Π΄Π°ΡˆΠ±ΠΎΡ€Π΄ ΠΈΠ· Superset ΠΈ распаковываСт Π² Git-Ρ€Π΅ΠΏΠΎΠ·ΠΈΡ‚ΠΎΡ€ΠΈΠΉ. - πŸ”— CALLS -> `src.services.git_service.GitService.get_repo` - πŸ”— CALLS -> `src.core.superset_client.SupersetClient.export_dashboard` - Ζ’ **_handle_deploy** (`Function`) - πŸ“ Π£ΠΏΠ°ΠΊΠΎΠ²Ρ‹Π²Π°Π΅Ρ‚ Ρ€Π΅ΠΏΠΎΠ·ΠΈΡ‚ΠΎΡ€ΠΈΠΉ Π² ZIP ΠΈ ΠΈΠΌΠΏΠΎΡ€Ρ‚ΠΈΡ€ΡƒΠ΅Ρ‚ Π² Ρ†Π΅Π»Π΅Π²ΠΎΠ΅ ΠΎΠΊΡ€ΡƒΠΆΠ΅Π½ΠΈΠ΅ Superset. - πŸ”— CALLS -> `src.core.superset_client.SupersetClient.import_dashboard` - Ζ’ **_get_env** (`Function`) - πŸ“ Π’ΡΠΏΠΎΠΌΠΎΠ³Π°Ρ‚Π΅Π»ΡŒΠ½Ρ‹ΠΉ ΠΌΠ΅Ρ‚ΠΎΠ΄ для получСния ΠΊΠΎΠ½Ρ„ΠΈΠ³ΡƒΡ€Π°Ρ†ΠΈΠΈ окруТСния. - πŸ“¦ **MigrationPlugin** (`Module`) - πŸ“ A plugin that provides functionality to migrate Superset dashboards between environments. - πŸ—οΈ Layer: App - πŸ”— IMPLEMENTS -> `PluginBase` - πŸ”— DEPENDS_ON -> `superset_tool.client` - πŸ”— DEPENDS_ON -> `superset_tool.utils` - β„‚ **MigrationPlugin** (`Class`) - πŸ“ Implementation of the migration plugin logic. - Ζ’ **id** (`Function`) - πŸ“ Returns the unique identifier for the migration plugin. - Ζ’ **name** (`Function`) - πŸ“ Returns the human-readable name of the migration plugin. - Ζ’ **description** (`Function`) - πŸ“ Returns a description of the migration plugin. - Ζ’ **version** (`Function`) - πŸ“ Returns the version of the migration plugin. - Ζ’ **ui_route** (`Function`) - πŸ“ Returns the frontend route for the migration plugin. - Ζ’ **get_schema** (`Function`) - πŸ“ Returns the JSON schema for migration plugin parameters. - Ζ’ **execute** (`Function`) - πŸ“ Executes the dashboard migration logic with TaskContext support. - πŸ“¦ **MigrationPlugin.execute** (`Action`) - πŸ“ Execute the migration logic with proper task logging. - Ζ’ **schedule_dashboard_validation** (`Function`) - πŸ“ Schedules a recurring dashboard validation task. - Ζ’ **_parse_cron** (`Function`) - πŸ“ Basic cron parser placeholder. - πŸ“¦ **scheduler** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for backend/src/plugins/llm_analysis/scheduler.py - πŸ—οΈ Layer: Unknown - Ζ’ **job_func** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - β„‚ **LLMProviderType** (`Class`) - πŸ“ Enum for supported LLM providers. - β„‚ **LLMProviderConfig** (`Class`) - πŸ“ Configuration for an LLM provider. - β„‚ **ValidationStatus** (`Class`) - πŸ“ Enum for dashboard validation status. - β„‚ **DetectedIssue** (`Class`) - πŸ“ Model for a single issue detected during validation. - β„‚ **ValidationResult** (`Class`) - πŸ“ Model for dashboard validation result. - β„‚ **DashboardValidationPlugin** (`Class`) - πŸ“ Plugin for automated dashboard health analysis using LLMs. - πŸ”— IMPLEMENTS -> `backend.src.core.plugin_base.PluginBase` - Ζ’ **DashboardValidationPlugin.execute** (`Function`) - πŸ“ Executes the dashboard validation task with TaskContext support. - β„‚ **DocumentationPlugin** (`Class`) - πŸ“ Plugin for automated dataset documentation using LLMs. - πŸ”— IMPLEMENTS -> `backend.src.core.plugin_base.PluginBase` - Ζ’ **DocumentationPlugin.execute** (`Function`) - πŸ“ Executes the dataset documentation task with TaskContext support. - πŸ“¦ **plugin** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for backend/src/plugins/llm_analysis/plugin.py - πŸ—οΈ Layer: Unknown - Ζ’ **id** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **name** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **description** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **version** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **get_schema** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **execute** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **id** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **name** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **description** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **version** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **get_schema** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **execute** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - β„‚ **ScreenshotService** (`Class`) - πŸ“ Handles capturing screenshots of Superset dashboards. - Ζ’ **ScreenshotService.__init__** (`Function`) - πŸ“ Initializes the ScreenshotService with environment configuration. - Ζ’ **ScreenshotService.capture_dashboard** (`Function`) - πŸ“ Captures a full-page screenshot of a dashboard using Playwright and CDP. - β„‚ **LLMClient** (`Class`) - πŸ“ Wrapper for LLM provider APIs. - Ζ’ **LLMClient.__init__** (`Function`) - πŸ“ Initializes the LLMClient with provider settings. - Ζ’ **LLMClient._supports_json_response_format** (`Function`) - πŸ“ Detect whether provider/model is likely compatible with response_format=json_object. - Ζ’ **LLMClient.get_json_completion** (`Function`) - πŸ“ Helper to handle LLM calls with JSON mode and fallback parsing. - Ζ’ **LLMClient.analyze_dashboard** (`Function`) - πŸ“ Sends dashboard data (screenshot + logs) to LLM for health analysis. - πŸ“¦ **service** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for backend/src/plugins/llm_analysis/service.py - πŸ—οΈ Layer: Unknown - Ζ’ **__init__** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **capture_dashboard** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **switch_tabs** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **__init__** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **_supports_json_response_format** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **_should_retry** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **get_json_completion** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **analyze_dashboard** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **StoragePlugin** (`Module`) - πŸ“ Provides core filesystem operations for managing backups and repositories. - πŸ—οΈ Layer: App - πŸ”’ Invariant: All file operations must be restricted to the configured storage root. - πŸ”— IMPLEMENTS -> `PluginBase` - πŸ”— DEPENDS_ON -> `backend.src.models.storage` - β„‚ **StoragePlugin** (`Class`) - πŸ“ Implementation of the storage management plugin. - Ζ’ **__init__** (`Function`) - πŸ“ Initializes the StoragePlugin and ensures required directories exist. - Ζ’ **id** (`Function`) - πŸ“ Returns the unique identifier for the storage plugin. - Ζ’ **name** (`Function`) - πŸ“ Returns the human-readable name of the storage plugin. - Ζ’ **description** (`Function`) - πŸ“ Returns a description of the storage plugin. - Ζ’ **version** (`Function`) - πŸ“ Returns the version of the storage plugin. - Ζ’ **ui_route** (`Function`) - πŸ“ Returns the frontend route for the storage plugin. - Ζ’ **get_schema** (`Function`) - πŸ“ Returns the JSON schema for storage plugin parameters. - Ζ’ **execute** (`Function`) - πŸ“ Executes storage-related tasks with TaskContext support. - Ζ’ **get_storage_root** (`Function`) - πŸ“ Resolves the absolute path to the storage root. - Ζ’ **resolve_path** (`Function`) - πŸ“ Resolves a dynamic path pattern using provided variables. - Ζ’ **ensure_directories** (`Function`) - πŸ“ Creates the storage root and category subdirectories if they don't exist. - Ζ’ **validate_path** (`Function`) - πŸ“ Prevents path traversal attacks by ensuring the path is within the storage root. - Ζ’ **list_files** (`Function`) - πŸ“ Lists all files and directories in a specific category and subpath. - Ζ’ **save_file** (`Function`) - πŸ“ Saves an uploaded file to the specified category and optional subpath. - Ζ’ **delete_file** (`Function`) - πŸ“ Deletes a file or directory from the specified category and path. - Ζ’ **get_file_path** (`Function`) - πŸ“ Returns the absolute path of a file for download. - β„‚ **GitLLMExtension** (`Class`) - πŸ“ Provides LLM capabilities to the Git plugin. - Ζ’ **suggest_commit_message** (`Function`) - πŸ“ Generates a suggested commit message based on a diff and history. - πŸ“¦ **llm_extension** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for backend/src/plugins/git/llm_extension.py - πŸ—οΈ 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) - Ζ’ **test_get_dashboards_success** (`Function`) - Ζ’ **test_get_dashboards_env_not_found** (`Function`) - πŸ“¦ **test_dashboards_api** (`Test`) - πŸ“ Verify GET /api/dashboards contract compliance - πŸ“¦ **test_datasets_api** (`Test`) - πŸ“ Verify GET /api/datasets contract compliance - πŸ“¦ **test_resource_hubs** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for backend/tests/test_resource_hubs.py - πŸ—οΈ Layer: Unknown - Ζ’ **mock_deps** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_get_dashboards_success** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_get_dashboards_not_found** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_get_dashboards_search** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_get_datasets_success** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_get_datasets_not_found** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_get_datasets_search** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_get_datasets_service_failure** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **test_task_logger** (`Module`) - πŸ“ Unit tests for TaskLogger and TaskContext. - πŸ—οΈ Layer: Test - β„‚ **TestTaskLogger** (`Class`) - πŸ“ Test suite for TaskLogger. - Ζ’ **setup_method** (`Function`) - πŸ“ Setup for each test method. - Ζ’ **test_init** (`Function`) - πŸ“ Test TaskLogger initialization. - Ζ’ **test_with_source** (`Function`) - πŸ“ Test creating a sub-logger with different source. - Ζ’ **test_debug** (`Function`) - πŸ“ Test debug log level. - Ζ’ **test_info** (`Function`) - πŸ“ Test info log level. - Ζ’ **test_warning** (`Function`) - πŸ“ Test warning log level. - Ζ’ **test_error** (`Function`) - πŸ“ Test error log level. - Ζ’ **test_error_with_metadata** (`Function`) - πŸ“ Test error logging with metadata. - Ζ’ **test_progress** (`Function`) - πŸ“ Test progress logging. - Ζ’ **test_progress_clamping** (`Function`) - πŸ“ Test progress value clamping (0-100). - Ζ’ **test_source_override** (`Function`) - πŸ“ Test overriding the default source. - Ζ’ **test_sub_logger_source_independence** (`Function`) - πŸ“ Test sub-logger independence from parent. - β„‚ **TestTaskContext** (`Class`) - πŸ“ Test suite for TaskContext. - Ζ’ **setup_method** (`Function`) - πŸ“ Setup for each test method. - Ζ’ **test_init** (`Function`) - πŸ“ Test TaskContext initialization. - Ζ’ **test_task_id_property** (`Function`) - πŸ“ Test task_id property. - Ζ’ **test_logger_property** (`Function`) - πŸ“ Test logger property. - Ζ’ **test_params_property** (`Function`) - πŸ“ Test params property. - Ζ’ **test_get_param** (`Function`) - πŸ“ Test getting a specific parameter. - Ζ’ **test_create_sub_context** (`Function`) - πŸ“ Test creating a sub-context with different source. - Ζ’ **test_context_logger_delegates_to_task_logger** (`Function`) - πŸ“ Test context logger delegates to TaskLogger. - Ζ’ **test_sub_context_with_source** (`Function`) - πŸ“ 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`) - πŸ“ Test that belief_scope logs Coherence:Failed on exception. - Ζ’ **test_belief_scope_success_coherence** (`Function`) - πŸ“ Test that belief_scope logs Coherence:OK on success. - Ζ’ **test_belief_scope_not_visible_at_info** (`Function`) - πŸ“ Test that belief_scope Entry/Exit/Coherence logs are NOT visible at INFO level. - Ζ’ **test_task_log_level_default** (`Function`) - πŸ“ Test that default task log level is INFO. - Ζ’ **test_should_log_task_level** (`Function`) - πŸ“ Test that should_log_task_level correctly filters log levels. - Ζ’ **test_configure_logger_task_log_level** (`Function`) - πŸ“ 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_auth** (`Module`) `[TRIVIAL]` - πŸ“ Auto-generated module for backend/tests/test_auth.py - πŸ—οΈ Layer: Unknown - Ζ’ **db_session** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **auth_service** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **auth_repo** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_create_user** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_authenticate_user** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_create_session** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_role_permission_association** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_user_role_association** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - Ζ’ **test_ad_group_mapping** (`Function`) `[TRIVIAL]` - πŸ“ Auto-detected function (orphan) - πŸ“¦ **test_log_persistence** (`Module`) `[CRITICAL]` - πŸ“ Unit tests for TaskLogPersistenceService. - πŸ—οΈ Layer: Test - β„‚ **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 β€” clean task_logs table. - Ζ’ **test_add_logs_single** (`Function`) - πŸ“ Test adding a single log entry. - Ζ’ **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`) - πŸ“ Test retrieving logs with level and source filters. - Ζ’ **test_get_logs_with_pagination** (`Function`) - πŸ“ Test retrieving logs with pagination. - Ζ’ **test_get_logs_with_search** (`Function`) - πŸ“ Test retrieving logs with search query. - Ζ’ **test_get_log_stats** (`Function`) - πŸ“ Test retrieving log statistics. - Ζ’ **test_get_sources** (`Function`) - πŸ“ Test retrieving unique log sources. - Ζ’ **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)