-
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
Implemented an endpoint to handle file uploads #117
base: main
Are you sure you want to change the base?
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.
Thanks for moving this over. Looks nice. I have just made some comments that for some improvements. Some of them can be handled in a future issue and PR.
# The name of the S3 bucket where files will be uploaded. | ||
# bucketName: radar | ||
# Path-related settings for organizing stored files. | ||
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.
I wondered if we should utilise functionality from radar-output's path factory (it would be good to harmonise across components). We can likely extract that bit of functionality from radar output to the radar-commons library and re-use in both components. Let's discuss in the next meeting
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.
And this can be tackled in a separate issue and PR
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.
Let's discuss in the next meeting
Okay
radar-gateway/src/main/kotlin/org/radarbase/gateway/config/S3StorageConfig.kt
Outdated
Show resolved
Hide resolved
|
||
data class StorageConditionConfig ( | ||
val fileUploadEnabled: Boolean = true, | ||
val radarStorageType: String = "s3" |
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.
The radar output's target-based system can also inspire this. Again, we can extract common functionality and reuse it here. That would allow supporting multiple target systems without extra effort.
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.
Sure, I will proceed after understanding the output repository in the next meeting.
radar-gateway/src/main/kotlin/org/radarbase/gateway/resource/FileUploadResource.kt
Outdated
Show resolved
Hide resolved
radar-gateway/src/main/kotlin/org/radarbase/gateway/service/storage/MinioClientLoaderImpl.kt
Outdated
Show resolved
Hide resolved
radar-gateway/src/main/kotlin/org/radarbase/gateway/service/storage/path/StoragePath.kt
Outdated
Show resolved
Hide resolved
radar-gateway/src/main/kotlin/org/radarbase/gateway/utils/Paths.kt
Outdated
Show resolved
Hide resolved
1944b6e
to
e72feca
Compare
Screenshot of MinIO tested locally: