Skip to content

[WIP] Deprecate creation of new LoadingLimits from Branch and FlowsLimitsHo… #3340

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

quinarygio
Copy link
Contributor

@quinarygio quinarygio commented Mar 3, 2025

…lder

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?

#3212

What kind of change does this PR introduce?

Does this PR introduce a new Powsybl Action implying to be implemented in simulators or pypowsybl?

  • Yes, the corresponding issue is here
  • No

What is the current behavior?

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

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

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

@quinarygio
Copy link
Contributor Author

quinarygio commented Mar 5, 2025

There are 2 test failing because replacing the call "line.newCurrentLimits()" with "line.getOrCreateSelectedOperationalLimitsGroup1().newCurrentLimits()" the SelectedOperationalLimitsGroup is modified even if the Adder validation is not called or fails:

LineTest>AbstractLineTest.dontChangeDefaultOperationalLimitsGroupIfAdderValidationFails:742 expected: but was:
LineTest>AbstractLineTest.dontChangeSelectedOperationalLimitsGroupIfAdderNotUsed:719 expected: but was:

@rcourtier rcourtier self-requested a review March 6, 2025 12:22
@So-Fras So-Fras added Breaking Change API is broken and removed Breaking Change API is broken labels Mar 25, 2025
/**
* <p>Get the {@link OperationalLimitsGroup} corresponding to the given ID or create a new one if it does not exists.
* Set the {@link OperationalLimitsGroup} as the selected one on side 1.</p>
* @param id an ID of {@link OperationalLimitsGroup}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @param id an ID of {@link OperationalLimitsGroup}
* @param limitsGroupId an ID of {@link OperationalLimitsGroup}

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