Dataforth (projects/dataforth-dos/): - UI feature: row coloring + PUSH/RE-PUSH buttons + Website Status filter - Database dedup to one row per SN (2.89M -> 469K rows, UNIQUE constraint added) - Import logic handles FAIL -> PASS retest transition - Refactored upload-to-api.js to render datasheets in-memory (dropped For_Web filesystem dep) - Bulk pushed 170,984 records to Hoffman API - Statistical sanity check: 100/100 stamped SNs verified on Hoffman GuruRMM (projects/msp-tools/guru-rmm/): - ROADMAP.md: added Terminology (5-tier hierarchy), Tunnel Channels Phase 2, Logging/Audit/Observability, Multi-tenancy, Modular Architecture, Protocol Versioning, Certificates sections + Decisions Log - CONTEXT.md: hierarchy table, new anti-patterns (bootstrap sacred, no cross-module imports), revised next-steps priorities Session logs for both projects. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
12 lines
434 B
SQL
12 lines
434 B
SQL
-- Adds api_uploaded_at tracking column + partial index for "not-yet-uploaded" queries.
|
|
-- Safe to re-run (IF NOT EXISTS).
|
|
|
|
ALTER TABLE test_records
|
|
ADD COLUMN IF NOT EXISTS api_uploaded_at TIMESTAMPTZ DEFAULT NULL;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_unuploaded_pass
|
|
ON test_records(overall_result, forweb_exported_at)
|
|
WHERE overall_result = 'PASS'
|
|
AND forweb_exported_at IS NOT NULL
|
|
AND api_uploaded_at IS NULL;
|