server responsible for the interface between THP and Indivisible
- GET events from ActionKit API => firebase database
- staging backend pulls all events with
status === "new" | "active" | "staging"and saves them in https://indivisible-testing-data.firebaseio.com Note:NODE_ENV=production, but the env variables set in Heroku are for the testing database. - production backend pulls events with
status === "new" | "active"and saves them in https://indivisible-data.firebaseio.com
-
Convert town halls from THP firebase databse into ActionKit events and POST to API (will be included in pull from API) [Docs](https://docs.actionkit.com/docs/manual/api/rest/examples/addevent.html
-
GET all active groups from Prosperworks and post them to firebase api, and Mapbox api
- It doesn't have an issue focus
- custom field
event_issue_focus
- It is a recurring event and is more than 3 months in the future
- Recurring events have custom field
is_recurring==='Yes'
- It is in the past
- The host is not confirmed
- field
host_is_confirmedmust be true to be shown on map
- Status is not either "active" or "new" (or "staging" to only show on the test map)
- The event s private
- field
is_privatemust be false to be shown on map
- The postal code is either 20301 or 000840
- The address is 'This event is virtual, Washington, DC 20301'
- Is a virtual event:
- the event has a custom field
is_virtual_event. This was used for events that shouldn't show up on the map (pre COVID). This is different fromevent_virtual_status===digitalwhich will show up on the map.
- It's not included in the campaigns we pull from: 9, 15, 21, 24, 27, 28, 38