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

Fix overload management system deserialization issue #3171

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

bc-rte
Copy link
Contributor

@bc-rte bc-rte commented Oct 7, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?

#3166

What kind of change does this PR introduce?

This PR refactors OverloadManagementSystemSerDe to not defer creation of the element when deserializing a file.
In order to maintain, only the validation of external network elements is now postponed.

What is the current behavior?

Currently, when reading a Network, OverloadManagementSystems are created at the end, after attempting to deserialize extensions.

What is the new behavior (if this is a feature change)?

OverloadManagementSystems are added to the network when read, allowing extensions to be deserialized properly.

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

Other information:

No test was added to highlight the existing failing behaviour, because, in my understanding, testing it requires to create an extension.
An extension could be created in a separate PR to show the issue, but will require some additional functional validation to be mergeable.

@bc-rte
Copy link
Contributor Author

bc-rte commented Oct 8, 2024

#3174 added to highlight the behaviour before this PR.

@bc-rte bc-rte force-pushed the fix_overload_management_system_deserialization_issue branch from 99528a0 to 2eb2d16 Compare October 8, 2024 09:49
Copy link

sonarqubecloud bot commented Oct 8, 2024

…defer validation

Signed-off-by: CHIQUET Benoit <benoit.chiquet@rte-france.com>
Signed-off-by: CHIQUET Benoit <benoit.chiquet@rte-france.com>
Signed-off-by: CHIQUET Benoit <benoit.chiquet@rte-france.com>
…ents

Signed-off-by: CHIQUET Benoit <benoit.chiquet@rte-france.com>
@bc-rte bc-rte force-pushed the fix_overload_management_system_deserialization_issue branch from 2eb2d16 to 951c253 Compare November 7, 2024 10:33
Copy link

sonarqubecloud bot commented Nov 7, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant