feat: scope CBB search selection and maintenance to visible non-READY rows

This commit is contained in:
阿白叔 committed 2026-11-02 18:47:25 +08:00
1 parent c823a4b92d
commit 747ce1add2
5 files changed
+572 -106

No files matched your search

+4 -3
View File
@@ -1,4 +1,4 @@
"""Reports for the explicit full-library maintenance action."""
"""Reports for the explicit visible non-READY maintenance action."""
from dataclasses import asdict
import json
@@ -20,8 +20,9 @@ def maintenance_counts(results):
def write_maintenance_report(requests, results, batch_report, skipped_names):
path = batch_report.with_name(batch_report.name.replace('batch-', 'icdb-', 1)).with_suffix('.json')
record = {'operation': 'full_library_icdb_check_and_repair',
'library': str(requests[0].lmc_file), 'includes_ready': True,
record = {'operation': 'visible_non_ready_icdb_check_and_repair',
'library': str(requests[0].lmc_file), 'includes_ready': False,
'target_names': [request.block_name for request in requests],
'shared_database_repair_supported': False,
'preflight_skipped': sorted(skipped_names), 'counts': maintenance_counts(results),
'results': [{'block': req.block_name, **asdict(result)}