Overview
| Artifact ID: | 76554686c3922d5150be78500300a69281938eaca427404c1306b954f6758f60 |
|---|---|
| Ticket: | dc748de1f05915ad02c37fcff6495ce3f359747d
A partial repo.update wipes the other fields and can silently turn off sync (G-68) |
| User & Date: | zeitgeist on 2026-09-17 13:19:12 |
Changes
- icomment:
DECIDED by dmestas, 2026-09-17: FIX IT — an omitted field means unchanged. This was parked as a public-API-semantics call rather than a bug, so the decision is the thing that unblocks it. 'Fields are applied whole' stops being true: a body naming only description leaves chat, private and mirrorable as they were. Shape, from reading the code: repoUpdateIn's Private, Chat and Mirrorable are plain bools, so an omitted field arrives as false. quarry already has the tri-state idiom for exactly this — a pointer where nil means 'not mentioned' — used in the teams ops. The string fields need it too: jva observed description left empty by a partial call, and an empty description is a legitimate value, so absent and empty have to be different answers there as well. One implementation note so nobody is surprised: RepoRegistry.Update takes the whole record and the interface has no getter, so this wants read-modify-write against the existing Deps hooks (Descriptions, Private, Mirrorable, Visibility, and the repo meta for homepage/topics/chat) rather than sending a partial record and hoping the far side merges. Same root cause as 2b8b96ae, which is the same fix in the prefs matrix and is in progress.
- mimetype: "text/x-markdown"
- priority changed to: "High"