Skip to content

LIMS-2037: Remove manual check for duplicate acronyms#1034

Merged
ndg63276 merged 2 commits intopre-release/2026-R2.2from
improvement/LIMS-2037/remove-manual-check-for-unique-acronym
Apr 7, 2026
Merged

LIMS-2037: Remove manual check for duplicate acronyms#1034
ndg63276 merged 2 commits intopre-release/2026-R2.2from
improvement/LIMS-2037/remove-manual-check-for-unique-acronym

Conversation

@ndg63276
Copy link
Copy Markdown
Collaborator

JIRA ticket: LIMS-2037

Summary:

Previously csv-file-validator wouldn't identify which rows had duplicate acronyms, so we had to manually check ourselves. Version 1.10.2 onwards has this functionality built in.

Changes:

  • Ensure csv-file-validator is at least 1.10.2 (we have been using 1.13.1 for years)
  • Remove manual check for duplicate acronyms, and variables used in that
  • Add unique constraint to acronym column, with suitable error message
  • Slightly simplify the check for extra commas and reforming the csv data blob

To test:

  • Go to an I15-1 proposal, eg cm37261
  • Go to Phases from the main menu, then click on a Phase
  • Click "Add new simple sample"
  • Choose "File upload for multiple samples"
  • Select this file duplicate_acronym.csv
  • Check an error appears about a duplicate acronym on row 3
  • Edit the file to have a unique acronym, refresh the page and re-select the file, check no errors occur, click "Add Sample" and check it uploads as expected

@ndg63276 ndg63276 changed the base branch from master to pre-release/2026-R2.2 April 7, 2026 10:14
@ndg63276 ndg63276 merged commit ca18955 into pre-release/2026-R2.2 Apr 7, 2026
2 checks passed
@ndg63276 ndg63276 deleted the improvement/LIMS-2037/remove-manual-check-for-unique-acronym branch April 7, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants