Conversation
This comment was marked as outdated.
This comment was marked as outdated.
0a23a37 to
96fc48c
Compare
96fc48c to
fa3ecdb
Compare
fa3ecdb to
fb1d354
Compare
…n user to the process configs Signed-off-by: Franck LECUYER <franck.lecuyer@rte-france.com>
fb1d354 to
4eca07a
Compare
|
antoinebhs
left a comment
There was a problem hiding this comment.
This PR asks the question where we want to save this data.
In the Gridsuite ecosystem, we do not save this data in all elements available in Gridexplore, it's handled by the directory server.
We need to discuss with the PO if we want in monitor to have our "ProcessConfig" explorer that do not use Gridexplore or if we want to use Gridexplore and instead of implementing it like that, we want a new GRidexplore object.
I will finish the review depending on what we choose.
| /** | ||
| * @author Franck Lecuyer <franck.lecuyer at rte-france.com> | ||
| */ | ||
| public final class Constants { |
There was a problem hiding this comment.
I think the logic for now is to put in monitor-commons class that are commons to server and worker.
I see that these constants are only used in the server. So I would put this file in server/Constants.java
| */ | ||
| @Getter | ||
| public abstract class AbstractProcessConfig implements ProcessConfig { | ||
| @JsonProperty(required = true) |
There was a problem hiding this comment.
- I don't really understand the logic here: why do we make it required but also add a null check:
this.modificationUuids = modificationUuids != null ? List.copyOf(modificationUuids) : null;
- Why do we need an abstraction and can't continue using the record?
| List<UUID> modificationUuids(); | ||
| List<UUID> getModificationUuids(); | ||
|
|
||
| @JsonProperty(access = JsonProperty.Access.READ_ONLY) |
There was a problem hiding this comment.
This is readonly to avoid API requests with this data, right?
| ) implements ProcessConfig { | ||
| @Getter | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class SecurityAnalysisConfig extends AbstractProcessConfig { |
There was a problem hiding this comment.
same comment for the record vs class and null/required
| @OrderColumn(name = "pos_modifications") | ||
| private List<UUID> modificationUuids; | ||
|
|
||
| @Column(name = "owner", length = 80, nullable = false) |
There was a problem hiding this comment.
we usually don't constrain in the bd but it see that it's consistent with directory server



PR Summary
Add owner, creation date, last modification date and last user that did a modification