Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reject server action #115

Open
cfisher36 opened this issue Apr 10, 2024 · 0 comments · May be fixed by #135
Open

Reject server action #115

cfisher36 opened this issue Apr 10, 2024 · 0 comments · May be fixed by #135
Assignees
Milestone

Comments

@cfisher36
Copy link
Collaborator

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
@cfisher36 cfisher36 added this to the current sprint milestone Apr 16, 2024
@jacksonmowry jacksonmowry linked a pull request May 1, 2024 that will close this issue
11 tasks
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 a pull request may close this issue.

2 participants