-
Notifications
You must be signed in to change notification settings - Fork 1
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 # 187484499: Make Files Private On Resubmission #846
Pivotal ID # 187484499: Make Files Private On Resubmission #846
Conversation
- Update the un-publish fire operation to return the un-published file - Make files private when a submission becomes private
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good please check comments
...ence-filesystem/src/main/kotlin/ac/uk/ebi/biostd/persistence/filesystem/nfs/NfsFtpService.kt
Outdated
Show resolved
Hide resolved
...ence-filesystem/src/main/kotlin/ac/uk/ebi/biostd/persistence/filesystem/nfs/NfsFtpService.kt
Outdated
Show resolved
Hide resolved
...core/src/main/kotlin/ac/uk/ebi/biostd/submission/domain/request/SubmissionRequestReleaser.kt
Outdated
Show resolved
Hide resolved
...core/src/main/kotlin/ac/uk/ebi/biostd/submission/domain/request/SubmissionRequestReleaser.kt
Show resolved
Hide resolved
...core/src/main/kotlin/ac/uk/ebi/biostd/submission/domain/request/SubmissionRequestReleaser.kt
Outdated
Show resolved
Hide resolved
...core/src/main/kotlin/ac/uk/ebi/biostd/submission/domain/request/SubmissionRequestReleaser.kt
Outdated
Show resolved
Hide resolved
Code review comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM please consider comments before merge
client/fire-webclient/src/main/kotlin/uk/ac/ebi/fire/client/api/FireWebClient.kt
Outdated
Show resolved
Hide resolved
...filesystem/src/main/kotlin/ac/uk/ebi/biostd/persistence/filesystem/api/FileStorageService.kt
Outdated
Show resolved
Hide resolved
...ence-filesystem/src/main/kotlin/ac/uk/ebi/biostd/persistence/filesystem/nfs/NfsFtpService.kt
Show resolved
Hide resolved
...ence-filesystem/src/main/kotlin/ac/uk/ebi/biostd/persistence/filesystem/nfs/NfsFtpService.kt
Outdated
Show resolved
Hide resolved
...filesystem/src/main/kotlin/ac/uk/ebi/biostd/persistence/filesystem/service/StorageService.kt
Outdated
Show resolved
Hide resolved
...-filesystem/src/test/kotlin/ac/uk/ebi/biostd/persistence/filesystem/nfs/NfsFtpServiceTest.kt
Outdated
Show resolved
Hide resolved
...-filesystem/src/test/kotlin/ac/uk/ebi/biostd/persistence/filesystem/nfs/NfsFtpServiceTest.kt
Show resolved
Hide resolved
@@ -63,6 +64,7 @@ class SubmissionRequestCleanIndexer( | |||
newFiles: FilesRecords, | |||
current: ExtSubmission, | |||
): Triple<Int, Int, Int> { | |||
val reusedIdx = AtomicInteger(0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you noticed we return conflict and deprecated values so latter we know what is the amount of files to delete so we can acurrectly calculate the progress of procress. With reused files we are not so when we are actually unreleased we do not know how many files are pending.
Not saying this need to be included in this ticket which was already a huge effort but I think having precise estimation of pending activities is something we do not want to lose. Create a ticket to address that after this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch, I added the changes 👍
...webapp/src/itest/kotlin/ac/uk/ebi/biostd/itest/test/submission/submit/ResubmissionApiTest.kt
Show resolved
Hide resolved
...webapp/src/itest/kotlin/ac/uk/ebi/biostd/itest/test/submission/submit/ResubmissionApiTest.kt
Outdated
Show resolved
Hide resolved
- Use native web client commands - Improve tests readability
Persist reused files count
https://www.pivotaltracker.com/story/show/187484499