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

Fix failed deposit retry submission status bug #68

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

rpoet-jh
Copy link
Contributor

@rpoet-jh rpoet-jh commented Oct 23, 2023

There was a bug in the failed deposit retry code where if the deposit succeeded, when the RepositoryCopy object was created, the associated Publication of the Submission was null, so the associated Publication of the RepositoryCopy was null. This causes the Submission status update logic to fall down because it requires that the submission Deposit.RepositoryCopy have a matching Publication in order to update submission status.

PR with script to fix null repo_copy.publication_id in stage database is here: eclipse-pass/pass-core#69

The PR in pass-core should be merged after this PR is merged and deployed to stage.

On deposit failed retry so repoCopy has
publication if retry succeeds and repoCopy is
created.
@rpoet-jh rpoet-jh requested a review from markpatton October 23, 2023 21:19
@rpoet-jh rpoet-jh self-assigned this Oct 23, 2023
Copy link
Contributor

@markpatton markpatton left a comment

Choose a reason for hiding this comment

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

Looks good. Tests pass for me locally.

@rpoet-jh rpoet-jh merged commit 051e882 into main Oct 24, 2023
2 checks passed
@markpatton markpatton deleted the russ-793-failed-deposit-retry-fix branch December 13, 2023 13:41
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.

Submission list page and submission detail page showing different statuses
2 participants