Bernie-2016 / ground-control

Central volunteer and data portal
https://organize.berniesanders.com
GNU Affero General Public License v3.0
63 stars 25 forks source link

Automatically update the schema when the schema changes #33

Open saikat opened 9 years ago

saikat commented 9 years ago

Including rebuilding the schema.

saikat commented 9 years ago

This kind of works now, but the changes don't actualy seem to get picked up by Relay.

PhearZero commented 8 years ago

How about rocking a JSON schema store for the majority of the live data? We could use cloudant.com or host our own couchdb. It has a changes feed and already has react components. Serve the schema in a versioned json store which we could dynamically update the vast majority of schemas on the fly (even use ACE editor to modify ). Maybe only use knex for relational/ACL lookups? React-Json-Form This would also tie in well with an ACL system bound to an ORM. Objection supports JSON schema draft so validation can be both server and client side whateva you want

saikat commented 8 years ago

This is referring to the GraphQL schema, not the database schema. It's a dev thing -- basically when you change schema.js, the server should reload with the correct graphql schema. We don't have anything with live feeds in Ground Control currently.