This commit is contained in:
2026-05-20 23:54:53 +03:00
parent a43886106e
commit 68740cd9ed
167 changed files with 10620 additions and 29041 deletions

View File

@@ -13,8 +13,7 @@ from typing import Any
import httpx
from ..logger import belief_scope
from ..logger import logger as app_logger
from ..logger import belief_scope, logger as app_logger
from .network import (
AuthenticationError,
DashboardNotFoundError,

View File

@@ -11,8 +11,7 @@ from typing import Any
import pandas as pd # type: ignore
import psycopg2 # type: ignore
from ..logger import belief_scope
from ..logger import logger as app_logger
from ..logger import belief_scope, logger as app_logger
# #region DatasetMapper [TYPE Class]

View File

@@ -5,21 +5,20 @@
# @LAYER: Infra
# @RELATION DEPENDS_ON -> [LoggerModule]
# @PUBLIC_API: create_temp_file, remove_empty_directories, read_dashboard_from_disk, calculate_crc32, RetentionPolicy, archive_exports, save_and_unpack_dashboard, update_yamls, create_dashboard_export, sanitize_filename, get_filename_from_headers, consolidate_archive_folders
import os
import re
import shutil
import tempfile
import zipfile
import zlib
from collections.abc import Generator
from contextlib import contextmanager
from dataclasses import dataclass
from datetime import date, datetime
import os
from pathlib import Path
import re
import shutil
import tempfile
from typing import Any, LiteralString
import zipfile
import zlib
from ..logger import belief_scope
from ..logger import logger as app_logger
from ..logger import belief_scope, logger as app_logger
# #region InvalidZipFormatError [TYPE Class]
@@ -174,7 +173,7 @@ def archive_exports(output_dir: str, policy: RetentionPolicy, deduplicate: bool
date_str = match.group(1)
file_date = datetime.strptime(date_str, "%Y%m%d").date()
except ValueError:
pass
app_logger.debug("Could not parse date from filename %s", file_path.name)
if not file_date:
# Fallback to modification time

View File

@@ -6,18 +6,17 @@
# @PUBLIC_API: APIClient
import io
import json
from pathlib import Path
import threading
import time
from pathlib import Path
from typing import Any, cast
import requests
import urllib3
from requests.adapters import HTTPAdapter
import urllib3
from urllib3.util.retry import Retry
from ..logger import belief_scope
from ..logger import logger as app_logger
from ..logger import belief_scope, logger as app_logger
# #region SupersetAPIError [C:1] [TYPE Class]

View File

@@ -12,8 +12,8 @@
# #region _base_imports [TYPE Block]
from __future__ import annotations
import json
from dataclasses import dataclass, field
import json
from typing import Any, cast
from urllib.parse import unquote
@@ -149,7 +149,7 @@ class SupersetContextExtractorBase:
if value is not None:
return int(value)
except (TypeError, ValueError):
pass
logger.debug("Could not parse numeric value from payload key %s", key)
found = self._search_nested_numeric_key(value, candidate_keys)
if found is not None:
return found

View File

@@ -4,8 +4,8 @@
# #endregion SupersetContextExtractorPII
# #region _pii_imports [TYPE Block]
import re
from copy import deepcopy
import re
from typing import Any
# #endregion _pii_imports

View File

@@ -7,8 +7,8 @@
# #region _recovery_imports [TYPE Block]
from __future__ import annotations
import json
from copy import deepcopy
import json
from typing import Any, cast
from ...logger import belief_scope, logger