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

Implement basic operations #1

Merged
merged 9 commits into from
Oct 1, 2024
Merged

Implement basic operations #1

merged 9 commits into from
Oct 1, 2024

Conversation

achour94
Copy link
Collaborator

No description provided.

@achour94 achour94 self-assigned this Sep 26, 2024
Signed-off-by: achour94 <berrahmaachour@gmail.com>
Signed-off-by: achour94 <berrahmaachour@gmail.com>
Signed-off-by: achour94 <berrahmaachour@gmail.com>
Signed-off-by: achour94 <berrahmaachour@gmail.com>
pom.xml Outdated
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

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

Not used

<!--
our logs
-->
<logger name="org.gridsuite.useradmin.server" level="trace"/>
Copy link
Contributor

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)")
Copy link
Contributor

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

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)

Signed-off-by: achour94 <berrahmaachour@gmail.com>
Signed-off-by: achour94 <berrahmaachour@gmail.com>
Signed-off-by: achour94 <berrahmaachour@gmail.com>

@Schema(description = "Column formula")
String formula
) { }
Copy link

@Tristan-WorkGH Tristan-WorkGH Oct 1, 2024

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.

Suggested change
) { }
@Schema(description = "Column type")
ColumnType type;
) { }

Copy link
Collaborator Author

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

sonarqubecloud bot commented Oct 1, 2024

@achour94 achour94 merged commit ba26e85 into main Oct 1, 2024
3 checks passed
@TheMaskedTurtle TheMaskedTurtle deleted the first-version branch October 14, 2024 14:41
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.

5 participants