Skip to content

Fix: remove preferred_server from technician UPDATE query#9

Merged
ChesnoTech merged 1 commit intodevelopfrom
fix/technician-update-preferred-server
Mar 26, 2026
Merged

Fix: remove preferred_server from technician UPDATE query#9
ChesnoTech merged 1 commit intodevelopfrom
fix/technician-update-preferred-server

Conversation

@ChesnoTech
Copy link
Copy Markdown
Owner

Summary

  • handle_update_tech tried to UPDATE non-existent preferred_server column → HTTP 500
  • Also only accepted tech_id field, now also accepts id as alias
  • Found during interactive CRUD testing

Branch Type

  • fix/ — Bug fix (→ develop)

Testing

  • Technician update now works with {"id":3,"full_name":"...", ...}
  • All other tech operations (toggle, delete) verified working

- handle_update_tech tried to UPDATE preferred_server column (doesn't exist)
- Also accept 'id' as alias for 'tech_id' in update payload
- Removes preferred_server validation that blocked updates

Found during interactive CRUD testing on fresh Docker stack.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ChesnoTech ChesnoTech merged commit 5fb5630 into develop Mar 26, 2026
4 checks passed
@ChesnoTech ChesnoTech deleted the fix/technician-update-preferred-server branch March 26, 2026 09:06
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