fix(llm): add fetch-models endpoint, fix SQL Lab INSERT (client_id truncation, sync mode, target_column, timestamp normalization)
- Add POST /api/llm/providers/fetch-models route with LLMClient.fetch_models() - Add target_column to TranslationJob model/schema/service/orchestrator - Fix SQL Lab execute: truncate client_id to 11 chars (varchar(11)) - Switch SQL Lab to sync mode (runAsync: false) — no Celery workers - Fix polling: unwrap nested result from Superset query API - Fix ClickHouse timestamp: normalize float timestamps to YYYY-MM-DD
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
# [DEF:TestApprovalService:Module]
|
||||
# @RELATION: BELONGS_TO -> SrcRoot
|
||||
# @COMPLEXITY: 5
|
||||
# @SEMANTICS: tests, clean-release, approval, lifecycle, gate
|
||||
# @PURPOSE: Define approval gate contracts for approve/reject operations over immutable compliance evidence.
|
||||
# @LAYER: Tests
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# [DEF:test_candidate_manifest_services:Module]
|
||||
# @RELATION: BELONGS_TO -> [SrcRoot:Module]
|
||||
# @COMPLEXITY: 3
|
||||
# @PURPOSE: Test lifecycle and manifest versioning for release candidates.
|
||||
# @LAYER: Tests
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# [DEF:TestComplianceExecutionService:Module]
|
||||
# @RELATION: BELONGS_TO -> SrcRoot
|
||||
# @COMPLEXITY: 5
|
||||
# @SEMANTICS: tests, clean-release, compliance, pipeline, run-finalization
|
||||
# @PURPOSE: Validate stage pipeline and run finalization contracts for compliance execution.
|
||||
# @LAYER: Tests
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# [DEF:TestComplianceTaskIntegration:Module]
|
||||
# @RELATION: BELONGS_TO -> SrcRoot
|
||||
# @COMPLEXITY: 5
|
||||
# @SEMANTICS: tests, clean-release, compliance, task-manager, integration
|
||||
# @PURPOSE: Verify clean release compliance runs execute through TaskManager lifecycle with observable success/failure outcomes.
|
||||
# @LAYER: Tests
|
||||
@@ -144,7 +143,6 @@ class CleanReleaseCompliancePlugin:
|
||||
|
||||
# [DEF:_PluginLoaderStub:Class]
|
||||
# @RELATION: BINDS_TO -> TestComplianceTaskIntegration
|
||||
# @COMPLEXITY: 2
|
||||
# @PURPOSE: Provide minimal plugin loader contract used by TaskManager in integration tests.
|
||||
# @INVARIANT: has_plugin/get_plugin only acknowledge the seeded compliance plugin id.
|
||||
class _PluginLoaderStub:
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# [DEF:TestDemoModeIsolation:Module]
|
||||
# @COMPLEXITY: 3
|
||||
# @SEMANTICS: clean-release, demo-mode, isolation, namespace, repository
|
||||
# @PURPOSE: Verify demo and real mode namespace isolation contracts before TUI integration.
|
||||
# @LAYER: Tests
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# [DEF:TestPolicyResolutionService:Module]
|
||||
# @COMPLEXITY: 5
|
||||
# @SEMANTICS: clean-release, policy-resolution, trusted-snapshots, contracts
|
||||
# @PURPOSE: Verify trusted policy snapshot resolution contract and error guards.
|
||||
# @LAYER: Tests
|
||||
@@ -24,7 +23,6 @@ from src.services.clean_release.repository import CleanReleaseRepository
|
||||
|
||||
# [DEF:_config_manager:Function]
|
||||
# @RELATION: BINDS_TO -> [TestPolicyResolutionService]
|
||||
# @COMPLEXITY: 1
|
||||
# @PURPOSE: Build deterministic ConfigManager-like stub for tests.
|
||||
# @INVARIANT: Only settings.clean_release.active_policy_id and active_registry_id are populated; any other settings field access raises AttributeError.
|
||||
# @PRE: policy_id and registry_id may be None or non-empty strings.
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# [DEF:TestPublicationService:Module]
|
||||
# @RELATION: BELONGS_TO -> SrcRoot
|
||||
# @COMPLEXITY: 5
|
||||
# @SEMANTICS: tests, clean-release, publication, revoke, gate
|
||||
# @PURPOSE: Define publication gate contracts over approved candidates and immutable publication records.
|
||||
# @LAYER: Tests
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# [DEF:TestReportAuditImmutability:Module]
|
||||
# @RELATION: BELONGS_TO -> SrcRoot
|
||||
# @COMPLEXITY: 5
|
||||
# @SEMANTICS: tests, clean-release, report, audit, immutability, append-only
|
||||
# @PURPOSE: Validate report snapshot immutability expectations and append-only audit hook behavior for US2.
|
||||
# @LAYER: Tests
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# [DEF:SupersetCompatibilityMatrixTests:Module]
|
||||
# @COMPLEXITY: 3
|
||||
# @SEMANTICS: dataset_review, superset, compatibility_matrix, preview, sql_lab, tests
|
||||
# @PURPOSE: Verifies Superset preview and SQL Lab endpoint fallback strategy used by dataset-review orchestration.
|
||||
# @LAYER: Tests
|
||||
@@ -21,7 +20,6 @@ from src.core.utils.superset_compilation_adapter import (
|
||||
|
||||
|
||||
# [DEF:make_adapter:Function]
|
||||
# @COMPLEXITY: 2
|
||||
# @PURPOSE: Build an adapter with a mock Superset client and deterministic environment for compatibility tests.
|
||||
# @RELATION: [DEPENDS_ON] ->[SupersetCompilationAdapter]
|
||||
def make_adapter():
|
||||
@@ -43,7 +41,6 @@ def make_adapter():
|
||||
|
||||
|
||||
# [DEF:test_preview_prefers_supported_client_method_before_network_fallback:Function]
|
||||
# @COMPLEXITY: 2
|
||||
# @PURPOSE: Confirms preview compilation uses a supported client method first when the capability exists.
|
||||
# @RELATION: [DEPENDS_ON] ->[SupersetCompilationAdapter]
|
||||
def test_preview_prefers_supported_client_method_before_network_fallback():
|
||||
@@ -69,7 +66,6 @@ def test_preview_prefers_supported_client_method_before_network_fallback():
|
||||
|
||||
|
||||
# [DEF:test_preview_falls_back_across_matrix_until_supported_endpoint_returns_sql:Function]
|
||||
# @COMPLEXITY: 3
|
||||
# @PURPOSE: Confirms preview fallback walks the compatibility matrix from preferred to legacy endpoints until one returns compiled SQL.
|
||||
# @RELATION: [DEPENDS_ON] ->[SupersetCompilationAdapter]
|
||||
def test_preview_falls_back_across_matrix_until_supported_endpoint_returns_sql():
|
||||
@@ -104,7 +100,6 @@ def test_preview_falls_back_across_matrix_until_supported_endpoint_returns_sql()
|
||||
|
||||
|
||||
# [DEF:test_sql_lab_launch_falls_back_to_legacy_execute_endpoint:Function]
|
||||
# @COMPLEXITY: 3
|
||||
# @PURPOSE: Confirms SQL Lab launch falls back from modern to legacy execute endpoint and preserves canonical session reference extraction.
|
||||
# @RELATION: [DEPENDS_ON] ->[SupersetCompilationAdapter]
|
||||
def test_sql_lab_launch_falls_back_to_legacy_execute_endpoint():
|
||||
|
||||
Reference in New Issue
Block a user