maproulette / maproulette3

MapRoulette, the micro-tasking tool for OpenStreetMap
https://maproulette.org
MIT License
128 stars 35 forks source link

fix infinite loop for users without a widget layout #2427

Closed CollinBeczak closed 2 months ago

CollinBeczak commented 2 months ago

This fix addresses an infinite loop that occurs when the user doesn't have a configured widget layout. The solution creates a default widget layout if no other layouts are found and uses it to handle this one-time edge case for users without an existing configuration.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 23.38%. Comparing base (fd86d0c) to head (6842ef9). Report is 4 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2427 +/- ## ========================================== - Coverage 23.38% 23.38% -0.01% ========================================== Files 649 649 Lines 22510 22511 +1 Branches 6913 6900 -13 ========================================== Hits 5264 5264 - Misses 14423 14424 +1 Partials 2823 2823 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.