π Problem
Currently, visit descriptions are entered only when creating the visit.
There is no way for a veterinarian to add notes after the visit.
β
Expected Behavior
- Allow veterinarians to edit the description of existing visits.
- Optionally, only allow editing after the visit date.
- Provide a separate edit form for visits.
π Affected Areas
pets/createOrUpdateVisitForm.html: add optional Edit button per visit.
VisitController.java: add
@GetMapping("/owners/{ownerId}/pets/{petId}/visits/{visitId}/edit")
@PostMapping("/owners/{ownerId}/pets/{petId}/visits/{visitId}/edit")
Persist updated description in the database.
π§ͺ Testing
- Edit description β value updated correctly.
- Validation rules applied (if restricting future visits).
π Problem
Currently, visit descriptions are entered only when creating the visit.
There is no way for a veterinarian to add notes after the visit.
β Expected Behavior
π Affected Areas
pets/createOrUpdateVisitForm.html: add optional Edit button per visit.VisitController.java: addPersist updated description in the database.
π§ͺ Testing