rubyforgood / pet-rescue

Pet Rescue is an application making it easy to link adopters/fosters with pets. We work with grassroots pet rescue organizations to understand how we can make the most impact.
MIT License
61 stars 105 forks source link

Deactivate adopters/fosterers #773

Open mononoken opened 3 months ago

mononoken commented 3 months ago

Description

We have the functionality to deactivate staff accounts. Let's let staff admins also be able to deactivate adopters and fosterers.

This will require you to add a new deactivated_at column to the AdopterFosterAccounts table. You can look at how StaffAccounts was setup for a reference.

You will also need to create #deactivate and #activate actions in Organizations::Staff::FosterersController. See app/controllers/organizations/staff/staff_controller.rb for ref.

Ultimately, we want this column to be shown on the Fosterers index page.

image

NOTE: This is just adding deactivated_at and modifying it. We will add the functionality of utilizing deactivation in a separate issue using the policies.

Acceptance Criteria

jaxonavena commented 3 months ago

Dibs!

jaxonavena commented 3 months ago

The description talks about adding this functionality for both adopters and fosterers, but the implementation suggestion mainly refers to only fosterers. Is this because we actually only want to add the deactivate functionality for fosterers, or am I meant to replicate those steps for adopters as well? @mononoken

Update: This has been answered on the PR

github-actions[bot] commented 2 months ago

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.

github-actions[bot] commented 2 months ago

Automatically unassigned after 7 days of inactivity.

jmilljr24 commented 2 months ago

On hold until account model changes. Reference discussion in #878