powsybl / powsybl-core

A framework to build power system oriented software
https://www.powsybl.org
Mozilla Public License 2.0
124 stars 40 forks source link

Remove name unicity constraint on temporary limits #3043

Closed olperr1 closed 4 months ago

olperr1 commented 4 months ago

Please check if the PR fulfills these requirements

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Feature

What is the current behavior?

When creating/importing a new temporary limit, its name should be unique in the LoadingLimits. If it is not the case, an exception is thrown.

What is the new behavior (if this is a feature change)? This name unicity constraint is removed. When importing a new temporary limit, no check is performed on its name.

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

If yes, please check if the following requirements are fulfilled

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

Other information:

No documentation change: the removed check was not described in it.

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud