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

refactor tabular modification #412

Merged
merged 9 commits into from
Jan 10, 2024
Merged

Conversation

dbraquart
Copy link
Contributor

@dbraquart dbraquart commented Jan 3, 2024

No description provided.

dbraquart and others added 6 commits January 3, 2024 18:32
…fication

# Conflicts:
#	src/main/java/org/gridsuite/modification/server/entities/TabularModificationEntity.java
Signed-off-by: David BRAQUART <[email protected]>
Signed-off-by: David BRAQUART <[email protected]>
Signed-off-by: David BRAQUART <[email protected]>
@dbraquart dbraquart changed the title WIP refactor tabular modification refactor tabular modification Jan 5, 2024
@dbraquart dbraquart requested a review from SlimaneAmar January 5, 2024 17:18
@NonNull
private String modificationType;
private IdentifiableType equipmentType;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's not enough. We can have here types like GENERATOR_MODIFICATION, GENERATOR_CREATION or EQUIPMENT_DELETION

Copy link
Contributor

Choose a reason for hiding this comment

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

Using ModificationType enum would be more appropriate

Copy link
Contributor

Choose a reason for hiding this comment

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

No ModificationType represente all modification types of network
We need only injection modificatio/creation/deletion

Copy link
Contributor

Choose a reason for hiding this comment

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

operationType { MODIFICATION, CREATION, DELETION } ?

Copy link
Contributor

Choose a reason for hiding this comment

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

You want to use 2 fields : IdentifiableType equipmentType + OperationType operationType ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Last decision: we use ModificationType enum. No data migration. Same Front-end.

…fication

# Conflicts:
#	src/main/java/org/gridsuite/modification/server/entities/TabularModificationEntity.java
#	src/main/java/org/gridsuite/modification/server/modifications/TabularModification.java
Signed-off-by: David BRAQUART <[email protected]>
@dbraquart dbraquart force-pushed the refactor-tabular-modification branch from b94dc9e to 23ad0d3 Compare January 9, 2024 19:50
Copy link

sonarqubecloud bot commented Jan 9, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
90.9% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@etiennehomer etiennehomer left a comment

Choose a reason for hiding this comment

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

Tests OK

@dbraquart dbraquart merged commit dfface3 into main Jan 10, 2024
3 checks passed
@dbraquart dbraquart deleted the refactor-tabular-modification branch January 10, 2024 16:27
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.

3 participants