erlef / infra-wg

ErlEF infrastructure working group
6 stars 1 forks source link

Add members relation / cache #38

Closed starbelly closed 3 years ago

starbelly commented 3 years ago

This relation is to serve as a cache for wildapricot contact data. This allows us to avoid doing an api request to wildapricot and running into their api request limits. It also affords us proper audit capabilities.

The table would be thus:

{id, data, deactivated, deactivated_at, inserted_at, updated_at}

id is the erlef_app_id that is currently generated and stored as an attr in wildapricot. Data is the member struct serialized as json and most likely encrypted. Note that data that is useful for queries and that is not PII will be added as regular columns on said table.

Webhook support is in place atm, but not currently utilized. In addition polling will be put in place to act as a fail safe in case webhooks failed (which they can).

Rules for MVP: