fablabbcn/fablabs.io

Lab location field broken in Production

Closed this issue · 2 comments

s-ol commented

Describe the bug
When adding or editing a Lab, in the "Lab Location" section the field in "Step 1" does not work.
Typing anything into it does not cause a map to appear or the "Step 2" fields to be populated as the help text suggests.

This causes the long/lat fields of labs to be NULL, resulting in broken maps in the lab list as well.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new lab or click "Edit Lab Details" on an existing Lab
  2. Scroll down to 'Lab Location'
  3. Type (the beginning of) an address into the field 'Step 1'
  4. Nothing happens

Expected behavior
A map should appear and/or the other fields should be populated.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows, Linux
  • Browser: Chromium 100.0.4896.50, Firefox 98.0.2
  • Adblockers disabled

Additional context
There is no helpful errors in the JS console. To see an affected lab without coordinates, take a look at https://fablabs.io/labs/unitrento

Hi everybody

I confirm, I realized that our fablab is not present on the map, and trying to "Edit Lab Details" the map is not displayed and no error is returned in the console.
https://fablabs.io/labs/fablabagrigento

Had some availability, and decided to investigate this issue as it seems to be widespread.

I resolved the problem, which brings back the autocomplete/map-marker functionality to the lab form. When you modify your lab, you can use “Step 1” to change the marker's location. The lat/lng values are also now visible on the form.

Next will create a script loop through all labs adding lat/lng values to all labs missing them that have address info set.