-
Notifications
You must be signed in to change notification settings - Fork 4
Fix line name modification + rework LineModification dialog #3260
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
Merged
Mathieu-Deharbe
merged 7 commits into
main
from
more-rigorous-LineModificationForm-typing
Sep 17, 2025
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b48f407
more rigorous LineModificationForm typing
Mathieu-Deharbe b5984ec
rename types
Mathieu-Deharbe 0cda30e
remove uuid from LineModificationDialogForm
Mathieu-Deharbe bf441c6
Merge branch 'main' into more-rigorous-LineModificationForm-typing
etiennehomer 1289927
back to lineName
Mathieu-Deharbe f562778
Merge branch 'main' into more-rigorous-LineModificationForm-typing
Mathieu-Deharbe 8aeb3fb
reremove lineName
Mathieu-Deharbe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ import { | |
LCCCreationInfo, | ||
LccModificationInfos, | ||
LineCreationInfo, | ||
LineModificationInfo, | ||
LineModificationInfos, | ||
LinesAttachToSplitLinesInfo, | ||
LoadCreationInfo, | ||
LoadModificationInfo, | ||
|
@@ -828,16 +828,16 @@ export function modifyLine({ | |
nodeUuid, | ||
modificationUuid, | ||
lineId, | ||
lineName, | ||
equipmentName, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And revert this ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep done. |
||
r, | ||
x, | ||
g1, | ||
b1, | ||
g2, | ||
b2, | ||
operationalLimitsGroups, | ||
selectedLimitsGroup1, | ||
selectedLimitsGroup2, | ||
selectedOperationalLimitsGroup1, | ||
selectedOperationalLimitsGroup2, | ||
voltageLevelId1, | ||
busOrBusbarSectionId1, | ||
voltageLevelId2, | ||
|
@@ -859,7 +859,7 @@ export function modifyLine({ | |
p2MeasurementValidity, | ||
q2MeasurementValue, | ||
q2MeasurementValidity, | ||
}: LineModificationInfo) { | ||
}: LineModificationInfos) { | ||
let modifyLineUrl = getNetworkModificationUrl(studyUuid, nodeUuid); | ||
const isUpdate = !!modificationUuid; | ||
if (isUpdate) { | ||
|
@@ -878,16 +878,16 @@ export function modifyLine({ | |
body: JSON.stringify({ | ||
type: MODIFICATION_TYPES.LINE_MODIFICATION.type, | ||
equipmentId: lineId, | ||
equipmentName: toModificationOperation(lineName), | ||
equipmentName: equipmentName, | ||
r: toModificationOperation(r), | ||
x: toModificationOperation(x), | ||
g1: toModificationOperation(g1), | ||
b1: toModificationOperation(b1), | ||
g2: toModificationOperation(g2), | ||
b2: toModificationOperation(b2), | ||
operationalLimitsGroups: operationalLimitsGroups, | ||
selectedOperationalLimitsGroup1: selectedLimitsGroup1, | ||
selectedOperationalLimitsGroup2: selectedLimitsGroup2, | ||
selectedOperationalLimitsGroup1: selectedOperationalLimitsGroup1, | ||
selectedOperationalLimitsGroup2: selectedOperationalLimitsGroup2, | ||
voltageLevelId1: toModificationOperation(voltageLevelId1), | ||
busOrBusbarSectionId1: toModificationOperation(busOrBusbarSectionId1), | ||
voltageLevelId2: toModificationOperation(voltageLevelId2), | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
To be more homogeneous with the other modifications ?
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.
OK done. But I had to put it back into
LineModificationInfos
. And I saw it only inLineCreationInfo
: 1289927