-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implement basic operations #1
Conversation
src/main/java/org/gridsuite/spreadsheetconfig/server/RestResponseEntityExceptionHandler.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/spreadsheetconfig/server/RestTemplateConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/spreadsheetconfig/server/SwaggerConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/spreadsheetconfig/server/mapper/SpreadsheetConfigMapper.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/spreadsheetconfig/server/repositories/CustomColumnRepository.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/spreadsheetconfig/server/entities/CustomColumnEntity.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/spreadsheetconfig/server/service/SpreadsheetConfigService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/spreadsheetconfig/server/service/SpreadsheetConfigService.java
Outdated
Show resolved
Hide resolved
pom.xml
Outdated
</dependency> | ||
<dependency> | ||
<groupId>io.micrometer</groupId> | ||
<artifactId>micrometer-registry-prometheus</artifactId> |
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.
Not used
src/test/resources/logback-test.xml
Outdated
<!-- | ||
our logs | ||
--> | ||
<logger name="org.gridsuite.useradmin.server" level="trace"/> |
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.
org.gridsuite.spreadsheetconfig.server
@Column(name = "name", nullable = false, columnDefinition = "varchar(255)") | ||
private String name; | ||
|
||
@Column(name = "formula", columnDefinition = "varchar(255)") |
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.
Use CLOB for the formula column type
@Enumerated(EnumType.STRING) | ||
private SheetType sheetType; | ||
|
||
@OneToMany(mappedBy = "spreadsheetConfig", cascade = CascadeType.ALL, orphanRemoval = true) |
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.
Why not using here the annotations ElementCollection and CollectionTable
and the Embeddable annotation in CustomColumnEntity (and removing the ManyToOne relationship with SpreadsheetConfigEntity in CustomColumnEntity)
src/main/java/org/gridsuite/spreadsheetconfig/server/dto/CustomColumnDto.java
Outdated
Show resolved
Hide resolved
...main/java/org/gridsuite/spreadsheetconfig/server/controller/SpreadsheetConfigController.java
Show resolved
Hide resolved
src/main/java/org/gridsuite/spreadsheetconfig/server/dto/SpreadsheetConfigDto.java
Outdated
Show resolved
Hide resolved
Signed-off-by: achour94 <berrahmaachour@gmail.com>
Signed-off-by: achour94 <berrahmaachour@gmail.com>
src/test/java/org/gridsuite/spreadsheetconfig/server/SpreadsheetConfigControllerTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/gridsuite/spreadsheetconfig/server/SpreadsheetConfigControllerTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/gridsuite/spreadsheetconfig/server/SpreadsheetConfigControllerTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/gridsuite/spreadsheetconfig/server/SpreadsheetConfigControllerTest.java
Outdated
Show resolved
Hide resolved
|
||
@Schema(description = "Column formula") | ||
String formula | ||
) { } |
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.
It miss the type of data (string, interger, boolean, ...) for aggrid in front know of to parse the result of formula. If null, stick to default behaviour: aggrid auto/try to guess the type.
) { } | |
@Schema(description = "Column type") | |
ColumnType type; | |
) { } |
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.
How can we get this information !?
Signed-off-by: achour94 <berrahmaachour@gmail.com>
Quality Gate passedIssues Measures |
No description provided.