Ben West and Copilot
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
..
2026-03-18 14:06:16 -07:00
2026-03-18 19:57:40 -07:00
2026-03-18 19:57:40 -07:00
2021-02-18 18:23:40 +02:00
2022-08-30 12:49:01 +03:00
2026-01-19 13:14:21 -08:00
2021-01-07 22:58:23 +02:00
2026-03-10 16:13:51 -07:00
2023-02-18 16:12:47 +02:00
2023-02-18 16:12:47 +02:00
2026-03-06 21:35:16 +00:00
2026-03-06 21:35:16 +00:00
2023-02-18 16:12:47 +02:00
2026-01-19 13:14:21 -08:00
2026-03-06 21:35:16 +00:00
2023-02-18 16:12:47 +02:00
2026-01-19 13:14:21 -08:00
2023-02-18 16:12:47 +02:00
2026-03-06 21:35:16 +00:00
2026-03-06 21:35:16 +00:00
2026-01-19 22:47:02 +00:00
2026-03-18 16:00:18 -07:00
2021-02-02 19:53:30 +02:00
2026-03-12 14:16:21 -07:00
2026-03-18 11:02:31 -07:00
2026-03-18 16:01:35 -07:00
2026-03-11 14:36:23 -07:00
2026-03-18 15:58:50 -07:00
2026-03-18 14:06:16 -07:00
2026-01-19 22:47:02 +00:00
2026-03-18 11:02:31 -07:00
2019-10-30 22:55:23 +01:00
2026-01-19 18:50:11 -08:00
2026-03-18 10:38:34 -07:00
2021-02-02 19:53:30 +02:00
2026-03-10 15:26:39 -07:00
2026-01-19 13:13:43 -08:00
2026-01-19 22:47:02 +00:00
2021-02-02 19:53:30 +02:00
2023-01-01 19:14:59 +02:00
2023-01-01 19:14:59 +02:00
2023-01-01 19:14:59 +02:00
2026-03-17 13:28:12 -07:00
2021-12-10 00:46:34 +00:00
2023-01-01 19:14:59 +02:00
2026-03-10 15:00:16 -07:00
2021-02-02 19:53:30 +02:00
2026-03-12 12:24:15 -07:00
2020-05-05 22:13:21 +03:00
2015-11-16 21:39:10 +01:00
2023-01-01 19:14:59 +02:00
2026-01-19 13:14:21 -08:00
2021-02-08 19:28:49 +02:00
2016-10-15 10:54:20 -07:00
2021-02-02 19:53:30 +02:00
2026-03-06 21:35:16 +00:00
2018-07-27 16:04:07 +03:00
2021-02-02 19:53:30 +02:00
2021-02-02 19:53:30 +02:00
2020-01-14 15:33:56 +00:00
2019-11-10 21:57:49 +00:00
2026-01-19 13:15:09 -08:00
2026-03-10 14:54:00 -07:00
2023-01-24 19:43:45 +02:00
2026-03-18 19:49:49 -07:00
2026-03-17 15:21:25 -07:00
2023-01-01 19:14:59 +02:00
2023-01-01 19:14:59 +02:00
2023-01-01 19:14:59 +02:00
2026-03-19 17:31:31 -07:00
2026-03-06 23:24:50 +00:00
2015-07-12 23:46:21 -07:00
2023-01-01 19:14:59 +02:00
2020-12-14 22:08:53 +02:00
2016-01-07 12:17:02 -08:00
2026-01-19 13:15:09 -08:00
2021-02-02 19:53:30 +02:00
2021-02-02 19:53:30 +02:00
2020-12-14 22:08:53 +02:00
2026-03-17 16:00:03 -07:00
2026-03-06 23:42:58 +00:00
2021-02-02 19:53:30 +02:00
2018-09-29 14:49:56 +02:00
2016-10-15 10:54:20 -07:00
2026-03-18 19:49:49 -07:00
2023-01-01 19:14:59 +02:00
2021-01-17 12:20:48 +02:00
2023-01-01 19:14:59 +02:00
2021-02-02 19:53:30 +02:00
2020-12-14 22:30:21 +02:00
2026-03-08 01:01:57 +00:00
2020-11-17 14:17:17 +02:00
2026-01-20 02:05:33 +00:00
2021-01-31 12:41:00 +02:00
2021-02-02 19:53:30 +02:00
2021-02-06 19:11:36 +02:00
2023-01-01 19:14:59 +02:00
2020-02-22 17:07:21 +02:00
2026-03-10 15:03:48 -07:00
2021-02-02 19:53:30 +02:00
2026-03-18 14:06:16 -07:00
2021-02-02 19:53:30 +02:00
2015-07-29 00:24:13 -07:00
2021-02-02 19:53:30 +02:00
2020-01-12 18:46:08 +00:00
2020-12-14 22:08:53 +02:00
2023-01-01 19:14:59 +02:00
2026-03-17 17:17:33 -07:00
2021-02-02 19:53:30 +02:00
2026-03-12 14:09:36 -07:00
2026-01-19 22:47:02 +00:00