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-173792650: Replace base path for multiple absolute paths #239

Conversation

Juan-EBI
Copy link
Contributor

@Juan-EBI Juan-EBI marked this pull request as ready for review July 14, 2020 12:28
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 comments.


fun getSubmissionFolder(submission: ExtSubmission): Path =
basePath.resolve(SUBMISSION_PATH).resolve(submission.relPath)
fun getSubmissionFtpFolder(submissionRelPath: String): Path =
Copy link
Contributor

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

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.

Copy link
Contributor Author

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 {

Copy link
Contributor

Choose a reason for hiding this comment

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

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hahaha

@Juan-EBI Juan-EBI merged commit 4a15e53 into master Jul 14, 2020
@Juan-EBI Juan-EBI deleted the feature/pivotal-173792650-Replace-base-path-for-multiple-absolute-paths branch July 14, 2020 14:24
jhoanmanuelms added a commit that referenced this pull request Aug 18, 2020
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>
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