Skip to content

Commit b5afa9b

Browse files
committed
Remove icons strip and lock temporarly on map
Signed-off-by: Igor PIROG <[email protected]>
1 parent b404c8b commit b5afa9b

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

src/main/java/org/gridsuite/network/map/dto/mapper/LineInfosMapper.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private static LineMapInfos toMapInfos(Identifiable<?> identifiable, Double dcPo
118118
Terminal terminal1 = line.getTerminal1();
119119
Terminal terminal2 = line.getTerminal2();
120120

121-
LineMapInfos.LineMapInfosBuilder<?, ?> builder = LineMapInfos.builder()
121+
return LineMapInfos.builder()
122122
.id(line.getId())
123123
.name(line.getOptionalName().orElse(null))
124124
.terminal1Connected(terminal1.isConnected())
@@ -130,10 +130,10 @@ private static LineMapInfos toMapInfos(Identifiable<?> identifiable, Double dcPo
130130
.p1(nullIfNan(terminal1.getP()))
131131
.p2(nullIfNan(terminal2.getP()))
132132
.i1(nullIfNan(computeIntensity(terminal1, dcPowerFactor)))
133-
.i2(nullIfNan(computeIntensity(terminal2, dcPowerFactor)));
134-
builder.operatingStatus(ExtensionUtils.toOperatingStatus(line));
135-
136-
return builder.build();
133+
.i2(nullIfNan(computeIntensity(terminal2, dcPowerFactor)))
134+
// TODO - lock and strip are hidden on map temporarly
135+
//.operatingStatus(ExtensionUtils.toOperatingStatus(line))
136+
.build();
137137
}
138138

139139
private static LineTabInfos toTabInfos(Identifiable<?> identifiable, Double dcPowerFactor, boolean loadOperationalLimitGroups) {

src/test/resources/lines-map-data.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
"terminal1Connected": true,
2424
"terminal2Connected": true,
2525
"p1": 200.0,
26-
"p2": 100.0,
27-
"operatingStatus": "PLANNED_OUTAGE"
26+
"p2": 100.0
2827
},
2928
{
3029
"id": "LINE4",

src/test/resources/partial-lines-map-data.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"terminal1Connected": true,
88
"terminal2Connected": true,
99
"p1": 200.0,
10-
"p2": 100.0,
11-
"operatingStatus": "PLANNED_OUTAGE"
10+
"p2": 100.0
1211
},
1312
{
1413
"id": "NHV1_NHV2_2",

0 commit comments

Comments
 (0)