-
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
Get modifications from metadata #345
Conversation
Signed-off-by: Maissa SOUISSI <[email protected]>
Signed-off-by: Maissa SOUISSI <[email protected]>
Signed-off-by: Maissa SOUISSI <[email protected]>
Signed-off-by: Maissa SOUISSI <[email protected]>
Signed-off-by: Maissa SOUISSI <[email protected]>
src/main/java/org/gridsuite/modification/server/dto/ModificationInfos.java
Show resolved
Hide resolved
src/main/java/org/gridsuite/modification/server/entities/ModificationEntity.java
Show resolved
Hide resolved
|
I think we should handle data migration otherwise older studies will be broken |
src/main/java/org/gridsuite/modification/server/entities/ModificationEntity.java
Outdated
Show resolved
Hide resolved
I reckon it would be worth to add a test to check a modification properties when we specify or not onlyMetadata |
Signed-off-by: Maissa SOUISSI <[email protected]>
Signed-off-by: Maissa SOUISSI <[email protected]>
…gridsuite/network-modification-server into get_modifications_from_metadata
Signed-off-by: Maissa SOUISSI <[email protected]>
Signed-off-by: Maissa SOUISSI <[email protected]>
src/test/java/org/gridsuite/modification/server/ModificationControllerTest.java
Show resolved
Hide resolved
...st/java/org/gridsuite/modification/server/modifications/AbstractNetworkModificationTest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/modification/server/entities/ModificationEntity.java
Show resolved
Hide resolved
src/main/java/org/gridsuite/modification/server/dto/ModificationInfos.java
Show resolved
Hide resolved
Signed-off-by: Maissa SOUISSI <[email protected]>
Signed-off-by: Maissa SOUISSI <[email protected]>
src/main/resources/db/changelog/changesets/changelog_20231010T120459Z.xml
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/modification/server/dto/ModificationInfos.java
Show resolved
Hide resolved
Signed-off-by: Maissa SOUISSI <[email protected]>
src/main/java/org/gridsuite/modification/server/dto/GenerationDispatchInfos.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/modification/server/dto/DeleteAttachingLineInfos.java
Outdated
Show resolved
Hide resolved
src/main/resources/db/changelog/changesets/migrationMetadataModificationsPostgres.sql
Outdated
Show resolved
Hide resolved
Signed-off-by: Maissa SOUISSI <[email protected]>
Signed-off-by: Maissa SOUISSI <[email protected]>
Signed-off-by: Maissa SOUISSI <[email protected]>
Signed-off-by: Maissa SOUISSI <[email protected]>
Signed-off-by: Maissa SOUISSI <[email protected]>
Signed-off-by: Slimane AMAR <[email protected]>
Signed-off-by: Maissa SOUISSI <[email protected]>
…gridsuite/network-modification-server into get_modifications_from_metadata
Signed-off-by: Maissa SOUISSI <[email protected]>
Signed-off-by: Maissa SOUISSI <[email protected]>
…gridsuite/network-modification-server into get_modifications_from_metadata
Signed-off-by: Slimane AMAR <[email protected]>
…gridsuite/network-modification-server into get_modifications_from_metadata
Signed-off-by: Slimane AMAR <[email protected]>
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.
Last review: 2 remaining
<sqlFile | ||
encoding="UTF-8" | ||
path="migrationMetadataModifications.sql" | ||
relativeToChangelogFile="true" | ||
splitStatements="true" | ||
stripComments="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.
don't add unnecessary files, add sql in changeset directly
status().isOk(), content().contentType(MediaType.APPLICATION_JSON)) | ||
.andReturn(); | ||
|
||
List<VoltageInitModificationInfos> modificationsInfos2 = mapper.readValue(mvcResult.getResponse().getContentAsString(), new TypeReference<>() { }); | ||
assertEquals(1, modificationsInfos2.size()); | ||
assertThat(modificationsInfos2.get(0)).recursivelyEquals(modificationsInfos1); | ||
// assertThat(modificationsInfos2.get(0)).recursivelyEquals(modificationsInfos1); |
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.
what problem did you encounter for disabling this assertion?
Signed-off-by: Maissa SOUISSI <[email protected]>
…gridsuite/network-modification-server into get_modifications_from_metadata
Kudos, SonarCloud Quality Gate passed! |
No description provided.