Skip to content

Conversation

@simon-20
Copy link
Contributor

@simon-20 simon-20 commented Jan 14, 2026

This PR adds to the PATCH dataset endpoint:

  • Refactors the PATCH method to use the new assert_precondition_met method
  • Adds string validation for the short_name field (previously any string was permitted)
  • Verifies that the new short_name (if it's been updated) is unique in the Registry

This will resolve #57

@simon-20 simon-20 requested a review from chrisarridge January 14, 2026 10:49
This contributes to resolving #57
When PATCHing the dataset, this fix will check that the
dataset short_name is unique, if the short_name has been
changed from its existing value. This completes the resolution
of #57
@simon-20 simon-20 force-pushed the sk-fix-dataset-validation-on-update branch from 5f4b046 to e5177fd Compare January 15, 2026 11:35
@simon-20 simon-20 changed the base branch from sk-paging-on-reporting-org to develop January 15, 2026 11:36
@simon-20 simon-20 merged commit 5ce9ace into develop Jan 15, 2026
5 checks passed
@simon-20 simon-20 deleted the sk-fix-dataset-validation-on-update branch January 15, 2026 11:38
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.

Validate dataset short name is alphanumeric (with underscores) and is unique on dataset update

3 participants