430 calculated project fields reac #435
My only concern so far is maintaining the messy SQL statements required to extract the relevant data from the partner tables. I tried to implement the automap function so that I could try to use SQLAlchemy syntax, but I didn't see a way to then actually use that to do the stuff I wanted to. Straight SQL seemed easier to implement.
At a minimum we could break each field update into a separate method - at the moment I have comments to designate sections of the _populate_calculated_project_fields code, but the could be methods that are listed out one by one just to break up teh code a bit.
@jkwening especially your review would be appreciated!
I have deployed this to the Code for DC RDS instance - we'll be switching over to that one for V2 launch, though for the moment I'm using both the EC2 and RDS instances as sandboxes for testing our changes so we don't break the live site with stuff like this. Contact me for the connect string to add to secrets.json to check it out.
- Adds 'most recent reac score' calculation - Adds ability to write to the Code for DC RDS account (need the relevant secret.json connect string to use)
@jkwening heads up I'm going to merge this in as-is, but would still appreciate a second set of eyes w/ a review at some point. There's a bunch of loosely related back end api changes (zonefacts, refactored api, this one) that I'm going to try to consolidate and then swap out our front-end API urls to use all this new stuff for a map-view V1.5 launch early next week.