lucabarattini / Mountain-Shleters-Project

Final Repo of the Mountain Shelters Project
0 stars 0 forks source link

🌌 The Big Hole - Hot Fix | URGENT - Max priority #21

Closed manuelokoye closed 9 months ago

manuelokoye commented 9 months ago

While doing some edge case testing my teammates, Luca and Mirella discovered a big bug in our web app. Luca assigned me the task of implementing an hotfix for it.

After some brainstorming I came up with the following idea for the hotfix and I discussed it with Luca. Basically, we wouldn't allow any user to enter a location outside of Piemonte region in the field-form. This was done using, once again, the Google Maps API and a newly defined function --> def is_location_in_piemonte(lat, LNG):

Expcted result: Bring a fast solution to limit the bug in production.

manuelokoye commented 9 months ago

Hot-fix implemented check the commit to see it better: 260f1315e2da45ee8bba5be9f5fbd00d69d34073