controller
controller copied to clipboard
Look into if modeling data differently in the DB has benefits
Instead of JSONField consider doing a parent/child model to handle proc type information. (and other nested information). Autoscales model with Autoscale for web and worker records. This will only work in some cases. Might not map to health checks very well given it is a very nested structure.
There are two reasons why I want to see some exploration on this
- Do validations outside of the JSON Schema hack and rather utilise built-in validations from Django / DRF or at least function based validations
- If swagger (https://github.com/deis/controller/issues/811) happens (or any auto-generated schema format) then having data concretely described it going to help a lot
This may not be viable at all, or is only viable when dealing with very simple structures, at best when we know it needs to only map down to the level of process type
This issue was moved to teamhephy/controller#51