All notable changes to cgm-remote-monitor are documented in this file.
UUID_HANDLINGenv var (default:true): Feature flag that controls UUID_idnormalization for treatments and entries.- When
true: UUID values sent as_idare extracted to theidentifierfield and a server-generated ObjectId is assigned. GET/DELETE by UUID are routed through theidentifierfield. - When
false: UUID_idvalues are stripped (UUID identity not preserved) and UUID-based queries return empty results.
- When
- Treatments API: Loop overrides with UUID
_idare now normalized correctly, preventing duplicate records (Issue #8450). - Entries API: CGM entries (e.g., Trio) with UUID
_idare now handled correctly. - Scope: Only UUID values in the
_idfield are affected. Other client identity fields (syncIdentifier,uuid,identifier) are preserved but not modified.
- NODE_ENV=test safety check: Tests now refuse to run without
NODE_ENV=test, preventing accidental production database modification. - Comprehensive test suite for UUID handling behavior across write and read paths.
- Updated README.md with
UUID_HANDLINGand MongoDB pool configuration env vars. - Added entries schema documentation (
docs/data-schemas/entries-schema.md). - Updated treatments schema documentation with identifier normalization behavior.
- Added test environment variables reference to CONTRIBUTING.md.
See GitHub releases for prior changelog entries.