-
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-173792650: Replace base path for multiple absolute paths #239
pivotal-173792650: Replace base path for multiple absolute paths #239
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 comments.
|
||
fun getSubmissionFolder(submission: ExtSubmission): Path = | ||
basePath.resolve(SUBMISSION_PATH).resolve(submission.relPath) | ||
fun getSubmissionFtpFolder(submissionRelPath: String): Path = |
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.
Silly detail but, don't these two methods fit in a single line?
basepath: | ||
submissionPath: | ||
ftpPath: | ||
magicPath: |
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.
Don't we need this property in the application's main config file?
Also, I didn't see it's being used in the code, only in the ApplicationProperties
class but I assume it's the user magic folder? In any case, I think the property name can be improved or at least add a comment indicating what it's used for.
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.
ohh yes let me remove this one, is for future changes
@@ -10,6 +10,7 @@ import org.springframework.context.annotation.Configuration | |||
@Configuration | |||
@EnableConfigurationProperties(ApplicationProperties::class) | |||
internal class GeneralConfig { | |||
|
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.
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.
hahaha
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>
https://www.pivotaltracker.com/story/show/173792650