mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Co-authored-by: bewest <394179+bewest@users.noreply.github.com>
1.6 KiB
1.6 KiB
Changelog
All notable changes to cgm-remote-monitor are documented in this file.
[15.0.7] - 2026-03-XX (Unreleased)
Added
UUID/Identifier Handling (REQ-SYNC-072)
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.
Test Infrastructure
- 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.
Documentation
- 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.
[15.0.6] - Previous Release
See GitHub releases for prior changelog entries.