-
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 174275642: Submission loading strategy #254
Pivotal #ID 174275642: Submission loading strategy #254
Conversation
attributeNodes = [ | ||
Node(ATTRS), | ||
Node(SECTS), | ||
Node(LINKS, subgraph = "attrs-sub-graph"), |
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.
Couldn't you just use the same "attrs" subgraph here?
private fun getSubmission(accNo: String) = | ||
submissionRepository.getByAccNo(accNo) ?: throw SubmissionNotFoundException(accNo) | ||
/** | ||
* Load submission information strategy used is basically first load submission and then load each section and it |
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.
typo: its subsections
* Load submission information strategy used is basically first load submission and then load each section and it | ||
* subsections recursively starting from the root section. | ||
*/ | ||
private fun submission(accNo: String, version: Int? = null): DbSubmission { |
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 loadSubmission
would be clearer
} | ||
|
||
private fun findSubmission(accNo: String, version: Int?): DbSubmission? { | ||
return when (version) { |
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.
Are we sure we need this logic? why not just leave the version with a default value?
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 notice that was kind of misleading. With default parameter, we do not know if we need a specific version or we need an active one
Promote To DEV Features: * Pivotal ID # 172817960: Resubmit Notification (#234) * Pivotal ID # 173574802: Submissions Files Permissions (#235) * Pivotal ID # 174054535: Disable SuperUser In Request * Pivotal ID # 169837866: Async File Processing (#256) * Pivotal ID # 173792650: Replace Base Path For Multiple Absolute Paths (#239) * Pivotal ID # 174127719: Transaction Lock (#250) Bug Fixes: * Pivotal ID # 173611760: Improve Stats AccNo Handling (#237) * Pivotal ID # 173457329: Project Access Tag Validation (#232) * Pivotal ID # 173569202: Empty Section Parent Cell (#240) * Pivotal ID # 173213544: User files permissions (#242) * Pivotal ID # 173457302: RelPath Calculation (#244) * Pivotal ID # 173750220: Author TSV Serialization (#245) * Pivotal ID # 174316468: Project Refresh AccNo Template Validation (#257) * Pivotal ID # 171230259: Draft Creation Times Out For Big Submissions (#251) Chores: * Pivotal ID # 172435409: Remove Old Backend Dependencies (#238) * Pivotal ID # 174076301: Update PMC Api (#248) * Pivotal ID #174275642: Submission Loading Strategy (#254) Co-authored-by: Juan <jcamilorada@ebi.ac.uk>
* Pivotal ID # 173457302: RelPath Calculation (#244) * Pivotal ID # 173750220: Author TSV Serialization (#245) * Pivotal ID # 172817960: Resubmit Notification (#243) * Pivotal ID # 174054535: Disable superUser in request * Pivotal #Id: 174076301: Update pmc api (#248) * pivotal #Id 174127719: Transaction lock (#250) * Pivotal ID # 171230259: Draft creation time outs for big submissions (#251) * Pivotal ID # 172817960: Resubmit Notfication (#253) * Pivotal #ID 174275642: Submission loading strategy (#254) * Pivotal ID # 172817960: Resubmit Notfication (#255) * Pivotal #ID: 173457302 : fixed relpath calculation (#246) * Pivotal ID # 174316468: Project Refresh AccNo Template Validation (#257) * Pivotal #ID: 169837866: Async File Processing (#256) * Pivotal ID # 169837866: Async File Processing (#259) * Pivotal ID # 169837866: Async File Processing (#261) * Pivotal ID # 174275207: Test Using The Persistence Layer (#262) * Pivotal ID # 174275207: Test Using The Persistence Layer * Pivotal ID # 173919045: Restrict Execute Permissions On HTTP Uploaded Files (#265) * Pivotal ID # 174621725: Wrong Notifications UI URL (#266) * Pivotal-174697743: Delete draft missing transaction * Pivotal ID # 174801815: Permissions For Deleted Submissions (#270) * Pivotal ID # 174801815: Permissions For Deleted Submissions * Pivotal ID # 174801815: Permissions For Deleted Submissions * Pivotal ID # 172671360: Warn Users About Upcoming Releases (#268) * Pivotal ID # 172671360: Warn Users About Upcoming Releases * Pivotal ID # 173783625: Partial Updates Timestamp (#269) * Pivotal #ID : 174922363: Add support for previous submission files source * Pivotal #ID 173908844: Add ext file fields attributes (#260) * Pivotal ID # 173817309: FIRE Client (#272) * Pivotal #ID: 174746920: Include status fetching submissions (#275) * Pivotal #ID 174947046: ExtSubmission list api (#273) * Pivotal ID # 171026062: FTP Hard Links (#276) * Pivotal ID #171026062: Submission files MD5 Generation (#274) * Pivotal #Id: Re-submit a submission with rooPath (#279) * Pivotal #Id: 174274579: User eager groups (#280) * Pivotal ID # 172671360: Warn Users About Upcoming Public Release (#282) * Pivotal ID # 175359447: Async Concurrent Processing Submission (#281) * Pivotal #ID 175632448: Extra persistence layer interfaces to avoid dependencies on SQL classes (#283) * Pivotal #ID 175632448: Extra persistence layer interfaces to avoid dependencies on SQL classes * Pivotal ID # 175359447: Async Concurrent Processing Submission (#285) * Pivotal ID # 175359447: Async Concurrent Processing Submission [HotFix] (#288) * Pivotal ID: 175632448: Extra persistence layer interfaces to avoid dependencies on SQL classes (#289) * Pivotal #ID 175632448: Extra persistence layer interfaces to avoid dependencies on SQL classes * Pivotal ID # 175266840: Manual Set AccNo Sequence (#287) * Pivotal ID # 175266840: Manual Set AccNo Sequence * Pivotal ID: 175632448: Extra persistence layer interfaces to avoid dependencies on SQL classes (#290) * Pivotal #ID 175632448: Extra persistence layer interfaces to avoid dependencies on SQL classes * Pivotal ID # 175266840: Manual Set AccNo Sequence [HotFix] (#291) * Pivotal ID # 172671360: Warn Users About Upcoming Public Release (#278) * Pivotal ID # 172671360: Warn Users About Upcoming Public Release * Pivotal ID # 175101522: File Path Field (#294) * Pivotal: ID: 175839554 : include user tag as part of extended submission tags (#296) * Pivotal #ID: 175825508: Store submission request - async processing * Pivotal-175839554: Include user tag as part of extended submission tags * Pivotal # 175163839: Submission Operations Refactor (#297) * Pivotal # 175163839: Submission Operations Refactor * Pivotal #Id: 175926073: Simplify accNoService (#298) * Pivotal ID # 175163839: Stats Refactor (#299) * Pivotal ID # 175780531: Ext Submission Submitter Validation (#300) * Temp FTP Resource (#277) * Pivotal ID # 172671360: Warn Users About Upcoming Public Release (#304) * Pivotal ID # 175632448: Regular User Resubmission (#306) Co-authored-by: Juan <jcamilorada@ebi.ac.uk>
Features: * Pivotal ID # 174054535: Disable superUser in request * Pivotal ID # 174076301: Update pmc api (#248) * Pivotal ID # 172817960: Resubmit Notfication (#255) * Pivotal ID # 169837866: Async File Processing (#256) * Pivotal ID # 172671360: Warn Users About Upcoming Releases (#268) * Pivotal ID # 173783625: Partial Updates Timestamp (#269) * Pivotal ID # 174922363: Add support for previous submission files source * Pivotal ID # 173908844: Add ext file fields attributes (#260) * Pivotal ID # 173817309: FIRE Client (#272) * Pivotal ID # 174746920: Include status fetching submissions (#275) * Pivotal ID # 171026062: Submission files MD5 Generation (#274) * Pivotal ID # 175266840: Manual Set AccNo Sequence (#287) * Pivotal ID # 175101522: File Path Field (#294) * Pivotal:ID # 175839554 : include user tag as part of extended submission tags (#296) * Pivotal ID # 175825508: Store submission request - async processing Bug Fixes: * Pivotal ID # 173457302: RelPath Calculation (#244) * Pivotal ID # 173750220: Author TSV Serialization (#245) * pivotal ID # 174127719: Transaction lock (#250) * Pivotal ID # 171230259: Draft creation time outs for big submissions (#251) * Pivotal ID # 174275642: Submission loading strategy (#254) * Pivotal ID # 174316468: Project Refresh AccNo Template Validation (#257) * Pivotal ID # 173919045: Restrict Execute Permissions On HTTP Uploaded Files (#265) * Pivotal ID # 174621725: Wrong Notifications UI URL (#266) * Pivotal ID # 174697743: Delete draft missing transaction * Pivotal ID # 174801815: Permissions For Deleted Submissions (#270) * Pivotal ID # 171026062: FTP Hard Links (#276) * Pivotal ID # 175357899: Re-submit a submission with rooPath (#279) * Pivotal ID # 175359447: Async Concurrent Processing Submission (#281) * Pivotal ID # 175780531: Ext Submission Submitter Validation (#300) * Pivotal ID # 175632448: Regular User Resubmission (#306) * Pivotal ID # 176052254: JSON Submission Attributes Validation (#310) * Pivotal ID # 176052264: Inner Folder Mapping (#311) Chore Tasks: * Pivotal ID # 174275207: Test Using The Persistence Layer (#262) * Pivotal ID # 174947046: ExtSubmission list api (#273) * Pivotal ID # 174274579: User eager groups (#280) * Pivotal ID # 175632448: Extra persistence layer interfaces to avoid dependencies on SQL classes (#283) * Pivotal ID # 175163839: Submission Operations Refactor (#297) * Pivotal ID # 175926073: Simplify accNoService (#298) * Pivotal ID # 175163839: Stats Refactor (#299)
https://www.pivotaltracker.com/story/show/174275642