Skip to content

Commit 4e7f9d8

Browse files
authored
Merge branch 'main' into FilterBasedContingencyList
2 parents afd87a4 + 2e19dec commit 4e7f9d8

File tree

7 files changed

+28
-9
lines changed

7 files changed

+28
-9
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
uses: powsybl/github-ci/.github/workflows/build-backend-app-generic.yml@69b162754c0728d9aeb2ea568eaf47f28f60fafb
11+
uses: powsybl/github-ci/.github/workflows/build-backend-app-generic.yml@aaae75875296657028f2805e7a3fbdb1418b8b95
1212
with:
1313
dockerImage: docker.io/gridsuite/filter-server
1414
dockerUsername: gridsuiteci

.github/workflows/patch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
run-patch:
12-
uses: powsybl/github-ci/.github/workflows/patch-backend-app-generic.yml@69b162754c0728d9aeb2ea568eaf47f28f60fafb
12+
uses: powsybl/github-ci/.github/workflows/patch-backend-app-generic.yml@aaae75875296657028f2805e7a3fbdb1418b8b95
1313
with:
1414
githubappId: ${{ vars.GRIDSUITE_ACTIONS_APPID }}
1515
dockerImage: docker.io/gridsuite/filter-server

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
jobs:
1414
run-release:
15-
uses: powsybl/github-ci/.github/workflows/release-backend-app-generic.yml@69b162754c0728d9aeb2ea568eaf47f28f60fafb
15+
uses: powsybl/github-ci/.github/workflows/release-backend-app-generic.yml@aaae75875296657028f2805e7a3fbdb1418b8b95
1616
with:
1717
githubappId: ${{ vars.GRIDSUITE_ACTIONS_APPID }}
1818
dockerImage: docker.io/gridsuite/filter-server

pom.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<groupId>org.gridsuite</groupId>
2121
<artifactId>gridsuite-filter-server</artifactId>
22-
<version>2.23.0-SNAPSHOT</version>
22+
<version>2.24.0-SNAPSHOT</version>
2323

2424
<packaging>jar</packaging>
2525
<name>Filter server</name>
@@ -42,9 +42,7 @@
4242
</developers>
4343

4444
<properties>
45-
<gridsuite-dependencies.version>42.0.0</gridsuite-dependencies.version>
46-
<!-- FIXME to remove at next upgrade of powsybl-ws-dependencies -->
47-
<gridsuite-filter.version>1.7.0</gridsuite-filter.version>
45+
<gridsuite-dependencies.version>43.0.0</gridsuite-dependencies.version>
4846

4947
<string-template.version>4.3.1</string-template.version>
5048
<liquibase-hibernate-package>org.gridsuite.filter.server</liquibase-hibernate-package>
@@ -107,7 +105,6 @@
107105
<dependency>
108106
<groupId>org.gridsuite</groupId>
109107
<artifactId>gridsuite-filter</artifactId>
110-
<version>${gridsuite-filter.version}</version>
111108
</dependency>
112109
<dependency>
113110
<groupId>com.fasterxml.jackson.core</groupId>

src/main/java/org/gridsuite/filter/server/entities/identifierlistfilter/IdentifierListFilterEntity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ public class IdentifierListFilterEntity extends AbstractFilterEntity {
3434
private EquipmentType equipmentType;
3535

3636
@OneToMany(cascade = CascadeType.ALL)
37+
@OrderColumn(name = "equipmentId_order")
3738
private List<IdentifierListFilterEquipmentEntity> filterEquipmentEntityList;
3839
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
2+
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
3+
<changeSet author="braquartdav (generated)" id="1756286054988-1">
4+
<addColumn tableName="identifier_list_filter_filter_equipment_entity_list">
5+
<column name="equipment_id_order" type="integer"/>
6+
</addColumn>
7+
<!-- mandatory: init this new column with a default order -->
8+
<sql dbms="postgresql">
9+
WITH ordered_filters AS (
10+
SELECT filter_equipment_entity_list_id, ROW_NUMBER() OVER (PARTITION BY identifier_list_filter_entity_id ORDER BY filter_equipment_entity_list_id) - 1 as id_order
11+
FROM identifier_list_filter_filter_equipment_entity_list
12+
)
13+
UPDATE identifier_list_filter_filter_equipment_entity_list f
14+
SET equipment_id_order = of.id_order
15+
FROM ordered_filters of
16+
WHERE f.filter_equipment_entity_list_id = of.filter_equipment_entity_list_id;
17+
</sql>
18+
</changeSet>
19+
</databaseChangeLog>

src/main/resources/db/changelog/db.changelog-master.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,6 @@ databaseChangeLog:
5858
- include:
5959
file: changesets/changelog_20250704T101510Z.xml
6060
relativeToChangelogFile: true
61-
61+
- include:
62+
file: changesets/changelog_20250827T091345Z.xml
63+
relativeToChangelogFile: true

0 commit comments

Comments
 (0)