Skip to content

Allow mixed-case museum codes while preventing case-insensitive duplicates#1058

Merged
karilint merged 1 commit intomainfrom
codex/fix-museum-code-validation-logic
Feb 16, 2026
Merged

Allow mixed-case museum codes while preventing case-insensitive duplicates#1058
karilint merged 1 commit intomainfrom
codex/fix-museum-code-validation-logic

Conversation

@karilint
Copy link
Contributor

Summary

  • remove the frontend museum validator restriction that required all-uppercase codes
  • add backend duplicate detection for museum codes using case-insensitive comparison
  • return a structured 409 conflict response when a case-insensitive duplicate code is submitted
  • add API test coverage for mixed-case/dashed code acceptance and case-only duplicate rejection

Details

Users can now create museum codes such as MNHN-Bol (still disallowing spaces). The backend blocks creating another code that differs only by letter case (e.g. MNHN-BOL after MNHN-Bol).

Validation

  • pre-commit checks ran automatically during commit (lint + tsc) and passed.

Codex Task

@karilint karilint merged commit 29e6e82 into main Feb 16, 2026
1 of 4 checks passed
@karilint karilint deleted the codex/fix-museum-code-validation-logic branch February 16, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant