Skip to content

fix(cycle): accept a symptom logged without an intensity - #1003

Merged
MBombeck merged 2 commits into
mainfrom
fix/cycle-symptom-severity-null
Sep 18, 2026
Merged

MBombeck merged 2 commits into
mainfrom
fix/cycle-symptom-severity-null

Conversation

@MBombeck

Copy link
Copy Markdown
Owner

Selecting a cycle symptom without tapping an intensity sends severity: null, which both day-log schemas refused. The request came back 422 and the sheet could only show "Could not save. Try again."; removing the symptoms made the save succeed, which pointed people away from the cause. Reported in #1001.

The stored link has always allowed an unrated symptom, and the writer already maps a non-number to NULL, so only the input schema disagreed, on the create and the patch path alike. Neither schema had a test; there is one now, and it fails without the change.

Picking a symptom without tapping an intensity is how most of them are
logged. The sheet sends severity null for those, the schema took a number
or nothing at all, and the day log came back 422 with two issues for two
symptoms. All the sheet could say was "Could not save. Try again.", and
the cycle saved fine as soon as the symptoms were removed, which sent
people looking in the wrong place.

Nothing else disagreed: the link row has always stored an unrated symptom
as a plain presence, and the writer already maps a non-number to NULL.
Only the gate at the door refused it, on both the create and the patch
path, and no test touched either schema.

Refs #1001
@MBombeck
MBombeck merged commit c183d18 into main Sep 18, 2026
24 checks passed
@MBombeck
MBombeck deleted the fix/cycle-symptom-severity-null branch September 18, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant