-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add "Autocomplete from ..." button to Device, Sector, Node and Building #396
Conversation
0a09ec7
to
d0563ab
Compare
9cb150a
to
7419d1d
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #396 +/- ##
==========================================
+ Coverage 94.76% 94.93% +0.17%
==========================================
Files 101 103 +2
Lines 5025 5155 +130
==========================================
+ Hits 4762 4894 +132
+ Misses 263 261 -2 ☔ View full report in Codecov by Sentry. |
7419d1d
to
d06ed17
Compare
# Conflicts: # src/meshapi/admin/building.py # src/meshapi/views/geography.py
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.
Thank you!
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.
A little odd that we're integration testing their API, but pop off.
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.
We're not integration testing their API. This is a mocked response where our testing framework pretends to be their API. It actually allows the opposite, for our tests to be fully independent of the city's API
src/meshapi/views/geography.py
Outdated
except ValueError: | ||
return Response( | ||
{ | ||
"detail": "Non-NYC registrations are not supported at this time. Check back later, " |
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.
Small Nit: Maybe we shouldn't say "check back later." I know we've been doing that for like a year, but it's probably more productive to just say "contact support."
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 can change this, but really this should be handled in the frontend and nobody should see this message
Adds a button to the following admin pages:
When clicked, it automatically populates the geospatial coordinates (and DOB BIN where applicable) from the appropriate source. For Buildings, it uses the entered address (via a lookup to the city APIs). For Nodes, it uses the associated building (selecting the first one arbitrarily if there is more than one). For devices and sectors, it uses the associated node.
Example:
Screen.Recording.2024-07-06.at.14.58.48.mov
Closes #307