rubyforgood / casa

Volunteer management system for nonprofit CASA, which serves foster youth in counties across America.
https://casavolunteertracking.org/
MIT License
314 stars 478 forks source link

Add "Enable Other Duties" as Organization Feature flag to Edit Organization #5771

Closed bcastillo32 closed 5 months ago

bcastillo32 commented 5 months ago

What type(s) of user does this feature affect?

Description

Because not all orgs will use "Other Duties" we would like to add this as a Organization Feature. The default should be "On" (check marked). Can be titled "Enable Other Duties"

image

How to access the QA site

Login Details:
Link to QA site

Login Emails:

password for all users: 12345678

Questions? Join Slack!

We highly recommend that you join us in slack #casa channel to ask questions quickly. And discord for office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues.

iamronakgupta commented 5 months ago

Can I take this?

My approach will incluce following steps:

  1. Creating a migration for casa_org table to add other_duties_enabled as new columns.
  2. Change view of edit layout to add Enable Other Duties checkbox.
  3. Add authorization in OtherDuty Policy to check for other_duties_enabled field from casa_org.
  4. Putting constraint for Other Duties in Sidebar.
elasticspoon commented 5 months ago

@iamronakgupta sounds like a reasonable approach. go for it

github-actions[bot] commented 5 months ago

This issue has been inactive for 243 hours (10.13 days) and will be unassigned after 117 more hours (4.88 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time