-
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 # 184812856: Regenerate pagetab operation #701
Pivotal ID # 184812856: Regenerate pagetab operation #701
Conversation
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 my comment
@@ -92,6 +92,7 @@ interface SubmissionDraftRepository : MongoRepository<DocSubmissionDraft, String | |||
} | |||
|
|||
interface FileListDocFileRepository : MongoRepository<FileListDocFile, ObjectId> { | |||
@Meta(cursorBatchSize = 100, flags = [CursorOption.NO_TIMEOUT]) |
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.
👍
return ExtFileTable(files.toList()) | ||
} | ||
|
||
fun getReferencedFile(accNo: String, fileListName: String): Sequence<ExtFile> { |
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.
I think this should be called getReferencedFilesAsSequece
or getReferencedFilesSequece
since the only difference is the returned type and the current name (singular) gives the impression that this method is used to get a single file
Also, I know there're some places in the code were we use the function above (getReferencedFiles) just to get the list. I mean, we're calling the function, getting an ExtFileTable
object, and then getting the list. Maybe it would be worth taking a look at these since it might make more sense to use this new function that returns a sequence and consume it accordingly.
fun asTsv( | ||
@PathVariable accNo: String, | ||
@PathVariable fileList: String, | ||
): ResponseEntity<Resource> = fileListFile(accNo, fileList, SubFormat.TSV) |
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.
👍
https://www.pivotaltracker.com/story/show/184812856