Skip to content

Add populations_served to organisation#980

Open
diti0-dot wants to merge 4 commits intorubyforgood:mainfrom
diti0-dot:populations-page
Open

Add populations_served to organisation#980
diti0-dot wants to merge 4 commits intorubyforgood:mainfrom
diti0-dot:populations-page

Conversation

@diti0-dot
Copy link
Contributor

What is the goal of this PR and why is this important?

Add a populations_served endpoint for organizations that shows which services (sectors) the organization covers and how many people have each as their primary service area.

How did you approach the change?

Grab the people associated with the organization, collect their sectors, count how many have each sector as their primary, and sort the list.

Anything else to add?

Nothing else to add

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 this pull request may close these issues.

New endpoint for organizations/:id/populations_served

1 participant