Skip to content

Improve error handling and coordinate validation in Challenge and VirtualChallenge DALs#1218

Merged
CollinBeczak merged 1 commit intomainfrom
Improve-error-handling-and-coordinate-validation-in-Challenge-and-VirtualChallenge-DALs
Mar 19, 2026
Merged

Improve error handling and coordinate validation in Challenge and VirtualChallenge DALs#1218
CollinBeczak merged 1 commit intomainfrom
Improve-error-handling-and-coordinate-validation-in-Challenge-and-VirtualChallenge-DALs

Conversation

@CollinBeczak
Copy link
Contributor

  • Added checks to ensure coordinates have at least two elements before creating Point objects, defaulting to (0.0, 0.0) if not.
  • Simplified validation logic for search parameters in VirtualChallengeDAL, ensuring non-empty checks for location and bounding geometries.
  • Enhanced error logging for task population failures in VirtualChallengeDAL, providing clearer feedback on exceptions.

Should resolve: maproulette/maproulette3#2804 (comment)

…tualChallenge DALs

- Added checks to ensure coordinates have at least two elements before creating Point objects, defaulting to (0.0, 0.0) if not.
- Simplified validation logic for search parameters in VirtualChallengeDAL, ensuring non-empty checks for location and bounding geometries.
- Enhanced error logging for task population failures in VirtualChallengeDAL, providing clearer feedback on exceptions.
@sonarqubecloud
Copy link

@CollinBeczak CollinBeczak merged commit e21fd60 into main Mar 19, 2026
9 checks passed
@CollinBeczak CollinBeczak deleted the Improve-error-handling-and-coordinate-validation-in-Challenge-and-VirtualChallenge-DALs branch March 19, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to create virtual challenge

1 participant