-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: geocoding sj #681
fix: geocoding sj #681
Conversation
✅ Deploy Preview for housing-sanjoseca-gov ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
d8739ef
to
09f5807
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backend-swagger changes are missing. Please run generate:client
How can I test an address that should pass the check? I have tried addresses that are within the zone i selected but I always get No for |
c563ddb
to
3a1a997
Compare
@mcgarrye Yeah, the sorting is not great. It wasn't an ask but the random sort bugged me so I threw in a quick sort I'm seeing the export work correctly. One call out, if you are entering the address via the partner UI did you verify the map that popped up corresponded to the address you expected to see? |
3a1a997
to
5afe49a
Compare
api/prisma/seed-staging.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the test failure is around selecting a jurisdiction I'm wondering if this seed data is the cause
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what happened is the additional jurisdiction tied to the user makes the checkbox move just slightly down on the page so now it is not in the screen. The force
tag seems to have resolved it.
97a131e
to
0e756aa
Compare
0e756aa
to
f834449
Compare
@ludtkemorgan Is there an associated issue? Could you also fill out the PR template? |
@@ -167,4 +168,16 @@ export class ScirptRunnerController { | |||
req, | |||
); | |||
} | |||
|
|||
@Put('insertSanJoseMapLayers') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These historically have been accompanied by a test in core
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test added
@@ -0,0 +1,5925 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might be overthinking this but is there any performance downside to data this large, either in the codebase or in the map layer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is some concern for having this large of a json in the DB. Luckily right now we only have these limited number of them. Long term, I'd like to introduce PostGIS to our database so that the data can be compressed. https://postgis.net/. This will allow the data storage in geometry format and then we can read it out as geojson https://postgis.net/docs/manual-2.4/ST_AsGeoJSON.html.
However, that is a bigger task that will need to be done separately. Potentially next time we get more layers (which might be a while)
@emilyjablonski I don't think there is a ticket for this work as this PR was the last thing I did before my leave. But I can create an empty ticket to track it |
f834449
to
beed4d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Issue #4467
Description
Adds migrations for all of the new San Jose geocoding layers needed for preferences.
Also noticed the map layers are not sorted so added a UI sort to map layer drop down.
How Can This Be Tested/Reviewed?
With using a fresh stage seeding do the following:
If you want to see the maps you can enter them in geojson.io and enter the featureCollection into the side bar. You should be able to copy the whole json file from the code base file into that site.
Also the data was retrieved from here: Sl City Council Districts.zip
UCB Displacement Risk Model SJ Tracts.zip
Describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration.
Checklist:
yarn generate:client
and/or created a migration if I made backend changes that require themReviewer Notes:
Steps to review a PR:
On Merge:
If you have one commit and message, squash. If you need each message to be applied, rebase and merge.