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

Get modifications from metadata #345

Merged
merged 34 commits into from
Nov 6, 2023
Merged

Conversation

souissimai
Copy link
Contributor

No description provided.

@souissimai souissimai changed the title Get modifications from metadata [WIP] Get modifications from metadata Oct 11, 2023
@souissimai souissimai changed the title [WIP] Get modifications from metadata Get modifications from metadata Oct 13, 2023
@Meklo Meklo self-requested a review October 16, 2023 13:27
@Meklo
Copy link
Contributor

Meklo commented Oct 16, 2023

How come onlyMetadata param for getNetworkModifications endpoint you added in the study-server PR is not present in this one ?
EDIT : It was alreay there, my bad

@Meklo
Copy link
Contributor

Meklo commented Oct 17, 2023

I think we should handle data migration otherwise older studies will be broken

@Meklo
Copy link
Contributor

Meklo commented Oct 17, 2023

I reckon it would be worth to add a test to check a modification properties when we specify or not onlyMetadata

@souissimai souissimai requested a review from Meklo October 25, 2023 07:34
@Tristan-WorkGH Tristan-WorkGH self-requested a review October 30, 2023 09:24
@Tristan-WorkGH Tristan-WorkGH marked this pull request as draft October 30, 2023 09:24
@souissimai souissimai marked this pull request as ready for review October 30, 2023 09:27
@souissimai souissimai changed the title Get modifications from metadata [WIP]Get modifications from metadata Oct 30, 2023
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]>
souissimai and others added 15 commits November 2, 2023 15:49
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: Maissa SOUISSI <[email protected]>
Signed-off-by: Maissa SOUISSI <[email protected]>
Signed-off-by: Slimane AMAR <[email protected]>
@souissimai souissimai requested review from Tristan-WorkGH and removed request for Tristan-WorkGH November 6, 2023 07:34
Copy link
Contributor

@Tristan-WorkGH Tristan-WorkGH left a 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

Comment on lines 19 to 24
<sqlFile
encoding="UTF-8"
path="migrationMetadataModifications.sql"
relativeToChangelogFile="true"
splitStatements="true"
stripComments="true"/>
Copy link
Contributor

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

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

sonarqubecloud bot commented Nov 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

98.4% 98.4% Coverage
0.0% 0.0% Duplication

@souissimai souissimai merged commit 8d9fe7e into main Nov 6, 2023
4 checks passed
@souissimai souissimai deleted the get_modifications_from_metadata branch November 6, 2023 12:31
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.

4 participants