Skip to content

fix: store blank optional customer, device and ticket fields as NULL - #76

Draft
sonnymay wants to merge 1 commit into
mainfrom
claude/vibrant-meitner-ipc6yd
Draft

sonnymay wants to merge 1 commit into
mainfrom
claude/vibrant-meitner-ipc6yd

Conversation

@sonnymay

Copy link
Copy Markdown
Owner

Summary

The UI submits unfilled optional inputs as "". Only the id columns (customer_id, device_id, assigned_user_id) were normalised to NULL, so a blank customer email/phone/company, device model/product type, or ticket description was persisted as an empty string. The backend now converts these to NULL on POST/PUT /customers, POST/PUT /devices and POST/PUT /tickets, using named tuples of optional fields next to clean_empty_strings.

No open PR (#17–#75) or issue covers this. Related but distinct: #53 and #50 reject blank required fields, and #47 validates status/priority.

Testing

  • Added test_blank_optional_fields_are_stored_as_null.
  • pytest: 44 passed. ruff check and ruff format --check are clean.

Generated by Claude Code

The UI submits unfilled optional inputs as empty strings. Only the id
columns were normalised, so blank email/phone/company, device
model/product_type and ticket description were persisted as '' instead
of NULL.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0171zWzmL77J4orNAqemw1KG
@vercel

vercel Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
supportops Ready Ready Preview Nov 15, 2026 3:03pm UTC

This branch was successfully deployed

1 active deployment
Preview — 5d54ea3f Deployed Nov 15, 2026 by vercel[bot]
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