OpenOversight
OpenOversight copied to clipboard
Determine standard model scheme
What issue are you seeing?
We are currently split between two model paradigms and it makes things a bit confusing when updating and creating new models.
We have some models (specifically Incidents
) that are based off of the ModelView
object:
https://github.com/lucyparsons/OpenOversight/blob/6c08a17b042abd09a3a3ea252a1ec4ca48fecf74/OpenOversight/app/main/model_view.py#L14-L22
We then have some (Departments
, Officers
, etc.) that are dealt with through the use of routes:
https://github.com/lucyparsons/OpenOversight/blob/6c08a17b042abd09a3a3ea252a1ec4ca48fecf74/OpenOversight/app/main/views.py#L323-L361
Trying to work in both paradigms is a bit difficult and adds a lot of confusion to the general development process. If we could move to one or the other, that'd be ideal.
cc: @abandoned-prototype @AetherUnbound @sea-kelp @dismantl