-
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
Feature 87 import resource by csv #122
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.
Overall looks good. Left minor comments.
pom.xml
Outdated
<dependency> | ||
<groupId>com.fasterxml.jackson.dataformat</groupId> | ||
<artifactId>jackson-dataformat-csv</artifactId> | ||
<version>2.17.0</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.
I think the version can be omitted.
return savedResources; | ||
} | ||
|
||
private void csvVerification(MultipartFile file) { |
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.
Method names should be verbs
private void csvVerification(MultipartFile file) { | |
private void verifyIsCsv(MultipartFile file) { |
CsvSchema schema = CsvSchema.emptySchema().withHeader(); | ||
|
||
MappingIterator<ResourceRequestDto> resourcesIterator; | ||
List<ResourceRequestDto> resourcesDto; |
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.
List<ResourceRequestDto> resourcesDto; | |
List<ResourceRequestDto> resourceDtos; |
Quality Gate passedIssues Measures |
No description provided.