PolicyEngine / policyengine-api

PolicyEngine's REST API for computing policy impacts.
GNU Affero General Public License v3.0
12 stars 28 forks source link

Refactor code involved in economy-wide simulations #1961

Closed anth-volk closed 1 week ago

anth-volk commented 2 weeks ago
  1. Unclear what role(s) certain functions play (e.g., ensure_economy_computed is never actually called)
  2. Need to better extricate what is an endpoint, what is a controller, what is a single-purpose function, and what is a list of desired outputs
  3. Need to increase flexibility of code; e.g., difficult to manually manage individual calculations, individual operations
  4. Need to treat the Redis queue and workers as less of an afterthought; difficult to modify how the queue and worker operations work without changing certain segments of the code pretty heavily
  5. Hard to work in comprehensive logging