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 # 184812856: Regenerate pagetab operation #701

Merged

Conversation

Juan-EBI
Copy link
Contributor

https://www.pivotaltracker.com/story/show/184812856

  • added file list pagetab generation endpoints

Copy link
Contributor

@jhoanmanuelms jhoanmanuelms left a 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])
Copy link
Contributor

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> {
Copy link
Contributor

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)
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@Juan-EBI Juan-EBI merged commit 00b1002 into master May 1, 2023
@Juan-EBI Juan-EBI deleted the feature/pivotal-184812856-Regenerate-pagetab-operation branch May 1, 2023 18:34
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.

2 participants