Closed zmon closed 5 years ago
Abby Judah w Legal Aid is going to try to get 2018 data from the County.
A few files needed to change. I believe I've got this working, but I'm spending some time validating the UI results against the response from the Address API. Based on the comments I saw for the legally abandoned calculation, where all years of tax delinquency beyond three are weighted equally, I moved the time window forward, effectively dropping some of the earlier years.
Will push and deploy after more testing.
The markers displayed on the map appear to be consistent with the data returned from the address api based on multiple spot checks. I used Postman and the app's queries to validate this, but the handy Address API query UI also allows you to enter addresses and check to see the delinquency (and other) data returned for those addresses: http://address-api.codeforkc.org/.
For purposes of the legally abandoned calculation, it looks like the code was set to walk back through all years of tax delinquency history, even though only the most recent 3 years were weighted in the scoring process. So, while additional years of delinquency won't affect the score, they will be displayed in the popup. I left that as is.
For purposes of the tax deliquency filter, a window of delinquency years was applied. I moved it forward and expanded it to 5 years (2014-2018). As a side note, I was shocked at the number of delinquencies, which produced a map bursting with markers. As an enhancement down the road, we might want to consider using some techniques to manage the clutter and also differentiate between properties with more delinquencies by shape, color or size.
I will push and deploy my changes shortly.
Code deployed. Closing issue. Feel free to reopen if you encounter problems.
I think the change needs to be in
spec/services/neighborhood_services/legally_abandoned_calculation/tax_delinquent_spec.rb
.