Commit 2420b598 authored by PECQUOT's avatar PECQUOT

[fix] DaliStrategyDao: Change the way to delete pmfm strategies without hibernate (Mantis #51602)

[fix] Map: change symbolizer order for location with line geometry (Mantis #51902)
[fix] Table with pmfm columns is correctly reset after a save action (Mantis #51850)
[fix] Upgrade quadrige3-core to version 3.6.15
Signed-off-by: PECQUOT's avatarlp1ee9d <ludovic.pecquot@e-is.pro>
parent 50bb256c
## Sprint 54 - v5.1.4
- Pas de mise à jour de modèle
## Sprint 53 - v5.1.2 & v5.1.3
- Pas de mise à jour de modèle
......
......@@ -406,8 +406,9 @@ public class DaliStrategyDaoImpl extends StrategyDaoImpl implements DaliStrategy
} else {
if (CollectionUtils.isNotEmpty(target.getPmfmStrategies())) {
target.getPmfmStrategies().clear();
// collect pmfmStrategyIds before clearing collection (Mantis #51602)
List<Integer> pmfmStrategyIds = DaliBeans.collectProperties(target.getPmfmStrategies(), "pmfmStratId");
target.getPmfmStrategies().clear();
deletePmfmStrategies(pmfmStrategyIds);
}
}
......@@ -747,17 +748,14 @@ public class DaliStrategyDaoImpl extends StrategyDaoImpl implements DaliStrategy
Set<Integer> idsToDelete = pmfmStrategyIds.stream().filter(Objects::nonNull).collect(Collectors.toSet());
if (CollectionUtils.isEmpty(idsToDelete)) return;
// call dao instead of bulk delete to allow delete checks
idsToDelete.forEach(idToDelete -> pmfmStrategyDao.remove(idToDelete));
getSession().flush();
// Execute deletion by query (Mantis #51602)
Query query = createQuery("deletePmfmAppliedStrategiesByPmfmStrategyIds");
query.setParameterList("pmfmStrategyIds", idsToDelete);
query.executeUpdate();
// Query query = createQuery("deletePmfmAppliedStrategiesByPmfmStrategyIds");
// query.setParameterList("pmfmStrategyIds", idsToDelete);
// query.executeUpdate();
//
// query = createQuery("deletePmfmStrategiesByIds");
// query.setParameterList("pmfmStrategyIds", idsToDelete);
// query.executeUpdate();
query = createQuery("deletePmfmStrategiesByIds");
query.setParameterList("pmfmStrategyIds", idsToDelete);
query.executeUpdate();
}
/** {@inheritDoc} */
......
......@@ -51,7 +51,7 @@
# Please fill the missing licenses for dependencies :
#
#
#Fri Mar 13 10:21:37 CET 2020
#Thu Apr 30 18:43:05 CEST 2020
com.oracle--ojdbc7--12.1.0.2.0=OTN license
commons-primitives--commons-primitives--1.0=The Apache Software License, Version 2.0
dom4j--dom4j--1.6.1=BSD License
......
......@@ -226,10 +226,11 @@ public class SurveysMapBuilder implements MapBuilder {
// location line style
TextSymbolizer textLineSymbolizer = SF.createTextSymbolizer(fillBlack, new Font[]{font}, haloWhite, FF.property(LABEL), labelLinePlacement, null);
textLineSymbolizer.setPriority(FF.literal(1));
// Invert both symbolizer to conserve text rendering on too small line (Mantis #51902)
styleLocationLine = createStyle(
"styleLocationLine",
createLineSymbolizer("symbolizerLocationLine", stroke),
textLineSymbolizer);
textLineSymbolizer,
createLineSymbolizer("symbolizerLocationLine", stroke));
// location Polygon style
TextSymbolizer textPolygonSymbolizer = SF.createTextSymbolizer(fillBlack, new Font[]{font}, haloWhite, FF.property(LABEL), middleTopPlacement, null);
......
......@@ -151,7 +151,9 @@ public class SurveysMapUIHandler extends AbstractDaliUIHandler<SurveysMapUIModel
checkVisibleEnvelope(Maps.transformReferencedEnvelope(envelope, DefaultGeographicCRS.WGS84));
// for test
// getUI().getMapEnvelopeLabel().setText(envelope.toString());
// DataMapPane map = getUI().getMapPane();
// double scale = RendererUtilities.calculateOGCScale(envelope, map.getWidth(), map.getRenderer().getRendererHints());
// getUI().getMapEnvelopeLabel().setText(envelope.toString() + " | scale=" + scale);
}
});
......
......@@ -535,6 +535,8 @@ public abstract class AbstractDaliTableUIHandler<R extends AbstractDaliRowUIMode
protected void removePmfmColumns() {
removeColumns(getModel().getPmfmColumns());
// Reset pmfm columns in model to avoid duplication (Mantis #51850)
getModel().getPmfmColumns().clear();
}
/**
......
......@@ -137,7 +137,7 @@
<maven.compiler.debug>true</maven.compiler.debug>
<!-- Quadrige3 Core -->
<quadrige3-core.version>3.6.13</quadrige3-core.version>
<quadrige3-core.version>3.6.15-SNAPSHOT</quadrige3-core.version>
<!-- Last Dali launcher version -->
<launcherVersion>2.1</launcherVersion>
......
......@@ -31,6 +31,21 @@
</properties>
<body>
<release version="5.1.4" date="2020-05-04" description="Stable release">
<action dev="ludovic.pecquot@e-is.pro" type="fix" issue="51602">
DaliStrategyDao: Change the way to delete pmfm strategies without hibernate
</action>
<action dev="ludovic.pecquot@e-is.pro" type="fix" issue="51902">
Map: change symbolizer order for location with line geometry
</action>
<action dev="ludovic.pecquot@e-is.pro" type="fix" issue="51850">
Table with pmfm columns is correctly reset after a save action
</action>
<action dev="ludovic.pecquot@e-is.pro" type="fix">
Upgrade quadrige3-core to version 3.6.15
</action>
</release>
<release version="5.1.3" date="2020-03-13" description="Stable release">
<action dev="ludovic.pecquot@e-is.pro" type="fix" issue="51493">
Upgrade quadrige3-core to version 3.6.13
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment