sfcpc / housing-dashboard

4 stars 0 forks source link

Group PTS records #114

Closed ilakyapal closed 4 years ago

ilakyapal commented 4 years ago

Adds support for grouping pts records by their mapblklot, filed_date, and proposed_use. Also handles linking the pts records in a group to the parent ppts records of the group (parent ppts records of the group are defined to be the parent ppts records of the first pts record in the group that even has parent ppts records associated with it).

As part of this I added Mapblklot as a computed field to the PTS source -- and had to use a singleton object to do so as discussed offline. @sbuss I'm not super familiar with python best practices for singletons, so I went with the easiest impl I could think of; the impl feels a bit awkward, so looking for feedback to improve it.