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

EPIC: GraphQL query for orgs by category #76

Open
1 of 4 tasks
eemshi opened this issue Aug 24, 2018 · 0 comments
Open
1 of 4 tasks

EPIC: GraphQL query for orgs by category #76

eemshi opened this issue Aug 24, 2018 · 0 comments

Comments

@eemshi
Copy link
Member

eemshi commented Aug 24, 2018

Stories

Backend

  • Every 30 minutes, Redis gets data from Airtable and caches it. The data comes in 5 different tables that reference each other's records by ID

screen shot 2018-08-23 at 6 22 44 pm

  • Right after Redis gets the data from Airtable, call a function to merge the 5 tables into one complete map that contains the full details of each organization, and save it in an atom. A single item (organization) in the map looks something like this:
{:name "Organization Name"
 :status "Active"
 :categories [...]
 :services [...]
 :type "..."
 :tags [...]
 :purpose-mission "..."
 :target-population "..."
 :area-served "..."
 :website "..."
 :contact-name "..."
 :email-address "..."
 :phone-number "..."
 :address-street "..."
 :address-city "..."
 :address-state "..."
 :address-zip-code "..."
}
  • Write a GraphQL schema + resolver that takes a category parameter and returns organizations that have a category match

Frontend

  • When a category link is clicked, make a query to the backend GraphQL server that returns only the organizations that belong to that category, and store them in the frontend app-db under that category key
@eemshi eemshi added the to do label Aug 24, 2018
@eemshi eemshi changed the title EPIC: GraphQL queries for getting data EPIC: GraphQL query for orgs by category Aug 24, 2018
@eemshi eemshi removed the to do label Aug 24, 2018
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

No branches or pull requests

1 participant