You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On hold pending feedback for desired solution. Please read below.
Problem
#578 added validations to prevent multiple matches for the same pet as well as to ensure adopters can only apply for a pet once.
However, this flow is currently possible:
Match is created on pet with multiple applications on it (all adopter application statuses are set to :adoption_made)
Staff navigates to http://localhost:3000/alta/pets/8?active_tab=applications
Staff can still change status of pet from adoption_made to any other status.
If status is changed to :successful_applicant, the New Adoption button becomes active.
If they click "New Adoption", the new validations prevent a new match from being generated, and they receive a curt "Error" flash from the controller.
The data is protected in regards to the matches, but the adopter applications feel like they need more cleanup after a match is made.
Solutions
Disable the staff's ability to change the adopter application status after it is set to :adoption_made.
Remove these applications from the staff's view completely.
Soft delete adopter applications after the match is made.
Any others? Is this not worth considering?
I think this would also be related to whether or not it is possible for a match to be destroyed. I think that topic was mentioned in the last meeting, but I don't remember if a clear direction was chosen on that.
📷 Screenshots/Demos
Clip of the flow, where it is currently possible to update statuses of applications for adopted/matched pets.
matched-pet-updating-app-statuses.mov
The text was updated successfully, but these errors were encountered:
The way I handled this on the original app was to leave adopter applications in place and allowed staff to destroy a match. This is going to be very rare, but in some cases it doesn’t work out and the dog comes back. I thought leaving the adopter applications in place would allow staff to see who else was interested in the dog so they could reach out and let them know the dog was back. The adoption was destroyed while viewing the pet, not applications.
We could follow a similar flow.
disable editing application status on applications for a pet when a match is made (set unsuccessful application statuses to adoption made so an adopter can see that has happened)
Then on the pet show have an option to destroy a match. This would then bring the application status back to an editable state. We could set them to awaiting review to start the process again.
On hold pending feedback for desired solution. Please read below.
Problem
#578 added validations to prevent multiple matches for the same pet as well as to ensure adopters can only apply for a pet once.
However, this flow is currently possible:
:adoption_made
)http://localhost:3000/alta/pets/8?active_tab=applications
adoption_made
to any other status.:successful_applicant
, theNew Adoption
button becomes active.The data is protected in regards to the matches, but the adopter applications feel like they need more cleanup after a match is made.
Solutions
:adoption_made
.Any others? Is this not worth considering?
I think this would also be related to whether or not it is possible for a match to be destroyed. I think that topic was mentioned in the last meeting, but I don't remember if a clear direction was chosen on that.
📷 Screenshots/Demos
Clip of the flow, where it is currently possible to update statuses of applications for adopted/matched pets.
matched-pet-updating-app-statuses.mov
The text was updated successfully, but these errors were encountered: