UUID_HANDLING should ONLY affect UUID values in the _id field.
Previous commit incorrectly added server-side dedup for syncIdentifier
and uuid fields, which was never part of the original behavior.
Changes:
- upsertQueryFor(): Remove syncIdentifier/uuid as dedup keys
- Batch POST: Only fetch existing IDs by identifier, not by
syncIdentifier/uuid
- tests: Update TEST-CACHE-003/004 to document actual behavior
(duplicates occur without ObjectIdCache - this is by design)
- docs: Correct treatments-schema.md (syncIdentifier/uuid preserved,
not copied to identifier)
- docs: Remove external link from entries-schema.md
Loop carbs/doses rely on ObjectIdCache for dedup, not server-side logic.
This matches the original (pre-change) server behavior.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Write normalization (syncIdentifier/uuid → identifier) is ALWAYS on
- UUID_HANDLING flag only controls READ path (GET/DELETE by UUID)
- Fix default: UUID_HANDLING=true (not false)
- Remove incorrect xDrip+ mention from entries (doesn't use UUID _id)
- Clarify that flag only affects API calls with UUID as _id parameter
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Update metadata headers across various Markdown documentation files, including proposals and data schemas, to ensure consistent formatting and version information.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a0a576b2-b0c8-4957-a050-9455d8333c63
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 1f77cc9d-a44f-4ea4-b13b-fb1b8af6fac5
Replit-Helium-Checkpoint-Created: true
Create new documentation files for the `treatments` and `profiles` schemas, detailing their structure, fields, and observed variations across different controller applications.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: f35580f1-0466-46a6-b245-5665d8e1c559
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 94c8fcd7-5002-4547-98e7-481a72a86ca0
Replit-Helium-Checkpoint-Created: true
Create a Markdown file detailing the fields, types, and constraints for the `treatments` collection, including glucose, nutrition, insulin, basal, temporary target, and profile switch data.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: f35580f1-0466-46a6-b245-5665d8e1c559
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 5b10d686-67df-4c29-8eb6-638e9534fa18
Replit-Helium-Checkpoint-Created: true