← Dev log
Jobsieve·data integrity·2026-11-24

A dashboard that erased what it didn't show

Saving the profile from the 2.0.0 dashboard wiped the languages, sites and sources fields — the ones the form did not display.

It could not have worked

A race, an ordering, one column holding two things. The shape ruled it out before the code ran.

The 2.0.0 dashboard had a profile form. It sent the fields it showed. The API's update endpoint was a PUT that replaced the whole profile with what it received. Put those together and every save silently erased the fields the form didn't display: languages, sites, sources.

Nothing failed. The save succeeded, the form showed exactly what you'd typed, and the missing fields only showed up later as searches that behaved differently.

The immediate fix was on the client: send the current profile merged with the form's changes, with a test that saves a partial form and checks the other fields survive. The lesson is about the API, though: a full-replace update endpoint invites data loss from any client that knows fewer fields than the server does — and every new client starts out knowing fewer.

It shipped in 2.0.0 alongside a second bug — literal \n sequences in generated drafts, which tests missed because they checked substrings, never lines. Both were fixed in 2.0.1 the same afternoon. A day of using the new build myself would have caught both before release.