Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

444 sequence id generation #1051

Merged
merged 1 commit into from
Feb 22, 2024
Merged

444 sequence id generation #1051

merged 1 commit into from
Feb 22, 2024

Conversation

TobiasKampmann
Copy link
Contributor

@TobiasKampmann TobiasKampmann commented Feb 20, 2024

resolves #444

preview URL: https://444-sequence-id-generatio.loculus.org/

Summary

accessions will be generated from a unique sequence managed by postgres where the number is converted to a Base34 (numbers and capitalized chars omitting 'O' and 'I') string and padded with 0 to have at least 6 digits. A configurable prefix will be prepended and a checksum will be calculated and appended.

Screenshot

PR Checklist

  • All necessary documentation has been adapted.
  • The implemented feature is covered by an appropriate test.

@TobiasKampmann TobiasKampmann force-pushed the 444-sequence-id-generation branch 2 times, most recently from 02338da to da67d91 Compare February 20, 2024 15:54
@TobiasKampmann TobiasKampmann force-pushed the 444-sequence-id-generation branch from da67d91 to ec3746b Compare February 20, 2024 16:08
@theosanderson theosanderson added the preview Triggers a deployment to argocd label Feb 20, 2024
@TobiasKampmann TobiasKampmann force-pushed the 444-sequence-id-generation branch 4 times, most recently from 654cf93 to c0a899f Compare February 21, 2024 13:44
@TobiasKampmann TobiasKampmann changed the base branch from main to 1030-do-bulk-action-for-current-submissions February 21, 2024 13:45
@TobiasKampmann TobiasKampmann marked this pull request as ready for review February 21, 2024 13:48
@TobiasKampmann TobiasKampmann force-pushed the 1030-do-bulk-action-for-current-submissions branch from 462d7f3 to d6c8e22 Compare February 21, 2024 14:03
@TobiasKampmann TobiasKampmann force-pushed the 444-sequence-id-generation branch from c0a899f to 1c305f3 Compare February 21, 2024 14:04
Base automatically changed from 1030-do-bulk-action-for-current-submissions to main February 21, 2024 15:43
@TobiasKampmann TobiasKampmann force-pushed the 444-sequence-id-generation branch from 3816e42 to 770e76c Compare February 21, 2024 15:57
@TobiasKampmann TobiasKampmann changed the base branch from main to prefix_config February 21, 2024 16:22
@TobiasKampmann TobiasKampmann force-pushed the 444-sequence-id-generation branch from 2777c32 to 6cc99ca Compare February 21, 2024 16:28
Base automatically changed from prefix_config to main February 21, 2024 17:15
@TobiasKampmann TobiasKampmann force-pushed the 444-sequence-id-generation branch 3 times, most recently from 84ed763 to 116ce78 Compare February 22, 2024 10:07
Copy link
Contributor

@fengelniederhammer fengelniederhammer left a comment

Choose a reason for hiding this comment

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

LGTM (other than some minor issues and the logic duplication in TS code ;) )

@TobiasKampmann
Copy link
Contributor Author

Follow up:
#1073

@TobiasKampmann TobiasKampmann force-pushed the 444-sequence-id-generation branch from 116ce78 to e6be84c Compare February 22, 2024 12:47
@TobiasKampmann TobiasKampmann force-pushed the 444-sequence-id-generation branch 3 times, most recently from 7489a9f to 6799111 Compare February 22, 2024 14:28
@TobiasKampmann TobiasKampmann force-pushed the 444-sequence-id-generation branch from 6799111 to 72da57f Compare February 22, 2024 14:34
@TobiasKampmann TobiasKampmann merged commit f188c11 into main Feb 22, 2024
12 checks passed
@TobiasKampmann TobiasKampmann deleted the 444-sequence-id-generation branch February 22, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Triggers a deployment to argocd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sequence ID generation
3 participants