Skip to content

Conversation

@CollinBeczak
Copy link
Contributor

resolves: maproulette/maproulette3#2751

Implement uniqueness validation for challenge names in ChallengeDAL

  • Added checks to ensure that challenge names are unique within the same project, preventing duplicates for non-deleted challenges during creation and updates.
  • Updated SQL queries to include a condition for non-deleted challenges.
  • Introduced a new SQL migration to modify the unique constraint on challenge names to exclude deleted entries, allowing for name reuse after deletion.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 6, 2025

Copy link
Member

@mvexel mvexel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@CollinBeczak CollinBeczak merged commit da54838 into main Nov 7, 2025
9 checks passed
@CollinBeczak CollinBeczak deleted the remove-deleted-challenges-from-uniqueness-validation-for-challenge-names branch November 7, 2025 20:09
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.

Duplicate and ghost challenges

3 participants