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
User Story: As a developer, I would like to have access to a server action that can reject a form submission so that participating agencies can be alerted to provide more accurate information.
Description
For this story, we would like to create a server action that rejects form submissions unlike the current approveAgency() server action. This server action should mark the current submission as "Rejected" and restore the Agency's current status to "Expired". In the future, we will add support for automated emails so that agencies can be alerted that their submission has been rejected and a new submission is needed.
Technical Considerations
It might make more sense to attach the approvalStatus field to the AgencyInfoForm model instead of Agency
You will need to update the logic for the currentStatus virtual field to recognize rejections instead of purely relying on updatedAt
The text was updated successfully, but these errors were encountered:
User Story: As a developer, I would like to have access to a server action that can reject a form submission so that participating agencies can be alerted to provide more accurate information.
Description
For this story, we would like to create a server action that rejects form submissions unlike the current
approveAgency()
server action. This server action should mark the current submission as "Rejected" and restore the Agency's current status to "Expired". In the future, we will add support for automated emails so that agencies can be alerted that their submission has been rejected and a new submission is needed.Technical Considerations
approvalStatus
field to theAgencyInfoForm
model instead ofAgency
currentStatus
virtual field to recognize rejections instead of purely relying onupdatedAt
The text was updated successfully, but these errors were encountered: