Backend bug fixes #314

Merged
RecentRunner merged 4 commits from bug-fixes into main 2026-04-15 16:08:23 -06:00
RecentRunner commented 2026-04-15 16:05:32 -06:00 (Migrated from github.com)

Summary

  • Fix admin 403 on sales, adoption sourceStoreId validation, refund total sign, sale item quantity validation
  • Fix missing auth on store write endpoints, appointment status case mismatch, contact controller error handling, PetRequest equals bug
  • Fix ServiceRequest duration validation, ChatController 500 on missing message, appointment status blank string
  • Decouple email sending from transactions using Spring event system

Test plan

  • Admin can create sales
  • Creating adoption without sourceStoreId returns 400
  • Refund amounts are negative
  • Store create/update/delete requires ADMIN role
  • Past appointments get status "Completed" not "COMPLETED"
  • Missing message returns 404 not 500
  • Emails are not sent when a transaction rolls back
## Summary - Fix admin 403 on sales, adoption sourceStoreId validation, refund total sign, sale item quantity validation - Fix missing auth on store write endpoints, appointment status case mismatch, contact controller error handling, PetRequest equals bug - Fix ServiceRequest duration validation, ChatController 500 on missing message, appointment status blank string - Decouple email sending from transactions using Spring event system ## Test plan - [ ] Admin can create sales - [ ] Creating adoption without sourceStoreId returns 400 - [ ] Refund amounts are negative - [ ] Store create/update/delete requires ADMIN role - [ ] Past appointments get status "Completed" not "COMPLETED" - [ ] Missing message returns 404 not 500 - [ ] Emails are not sent when a transaction rolls back
Sign in to join this conversation.