You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to source data from the needs assessment at build time in order to display it on the region pages. See this issue which documents the Needs Assessment Storage API for retrieving anonymized survey data. Shoutout to @coderbyheart for the implementation! 🥳
Auto-sum needs assessment data across regions or quarters?
Expose needs assessment data nicely via Gatsby's GraphQL API.
Control when new needs assessment data is ingested (so we don't use the next round of needs assessment data too early).
Note: this is a reach goal and will likely be moved to another issue as it may involve using the CMS (Forestry) to whitelist quarters.
Checklist
Source the data using gatsby's sourceNodes hook.
Use gatsby's createNode function to create NeedsAssessmentSummary nodes.
Use gatsby's createResolvers hook to link NeedsAssessmentSummary nodes to their corresponding region. Should be resolvable via DANeed.place.region and DANeed.place.subregion. Every place has a region, most places have subregions but on occasion subregion might be set to null if the data applies to an entire region ("Lebanon") or the "Other" region was selected.
Write end-to-end tests to ensure that data is being ingested & exposed through Gatsby's graphql endpoint.
We need to source data from the needs assessment at build time in order to display it on the region pages. See this issue which documents the Needs Assessment Storage API for retrieving anonymized survey data. Shoutout to @coderbyheart for the implementation! 🥳
We'll be following this documentation to guide the implementation: https://www.gatsbyjs.com/docs/conceptual/data-fetching/#fetching-data-at-build-time
Goals
Checklist
sourceNodes
hook.createNode
function to create NeedsAssessmentSummary nodes.createResolvers
hook to link NeedsAssessmentSummary nodes to their corresponding region. Should be resolvable viaDANeed.place.region
andDANeed.place.subregion
. Every place has a region, most places have subregions but on occasion subregion might be set tonull
if the data applies to an entire region ("Lebanon") or the "Other" region was selected.Next Up
The text was updated successfully, but these errors were encountered: