ItemService.Update writes a deadline onto a sub-job #181
Labels
No labels
adr
android
area/calendar
area/design-system
area/i18n
area/jobs
area/offline
area/server
area/testing
bug
ci
duplicate
enhancement
help wanted
invalid
notifications
question
reliability
security
severity/low
severity/medium
tracking
web
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
eagraiclainne/app#181
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SetDeadlinerefuses a deadline on an item that has aparent_uid(internal/services/item/setdeadline.go:35-38,domain.ErrSubTaskDeadline), because a sub-job carries no date and would be invisible on every deadline surface.Updateapplies the field with no such check (internal/services/item/update.go:57-59), so the same state is reachable through the other door. Found while reviewing the jobs design handoff, which relies onUpdatefor per-field commits.The guard belongs on both doors. No client sends it today, so this is a latent hole rather than a live defect — but the new job flow commits fields one at a time through
Update, which brings the two doors much closer together.