Skip to content

Remediated file paths and movement#977

Merged
ajkiessl merged 19 commits intomainfrom
968-remed-file-paths
Jan 23, 2026
Merged

Remediated file paths and movement#977
ajkiessl merged 19 commits intomainfrom
968-remed-file-paths

Conversation

@ajkiessl
Copy link
Contributor

@ajkiessl ajkiessl commented Jan 20, 2026

closes #968

Makes RemediatedFinalSubmissionFile behave similarly to FinalSubmissionFile when saving, deleting, publishing and unpublishing. A major part of this is moving the file around depending on the published status and access level of the associated submission.

I think #960 will need merged to main and then merged here to get the last test to pass. Edit: I fixed the test so this is good to go

This depends on psu-libraries/etda_utilities#41 in etda_utilities, which was merged, published, and updated in this PR.

There were no unit tests for a lot of the public interface for SubmissionReleaseService. I had to add them to test my changes.

@ajkiessl ajkiessl marked this pull request as ready for review January 21, 2026 17:12
@ajkiessl ajkiessl changed the title WIP: Remediated file path Remediated file path Jan 21, 2026
@ajkiessl ajkiessl changed the title Remediated file path Remediated file paths and movement Jan 21, 2026
…ds function to delete RemediatedFinalSubmissionFile when object is destroyed
Copy link
Contributor

@jlandiseigsti jlandiseigsti left a comment

Choose a reason for hiding this comment

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

Appreciate the clarifying comments, and the extra effort to write submission_release_service specs to make up for a previous lack. Looks great!

end

def move_a_file(fid, original_file_location)
# file_class injection options: [FinalSubmissionFile, RemediatedFinalSubmissionFile]
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@ajkiessl ajkiessl merged commit efbf465 into main Jan 23, 2026
1 check passed
@ajkiessl ajkiessl deleted the 968-remed-file-paths branch January 23, 2026 17:37
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.

File Paths for RemediatedFinalSubmissionFiles

2 participants