Skip to content

fix: support partial note updates and validate labels - #169

Merged
snehmatic merged 2 commits into
snehmatic:mainfrom
huyua9:codex/note-partial-update
Sep 3, 2026
Merged

fix: support partial note updates and validate labels#169
snehmatic merged 2 commits into
snehmatic:mainfrom
huyua9:codex/note-partial-update

Conversation

@huyua9

@huyua9 huyua9 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a nil-as-omitted NoteService partial update API while keeping UpdateNote callers compatible
  • validate the existing 200-character labels contract on create and update
  • add regression tests for omitted fields and overlong labels

Validation

  • go test ./...
  • go vet ./internal/core/note/...
  • git diff --check

The Notes service and model were introduced in PR #30; this patch keeps the existing full-update API while adding the safer contract.

@snehmatic

Copy link
Copy Markdown
Owner

please include your intent of change, and a related issue or bug

@snehmatic
snehmatic merged commit 385562f into snehmatic:main Sep 3, 2026
3 checks passed
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.

2 participants