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

Pivotal ID # 184772659: Delete only common files when required on re submission #699

Conversation

Juan-EBI
Copy link
Contributor

val newFiles = newFilesMap(new)
logger.info { "${current.accNo} ${current.owner} Started cleaning common submission files" }
serializationService.fileSequence(current)
.filter { newFiles.containsKey(it.filePath) && newFiles[it.filePath] != it.md5 }
.filter { shouldDelete(newFiles, it) }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

previous mechanism delete file regardless if the storage type is the same or not resulting in deletion of importants files as page tab ones.

@@ -28,7 +30,6 @@ class SubmissionRequestCleaner(
if (current != null) {
logger.info { "${new.accNo} ${new.owner} Started cleaning common files of version ${new.version}" }
deleteCommonFiles(new, current)
storageService.deleteFtpLinks(current)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

previos changes deleted all ftp folder resulting in files unavaialbiltiy even when not need it.

@Juan-EBI Juan-EBI merged commit e6fcc2e into master Mar 22, 2023
@Juan-EBI Juan-EBI deleted the feature/pivotal-184772659-Delete-only-common-files-when-required-on-re-submission branch May 17, 2023 13:39
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.

1 participant