Ukraine-Relief-Efforts / ukraine

A website to amplify fundraisers by grassroots volunteer groups that do not have access to support from larger organizations
https://helpuanow.org
4 stars 19 forks source link

Move from Google Sheets to Contentful's GraphQL API #156

Open shenanigansd opened 2 years ago

shenanigansd commented 2 years ago

Data persistence is being moved to Contentful. We will need to update the app to use the new API.

The GraphQL endpoint is: https://graphql.contentful.com/content/v1/spaces/{space_id} The space's ID will be in the CONTENTFUL_SPACE_ID environment variable.

There are two API bearer tokens:

The data model is under review and subject to change until #155 is completed.

geositta commented 2 years ago

https://github.com/Ukraine-Relief-Efforts/ukraine/pull/180 Above PR added graphql endpoint, queries and an example call using a query in index.js

roseja commented 2 years ago

Currently it looks like we have a single "Model" of "Fundraiser". Is this correct?

How are we planning on filtering and organizing the fundraisers on the website? The reason I ask, is because I don't see data on the model that makes this easy to do on the frontend. It looks like we should be filtering on smallOrganization wether it is True or False. Is that correct?

I chatted with @shenanigansd and sounds like we might be hitting a limit for users there. I'm not sure if there is a way I can get access or if we can schedule a time to do a screen share with someone that does have access.

Do we want to split this issue up a bit? I'm having a difficult time telling where to start and not sure which data is currently populated and ready to be used.