Skip to content

Conversation

shivamkrpandey
Copy link

Problem

  • Get the details of bucket in which file belongs. It also makes easy to perform UFile domain related operations.

Solution / Approach

  • Add a field containerName in the UFile domain.

Test Procedures

  • Upload a new file and its instance in the database should also contain containerName.

@shivamkrpandey
Copy link
Author

}

String getContainer() {
containerName(Holders.flatConfig["fileuploader.groups.${fileGroup}.container"])
Copy link
Author

Choose a reason for hiding this comment

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

Need to change the method name to fix the codeclimate issue of Code readability confusion as fieldName containerName is a good fit here.

Copy link

@devpriyanshu96 devpriyanshu96 left a comment

Choose a reason for hiding this comment

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

Code review done some changes suggested

dateCreated bindable: false
lastUpdated bindable: false
envName bindable: false
containerName nullable: true

Choose a reason for hiding this comment

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

should we also add min-length validations to it

Copy link
Author

Choose a reason for hiding this comment

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

Added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants