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

feat: back-fill submission unique identifier - TASK 1459 #5434

Merged
merged 4 commits into from
Jan 27, 2025

Conversation

noliveleger
Copy link
Contributor

@noliveleger noliveleger commented Jan 21, 2025

📣 Summary

Added a long-running migration to backfill the root_uuid field for old submissions.

📖 Description

Submissions now use a field called root_uuid, which serves as a unique identifier per project. For older submissions, this field is empty. This PR introduces a long-running migration to backfill the root_uuid field with the current uuid for existing submissions.

To ensure uniqueness, the migration includes logic to detect and resolve conflicts. If a uuid is not unique within a project, the clean_duplicated_submissions management command is invoked to address the duplicates before assigning the root_uuid.

@noliveleger noliveleger changed the base branch from main to release/2.025.02 January 21, 2025 13:53
@noliveleger noliveleger self-assigned this Jan 21, 2025
@noliveleger noliveleger changed the title feat: back-fill submission unique identifier feat: back-fill submission unique identifier - TASK 1459 Jan 21, 2025
Copy link

@noliveleger noliveleger marked this pull request as ready for review January 23, 2025 10:42
@noliveleger noliveleger requested a review from jnm as a code owner January 23, 2025 10:42
@noliveleger noliveleger removed the request for review from jnm January 23, 2025 16:28
Copy link
Contributor

@rajpatel24 rajpatel24 left a comment

Choose a reason for hiding this comment

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

LGTM

@noliveleger noliveleger merged commit 1e23d21 into release/2.025.02 Jan 27, 2025
4 checks passed
@noliveleger noliveleger deleted the task-1459-back-fill-rootuuid branch January 27, 2025 11:02
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.

2 participants