GenerateNU / sac

A better way to drive student engagement
GNU Affero General Public License v3.0
13 stars 0 forks source link

investigate: orgs #702

Open DOOduneye opened 2 months ago

DOOduneye commented 2 months ago

This is more of a design question, how to fetch organizations (clubs with children clubs)

  1. Relegate to the frontend to parse all the clubs with orgs
  2. Create an endpoint under clubs which gets all the clubs with children clubs /api/v1/clubs/orgs or /api/v1/clubs/orgs
  3. Create an endpoint with an org bool in clubs to optimize the query /api/v1/clubs/orgs or /api/v1/clubs/orgs
DOOduneye commented 2 months ago

Extending on it how to add clubs under an organization. This may just be an admin dashboard thing though

alderwhiteford commented 2 months ago

good question, don't think we need it in the pilot. For future reference, though, I like the idea of using the boolean param.

For how a club actually gets added as a child, thats a whole other flow that would likely require some sort of confirmation logic:

Would need some sort of "pending approval" object in our database that is tied to some executable action - this would make it general purpose (e.g. could also be used to approve people as members of an organization)