cleanup: remove dead code and duplicate docs
- Remove session-ses_2f27.md (161KB raw session log) - Remove 49 ROOT_* duplicate files across REFERENCE/ - Remove 14 duplicate files between REFERENCE/ root and history/ - Remove asr_legacy.rs (dead code, replaced by asr.rs) - Remove src/core/worker/ (duplicate JobWorker) - Remove src/core/layers/ (empty directory) - Remove 4 .bak files in src/ - Remove 7 dead private methods in worker/processor.rs - Remove backup directory from git tracking
This commit is contained in:
@@ -88,7 +88,7 @@ def test_identities_table(schema="dev"):
|
||||
|
||||
def test_reference_data_storage(schema="dev"):
|
||||
"""Test reference_data JSONB storage"""
|
||||
print(f"\n🔧 Testing reference_data JSONB storage...")
|
||||
print("\n🔧 Testing reference_data JSONB storage...")
|
||||
|
||||
test_data = {
|
||||
"face_embeddings": [
|
||||
@@ -139,14 +139,14 @@ def test_reference_data_storage(schema="dev"):
|
||||
|
||||
stored_json = json.loads(stored_data) if isinstance(stored_data, str) else stored_data
|
||||
|
||||
print(f"✅ Stored reference_data:")
|
||||
print("✅ Stored reference_data:")
|
||||
print(f" - face_embeddings: {len(stored_json.get('face_embeddings', []))} items")
|
||||
print(f" - identity_embeddings: {len(stored_json.get('identity_embeddings', []))} items")
|
||||
print(f" - image_urls: {len(stored_json.get('image_urls', []))} items")
|
||||
|
||||
cur.execute(f"DELETE FROM {schema}.identities WHERE name = 'Test Identity';")
|
||||
conn.commit()
|
||||
print(f"✅ Cleaned up test identity")
|
||||
print("✅ Cleaned up test identity")
|
||||
|
||||
return True
|
||||
except Exception as e:
|
||||
@@ -160,7 +160,7 @@ def test_reference_data_storage(schema="dev"):
|
||||
|
||||
def test_query_accusys_logo(schema="dev"):
|
||||
"""Query Accusys Logo Identity"""
|
||||
print(f"\n🔧 Querying Accusys Logo Identity...")
|
||||
print("\n🔧 Querying Accusys Logo Identity...")
|
||||
|
||||
conn = psycopg2.connect(DATABASE_URL)
|
||||
cur = conn.cursor()
|
||||
@@ -176,7 +176,7 @@ def test_query_accusys_logo(schema="dev"):
|
||||
|
||||
if row:
|
||||
uuid, name, identity_type, source, status, reference_data = row
|
||||
print(f"✅ Found Identity:")
|
||||
print("✅ Found Identity:")
|
||||
print(f" - UUID: {uuid}")
|
||||
print(f" - Name: {name}")
|
||||
print(f" - Type: {identity_type}")
|
||||
@@ -184,13 +184,13 @@ def test_query_accusys_logo(schema="dev"):
|
||||
print(f" - Status: {status}")
|
||||
|
||||
ref_data = json.loads(reference_data) if isinstance(reference_data, str) else reference_data
|
||||
print(f" - reference_data:")
|
||||
print(" - reference_data:")
|
||||
print(f" - image_urls: {ref_data.get('image_urls', [])}")
|
||||
print(f" - identity_embeddings: {len(ref_data.get('identity_embeddings', []))} items")
|
||||
|
||||
return True
|
||||
else:
|
||||
print(f"⚠️ Accusys Logo Identity not found")
|
||||
print("⚠️ Accusys Logo Identity not found")
|
||||
return False
|
||||
except Exception as e:
|
||||
print(f"❌ Query failed: {e}")
|
||||
|
||||
Reference in New Issue
Block a user