Skip to content

D70 · A v1 file with no v2 record to hold it is kept as a file from v1, on its driver or car

Accepted · 2026-10-21 · zuki · Second case narrowed by D110

Decision: The photo copy (data phase row 6) attaches each v1 file to its v2 record when it can tell which one: by the v1 row that names the file, then by the owner and a one-of-a-kind label, then by the owner and the day when exactly one record fits. A file whose owner is certain but which no v2 record can hold is kept as a file from v1, on its driver or its car, never attached to a record it may not belong to. Files from v1 are read-only in v2, and they show on the driver's or the car's page, to the people who may see the kind of record the file came from.

"No v2 record can hold it" covers two cases:

  • The record is uncertain: no record, or several, fit the owner on that day.
  • v2 has no record of that kind: a migrated car's photos from the front, back, sides and fuel gauge (v1's vehicle folder), which v1 took when the car came in. v2 takes them in the car's first preparation inspection (R-VEH-22), which no migrated car has.

Why: zuki chose option (a) on #184 (2026-10-21). v1 keeps its 54,540 files in folders by car or driver (#184, the Backend Engineer's report), and about 89% of them match a record exactly. For the rest, a wrong attachment is worse than none: a payment proof on the wrong payment, or a KTP photo on the wrong check. Leaving them in v1 would lose them when v1 is retired (D60: every file moves).

Consequences:

  • A table of files from v1: the organization, the owner (a driver or a car), the v1 folder and label, the time the file was taken, its type and size, and its D14 path. Only the migration writes it. Nobody edits or deletes a row or its file in the app (R-STO-12, D65). The Docs Engineer writes its rules, and the Backend Engineer builds it before row 6.

  • Who sees a file from v1 follows its v1 folder:

    • a background-check or contract file needs what the driver's documents need;
    • a payment or rebate file needs what payments need;
    • a car, checkpoint, insurance or ETLE file needs what the car needs.

    The Docs Engineer writes the mapping as rules, with D31's limits.

  • Personal data: files from v1 are a driver's files under D15. Anonymizing a driver deletes his, as for his documents (R-DRV-26).

  • The reconcile counts files attached to a record, files from v1, and files not copied, per folder (D18). Only the last is a difference to explain.

  • Built: the table and the migration's writes in the data phase; the list on the driver's and the car's pages in M2 (cars) and M3 (drivers).