🍽️ correct what an orphaned mark could be read through
Browse files at this commit36c718ae5166227ae384dd0d957d135eee5aa231Parent: 02b1ff8- docs
- 🍽️ correct what an orphaned mark could be read through
1 changed file +6 -2
- README.md +6 -2
README.mdmodified+6 -2
| @@ -1866,8 +1866,12 @@ write *writes* rather than something it reads and then trusts: a delete racing | |||
| 1866 | it touches the very row it bumps, and the store refuses to commit both. That | 1866 | it touches the very row it bumps, and the store refuses to commit both. That |
| 1867 | matters more here than tidiness, because a menu's id is deterministic on | 1867 | matters more here than tidiness, because a menu's id is deterministic on |
| 1868 | day+slot — a mark that outlived its menu would come back as a mark on the next | 1868 | day+slot — a mark that outlived its menu would come back as a mark on the next |
| 1869 | -menu published for that meal, and reading it or clearing it is impossible in | 1869 | +menu published for that meal. Only the *write* paths ever check the menu: |
| 1870 | -the meantime, since every path to it goes through the menu. | 1870 | +`GET /meals/attendance/{user}` filters on the student, never on the menu still |
| 1871 | +existing, so such a mark would be read back there (a `?from=/?to=` bounded read | ||
| 1872 | +drops it, since a link to a deleted menu has no date to compare) while no write | ||
| 1873 | +could touch it. Nothing can create one any more, and the menu delete's own | ||
| 1874 | +sweep is what clears the marks a menu leaves behind. | ||
| 1871 | 1875 | ||
| 1872 | **Attendance has zero billing effect.** Booking is the sole charge trigger, so | 1876 | **Attendance has zero billing effect.** Booking is the sole charge trigger, so |
| 1873 | a student who booked and did not eat still pays — the kitchen bought the food. | 1877 | a student who booked and did not eat still pays — the kitchen bought the food. |