forge
Explore
Log in

Don't you dare go Hollow

🍽️ say which bound drops an orphaned mark

Browse files at this commit

6b7beb11437655ec4cc6efbfe51b451b17bee470Ahmet Kaan GümüşParent: 6200ad0
  • docs
    • 🍽️ say which bound drops an orphaned mark
Show full message
docs: 🍽️ say which bound drops an orphaned mark

Said a bounded read drops one. Only ?from= does — a link to a deleted
menu has no date, so it fails a lower bound and passes an upper one,
and ?to= on its own still returns the mark.
README.mdmodified+4 -3
@@ -1868,9 +1868,10 @@ 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 next1868 day+slot — a mark that outlived its menu would come back as a mark on the next
1869 menu published for that meal. Only the *write* paths ever check the menu:1869 menu published for that meal. Only the *write* paths ever check the menu:
1870 `GET /meals/attendance/{user}` filters on the student, never on the menu still1870 `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 read1871+existing, so such a mark would be read back there while no write could touch it.
1872-drops it, since a link to a deleted menu has no date to compare) while no write1872+Its date bounds only apply when you send them, and a link to a deleted menu has
1873-could touch it. Nothing can create one any more, and the menu delete's own1873+no date to compare, so `?from=` drops such a mark while `?to=` on its own still
1874+returns it. Nothing can create one any more, and the menu delete's own
1874 sweep is what clears the marks a menu leaves behind.1875 sweep is what clears the marks a menu leaves behind.
1875 1876
1876 **Attendance has zero billing effect.** Booking is the sole charge trigger, so1877 **Attendance has zero billing effect.** Booking is the sole charge trigger, so