Files
cgm-remote-monitor/tests
Ben WestandCopilot b8523430db test: add regression test proving #6923 legacy UUID data bug
Inserts a treatment directly into MongoDB with UUID as _id (no identifier
field) — the shape of overrides created before normalizeTreatmentId(). All 3
tests fail as expected:

- DELETE: responds 200 but deletedCount=0 (silent no-op)
- PUT: creates duplicate document instead of updating in place
- GET: returns 0 results (query rewrite misses legacy doc)

These tests document the legacy data gap and will pass once updateIdQuery()
is updated to use a $or fallback: {identifier: UUID} || {_id: UUID}.

Relates to: #6923, #8450

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-19 17:31:31 -07:00
..
2021-02-18 18:23:40 +02:00
2022-08-30 12:49:01 +03:00
2021-02-08 19:28:49 +02:00
2019-11-10 21:57:49 +00:00
2020-12-14 22:30:21 +02:00
2020-02-22 17:07:21 +02:00