# Project Semantic Map > Compressed view for AI Context. Generated automatically. - ๐Ÿ“ฆ **generate_semantic_map** (`Module`) `[CRITICAL]` - ๐Ÿ“ Scans the codebase to generate a Semantic 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`) - ๐Ÿ“ Recursively validates a list of entities. - ฦ’ **_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. - ฦ’ **to_dict** (`Function`) `[TRIVIAL]` - ๐Ÿ“ Auto-detected function (orphan) - ๐Ÿ“ฆ **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. - ๐Ÿ—„๏ธ **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. - ๐Ÿงฉ **Select** (`Component`) `[TRIVIAL]` - ๐Ÿ“ Standardized dropdown selection component. - ๐Ÿ—๏ธ Layer: Atom - ๐Ÿ“ฅ Props: label: string , value: string | number , disabled: boolean - ๐Ÿ“ฆ **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 - ๐Ÿ“ฅ Props: title: string - ๐Ÿงฉ **Card** (`Component`) `[TRIVIAL]` - ๐Ÿ“ Standardized container with padding and elevation. - ๐Ÿ—๏ธ Layer: Atom - ๐Ÿ“ฅ Props: title: string - ๐Ÿงฉ **Button** (`Component`) `[TRIVIAL]` - ๐Ÿ“ Define component interface and default values. - ๐Ÿ—๏ธ Layer: Atom - ๐Ÿ”’ Invariant: Supports accessible labels and keyboard navigation. - ๐Ÿ“ฅ Props: isLoading: boolean , disabled: boolean - ๐Ÿงฉ **Input** (`Component`) `[TRIVIAL]` - ๐Ÿ“ Standardized text input component with label and error handling. - ๐Ÿ—๏ธ Layer: Atom - ๐Ÿ”’ Invariant: Consistent spacing and focus states. - ๐Ÿ“ฅ Props: label: string , value: string , placeholder: string , error: string , disabled: boolean - ๐Ÿงฉ **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. - ฦ’ **selectPlugin** (`Function`) - ๐Ÿ“ Handles plugin selection and navigation. - ฦ’ **handleFormSubmit** (`Function`) - ๐Ÿ“ Handles task creation from dynamic form submission. - ฦ’ **load** (`Function`) - ๐Ÿ“ Loads initial plugin data for the dashboard. - ๐Ÿงฉ **TaskManagementPage** (`Component`) - ๐Ÿ“ Page for managing and monitoring tasks. - ๐Ÿ—๏ธ Layer: Page - โฌ…๏ธ READS_FROM `lib` - โžก๏ธ WRITES_TO `t` - โฌ…๏ธ READS_FROM `t` - ฦ’ **loadInitialData** (`Function`) - ๐Ÿ“ Loads tasks and environments on page initialization. - ฦ’ **refreshTasks** (`Function`) - ๐Ÿ“ Periodically refreshes the task list. - ฦ’ **handleSelectTask** (`Function`) - ๐Ÿ“ Updates the selected task ID when a task is clicked. - ฦ’ **handleRunBackup** (`Function`) - ๐Ÿ“ Triggers a manual backup task for the selected environment. - ๐Ÿงฉ **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 `auth` - ฦ’ **handleLogin** (`Function`) - ๐Ÿ“ Submits the local login form to the backend. - ฦ’ **handleADFSLogin** (`Function`) - ๐Ÿ“ Redirects the user to the ADFS login endpoint. - ๐Ÿงฉ **AdminRolesPage** (`Component`) - ๐Ÿ“ UI for managing system roles and their permissions. - ๐Ÿ—๏ธ Layer: Domain - ๐Ÿ”’ Invariant: Only accessible by users with Admin role. - โฌ…๏ธ READS_FROM `lib` - โฌ…๏ธ READS_FROM `t` - โžก๏ธ WRITES_TO `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` - โฌ…๏ธ READS_FROM `t` - โžก๏ธ WRITES_TO `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 - ๐Ÿ“ฆ **+page** (`Module`) `[TRIVIAL]` - ๐Ÿ“ Auto-generated module for frontend/src/routes/admin/settings/llm/+page.svelte - ๐Ÿ—๏ธ Layer: Unknown - ฦ’ **fetchProviders** (`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` - ฦ’ **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` - ๐Ÿงฉ **DebugPage** (`Component`) `[TRIVIAL]` - ๐Ÿ“ Page for system diagnostics and debugging. - ๐Ÿ—๏ธ Layer: UI - โฌ…๏ธ READS_FROM `lib` - ฦ’ **handleSaveGlobal** (`Function`) - ๐Ÿ“ Saves global application settings. - ฦ’ **handleSaveStorage** (`Function`) - ๐Ÿ“ Saves storage-specific settings. - ฦ’ **handleAddOrUpdateEnv** (`Function`) - ๐Ÿ“ Adds a new environment or updates an existing one. - ฦ’ **handleDeleteEnv** (`Function`) - ๐Ÿ“ Deletes a Superset environment. - ฦ’ **handleTestEnv** (`Function`) - ๐Ÿ“ Tests the connection to a Superset environment. - ฦ’ **editEnv** (`Function`) - ๐Ÿ“ Populates the environment form for editing. - ฦ’ **resetEnvForm** (`Function`) - ๐Ÿ“ Resets the environment creation/edit form to default state. - ฦ’ **load** (`Function`) - ๐Ÿ“ Loads application settings and environment list. - ๐Ÿงฉ **ConnectionsSettingsPage** (`Component`) - ๐Ÿ“ Page for managing database connection configurations. - ๐Ÿ—๏ธ Layer: UI - ฦ’ **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` - ฦ’ **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` - ฦ’ **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. - ฦ’ **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 - ๐Ÿ“ฅ Props: show: any, databases: any, errorMessage: any - โšก Events: cancel, resume - ฦ’ **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 - ฦ’ **updateMapping** (`Function`) - ๐Ÿ“ Updates a mapping for a specific source database. - ฦ’ **getSuggestion** (`Function`) - ๐Ÿ“ Finds a suggestion for a source database. - ๐Ÿงฉ **TaskLogViewer** (`Component`) - ๐Ÿ“ Displays detailed logs for a specific task in a modal or inline using TaskLogPanel. - ๐Ÿ—๏ธ Layer: UI - ๐Ÿ“ฅ Props: show: any, inline: any, taskId: any, taskStatus: any - โšก Events: close - โฌ…๏ธ READS_FROM `t` - โžก๏ธ WRITES_TO `t` - ฦ’ **fetchLogs** (`Function`) - ๐Ÿ“ Fetches logs for the current task. - ฦ’ **close** (`Function`) - ๐Ÿ“ Closes the log viewer modal. - ฦ’ **onDestroy** (`Function`) - ๐Ÿ“ Cleans up the polling interval. - ๐Ÿ“ฆ **TaskLogViewer** (`Module`) `[TRIVIAL]` - ๐Ÿ“ Auto-generated module for frontend/src/components/TaskLogViewer.svelte - ๐Ÿ—๏ธ Layer: Unknown - ฦ’ **handleFilterChange** (`Function`) `[TRIVIAL]` - ๐Ÿ“ Auto-detected function (orphan) - ๐Ÿงฉ **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. - ๐Ÿ“ฅ Props: show: boolean , sourceDbName: string , sourceDbUuid: string - โšก Events: cancel, resolve - ฦ’ **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. - ๐Ÿ“ฅ Props: dashboards: DashboardMetadata[] , selectedIds: number[] , environmentId: string - โšก Events: selectionChanged - โžก๏ธ WRITES_TO `t` - โฌ…๏ธ READS_FROM `t` - ฦ’ **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` - ฦ’ **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 `selectedTask` - โžก๏ธ WRITES_TO `selectedTask` - โžก๏ธ WRITES_TO `taskLogs` - ฦ’ **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 - ๐Ÿ“ฅ Props: tasks: Array , loading: boolean - โšก Events: select - โžก๏ธ 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 - ๐Ÿ“ฅ Props: schema: any - โšก Events: submit - ฦ’ **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. - ๐Ÿ“ฅ Props: label: string , selectedId: string - โšก Events: change - ฦ’ **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`) - ๐Ÿ“ Scrolls the log container to the bottom. - ๐Ÿ—๏ธ Layer: UI - ๐Ÿ”’ Invariant: Must always display logs in chronological order and respect auto-scroll preference. - ๐Ÿ“ฅ Props: taskId: any, logs: any, autoScroll: any - โšก Events: filterChange - ๐Ÿ“ฆ **TaskLogPanel** (`Module`) `[TRIVIAL]` - ๐Ÿ“ Auto-generated module for frontend/src/components/tasks/TaskLogPanel.svelte - ๐Ÿ—๏ธ Layer: Unknown - ฦ’ **handleFilterChange** (`Function`) `[TRIVIAL]` - ๐Ÿ“ Auto-detected function (orphan) - ฦ’ **scrollToBottom** (`Function`) `[TRIVIAL]` - ๐Ÿ“ Auto-detected function (orphan) - ๐Ÿงฉ **LogFilterBar** (`Component`) - ๐Ÿ“ UI component for filtering logs by level, source, and text search. --> - ๐Ÿ—๏ธ Layer: UI --> - ๐Ÿ“ฅ Props: availableSources: any, selectedLevel: any, selectedSource: any, searchText: any - ๐Ÿ“ฆ **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`) - ๐Ÿ“ Optimized row rendering for a single log entry with color coding and progress bar support. --> - ๐Ÿ—๏ธ Layer: UI --> - ๐Ÿ“ฅ Props: log: any, showSource: any - ๐Ÿ“ฆ **LogEntryRow** (`Module`) `[TRIVIAL]` - ๐Ÿ“ Auto-generated module for frontend/src/components/tasks/LogEntryRow.svelte - ๐Ÿ—๏ธ Layer: Unknown - ฦ’ **formatTime** (`Function`) `[TRIVIAL]` - ๐Ÿ“ Auto-detected function (orphan) - ฦ’ **getLevelClass** (`Function`) `[TRIVIAL]` - ๐Ÿ“ Auto-detected function (orphan) - ฦ’ **getSourceClass** (`Function`) `[TRIVIAL]` - ๐Ÿ“ Auto-detected function (orphan) - ๐Ÿงฉ **FileList** (`Component`) - ๐Ÿ“ Displays a table of files with metadata and actions. - ๐Ÿ—๏ธ Layer: UI - ๐Ÿ“ฅ Props: files: any - โšก Events: delete, navigate - โžก๏ธ 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 - โฌ…๏ธ READS_FROM `t` - โžก๏ธ WRITES_TO `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 - โžก๏ธ WRITES_TO `t` - โฌ…๏ธ READS_FROM `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 - โžก๏ธ WRITES_TO `t` - โฌ…๏ธ READS_FROM `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 - ฦ’ **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 - ๐Ÿ“ฅ Props: dashboardId: any - โฌ…๏ธ READS_FROM `t` - โžก๏ธ WRITES_TO `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. - ๐Ÿ“ฅ Props: dashboardId: any, show: any - โšก Events: deploy - ๐Ÿ“ฆ **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. - ๐Ÿ“ฅ Props: conflicts: any, show: any - โšก Events: resolve - ฦ’ **resolve** (`Function`) - ๐Ÿ“ Set resolution strategy for a file. - ฦ’ **handleSave** (`Function`) - ๐Ÿ“ Validate and submit resolutions. - ๐Ÿงฉ **CommitModal** (`Component`) - ๐Ÿ“ ะœะพะดะฐะปัŒะฝะพะต ะพะบะฝะพ ะดะปั ัะพะทะดะฐะฝะธั ะบะพะผะผะธั‚ะฐ ั ะฟั€ะพัะผะพั‚ั€ะพะผ ะธะทะผะตะฝะตะฝะธะน (diff). - ๐Ÿ—๏ธ Layer: Component - ๐Ÿ“ฅ Props: dashboardId: any, show: any - โšก Events: commit - ฦ’ **handleGenerateMessage** (`Function`) - ๐Ÿ“ Generates a commit message using LLM. - ฦ’ **loadStatus** (`Function`) - ๐Ÿ“ ะ—ะฐะณั€ัƒะถะฐะตั‚ ั‚ะตะบัƒั‰ะธะน ัั‚ะฐั‚ัƒั ั€ะตะฟะพะทะธั‚ะพั€ะธั ะธ diff. - ฦ’ **handleCommit** (`Function`) - ๐Ÿ“ ะกะพะทะดะฐะตั‚ ะบะพะผะผะธั‚ ั ัƒะบะฐะทะฐะฝะฝั‹ะผ ัะพะพะฑั‰ะตะฝะธะตะผ. - ๐Ÿงฉ **BranchSelector** (`Component`) - ๐Ÿ“ UI ะดะปั ะฒั‹ะฑะพั€ะฐ ะธ ัะพะทะดะฐะฝะธั ะฒะตั‚ะพะบ Git. - ๐Ÿ—๏ธ Layer: Component - ๐Ÿ“ฅ Props: dashboardId: any, currentBranch: any - โšก Events: change - โฌ…๏ธ 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 - ๐Ÿ“ฅ Props: dashboardId: any, dashboardTitle: any, show: any - โžก๏ธ WRITES_TO `t` - โฌ…๏ธ 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 - ๐Ÿ“ฅ Props: documentation: any, onSave: any, onCancel: any - โžก๏ธ WRITES_TO `t` - โฌ…๏ธ READS_FROM `t` - ๐Ÿ“ฆ **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 - ฦ’ **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) - ๐Ÿ“ฆ **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. - ฦ’ **log_requests** (`Function`) - ๐Ÿ“ Middleware to log incoming HTTP requests and their response status. - ฦ’ **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 frontend static files or index.html for SPA routing. - ฦ’ **read_root** (`Function`) - ๐Ÿ“ A simple root endpoint to confirm that the API is running when frontend is missing. - ฦ’ **network_error_handler** (`Function`) `[TRIVIAL]` - ๐Ÿ“ Auto-detected function (orphan) - ฦ’ **matches_filters** (`Function`) `[TRIVIAL]` - ๐Ÿ“ Auto-detected function (orphan) - ๐Ÿ“ฆ **Dependencies** (`Module`) - ๐Ÿ“ Manages the creation and provision of shared application dependencies, such as the PluginLoader and TaskManager, to avoid circular imports. - ๐Ÿ—๏ธ Layer: Core - ฦ’ **get_config_manager** (`Function`) - ๐Ÿ“ Dependency injector for the ConfigManager. - ฦ’ **get_plugin_loader** (`Function`) - ๐Ÿ“ Dependency injector for the PluginLoader. - ฦ’ **get_task_manager** (`Function`) - ๐Ÿ“ Dependency injector for the TaskManager. - ฦ’ **get_scheduler_service** (`Function`) - ๐Ÿ“ Dependency injector for the SchedulerService. - ๐Ÿ“ฆ **oauth2_scheme** (`Variable`) - ๐Ÿ“ OAuth2 password bearer scheme for token extraction. - ฦ’ **get_current_user** (`Function`) - ๐Ÿ“ Dependency for retrieving the 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_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. - ฦ’ **export_dashboard** (`Function`) - ๐Ÿ“ ะญะบัะฟะพั€ั‚ะธั€ัƒะตั‚ ะดะฐัˆะฑะพั€ะด ะฒ ะฒะธะดะต ZIP-ะฐั€ั…ะธะฒะฐ. - ฦ’ **import_dashboard** (`Function`) - ๐Ÿ“ ะ˜ะผะฟะพั€ั‚ะธั€ัƒะตั‚ ะดะฐัˆะฑะพั€ะด ะธะท ZIP-ั„ะฐะนะปะฐ. - ฦ’ **delete_dashboard** (`Function`) - ๐Ÿ“ ะฃะดะฐะปัะตั‚ ะดะฐัˆะฑะพั€ะด ะฟะพ ะตะณะพ ID ะธะปะธ slug. - ฦ’ **get_datasets** (`Function`) - ๐Ÿ“ ะŸะพะปัƒั‡ะฐะตั‚ ะฟะพะปะฝั‹ะน ัะฟะธัะพะบ ะดะฐั‚ะฐัะตั‚ะพะฒ, ะฐะฒั‚ะพะผะฐั‚ะธั‡ะตัะบะธ ะพะฑั€ะฐะฑะฐั‚ั‹ะฒะฐั ะฟะฐะณะธะฝะฐั†ะธัŽ. - ฦ’ **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. - ๐Ÿ“ฆ **ConfigManagerModule** (`Module`) - ๐Ÿ“ Manages application configuration, including loading/saving to JSON and CRUD for environments. - ๐Ÿ—๏ธ Layer: Core - ๐Ÿ”’ Invariant: Configuration must always be valid according to AppConfig model. - ๐Ÿ”— DEPENDS_ON -> `ConfigModels` - ๐Ÿ”— CALLS -> `logger` - โ„‚ **ConfigManager** (`Class`) - ๐Ÿ“ A class to handle application configuration persistence and management. - ฦ’ **__init__** (`Function`) - ๐Ÿ“ Initializes the ConfigManager. - ฦ’ **_load_config** (`Function`) - ๐Ÿ“ Loads the configuration from disk or creates a default one. - ฦ’ **_save_config_to_disk** (`Function`) - ๐Ÿ“ Saves the provided configuration object to disk. - ฦ’ **save** (`Function`) - ๐Ÿ“ Saves the current configuration state to disk. - ฦ’ **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 the SQLite database connection and session management. - ๐Ÿ—๏ธ Layer: Core - ๐Ÿ”’ Invariant: A single engine instance is used for the entire application. - ๐Ÿ”— DEPENDS_ON -> `sqlalchemy` - ๐Ÿ“ฆ **BASE_DIR** (`Variable`) - ๐Ÿ“ Base directory for the backend (where .db files should reside). - ๐Ÿ“ฆ **DATABASE_URL** (`Constant`) - ๐Ÿ“ URL for the main mappings 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`) - ๐Ÿ“ A session factory for the main mappings database. - โ„‚ **TasksSessionLocal** (`Class`) - ๐Ÿ“ A session factory for the tasks execution database. - โ„‚ **AuthSessionLocal** (`Class`) - ๐Ÿ“ 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. - ๐Ÿ“ฆ **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. - โ„‚ **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. - ฦ’ **transform_zip** (`Function`) - ๐Ÿ“ Extracts ZIP, replaces database UUIDs in YAMLs, and re-packages. - ฦ’ **_transform_yaml** (`Function`) - ๐Ÿ“ Replaces database_uuid in a single YAML file. - โ„‚ **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.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` - ๐Ÿ“ฆ **pwd_context** (`Variable`) - ๐Ÿ“ Passlib CryptContext for password management. - ฦ’ **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. - ๐Ÿ“ฆ **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`) - ๐Ÿ“ ะะฒั‚ะพะผะฐั‚ะธั‡ะตัะบะธ ัะพะฑะธั€ะฐะตั‚ ะดะฐะฝะฝั‹ะต ัะพ ะฒัะตั… ัั‚ั€ะฐะฝะธั† ะฟะฐะณะธะฝะธั€ะพะฒะฐะฝะฝะพะณะพ ัะฝะดะฟะพะธะฝั‚ะฐ. - ๐Ÿ“ฆ **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` - ๐Ÿ“ฆ **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`) - ๐Ÿ“ 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`) - ๐Ÿ“ Provides methods to save and load tasks from the tasks.db database using SQLAlchemy. - ฦ’ **__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`) - ๐Ÿ“ Initialize the log persistence service. - ฦ’ **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`) - ๐Ÿ“ 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). - ๐Ÿ“ฆ **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.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. - ฦ’ **update_environment_schedule** (`Function`) - ๐Ÿ“ Update backup schedule for an environment. - ฦ’ **get_environment_databases** (`Function`) - ๐Ÿ“ Fetch the list of databases from a specific environment. - ๐Ÿ“ฆ **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. - ๐Ÿ“ฆ **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. - ๐Ÿ“ฆ **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. - ๐Ÿ“ฆ **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` - ๐Ÿ“ฆ **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.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` - โ„‚ **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. - ๐Ÿ“ฆ **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` - ๐Ÿ“ฆ **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.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. - ๐Ÿ“ฆ **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.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) - ฦ’ **_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_environment_model** (`Function`) - ๐Ÿ“ Tests that Environment model correctly stores values. - ๐Ÿ“ฆ **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_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`) - ๐Ÿ“ Unit tests for TaskLogPersistenceService. - ๐Ÿ—๏ธ Layer: Test - โ„‚ **TestLogPersistence** (`Class`) - ๐Ÿ“ Test suite for TaskLogPersistenceService. - ฦ’ **setup_class** (`Function`) - ๐Ÿ“ Setup test database and service instance. - ฦ’ **teardown_class** (`Function`) - ๐Ÿ“ Clean up test database. - ฦ’ **setup_method** (`Function`) - ๐Ÿ“ Setup for each test method. - ฦ’ **teardown_method** (`Function`) - ๐Ÿ“ Cleanup after each test method. - ฦ’ **test_add_log_single** (`Function`) - ๐Ÿ“ Test adding a single log entry. - ฦ’ **test_add_log_batch** (`Function`) - ๐Ÿ“ Test adding multiple log entries in batch. - ฦ’ **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_log_sources** (`Function`) - ๐Ÿ“ Test retrieving unique log sources. - ฦ’ **test_delete_logs_by_task_id** (`Function`) - ๐Ÿ“ Test deleting logs by task ID.