Skip to content

Commit a9af222

Browse files
committed
Merge branch 'main' into fixProcessRawData
2 parents 010a7c1 + 77a1d0b commit a9af222

197 files changed

Lines changed: 45725 additions & 1372 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/create-release.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Print source version
4242
run: echo ${{ steps.version-step.outputs.newTag }}
4343

44-
- uses: mukunku/tag-exists-action@v1.6.0
44+
- uses: mukunku/tag-exists-action@v1.7.0
4545
name: Check tag existence
4646
id: check-tag-exists
4747
with:
@@ -63,12 +63,16 @@ jobs:
6363
needs: check-version
6464
runs-on: ubuntu-latest
6565
steps:
66+
- uses: actions/checkout@v6
6667
- name: Set up JDK 21
6768
uses: actions/setup-java@v5
6869
with:
6970
distribution: 'temurin'
7071
java-version: '21'
7172

73+
- name: install model filiere
74+
run: mvn install:install-file -Dfile="$(pwd)/libs/modelefiliere-2.1.0.jar" -DgroupId=fr.insee -DartifactId=modelefiliere -Dversion=2.1.0 -Dpackaging=jar -DgeneratePom=true
75+
7276
- name: Clone BPM
7377
uses: actions/checkout@v6
7478
with:
@@ -89,7 +93,7 @@ jobs:
8993
mvn package --no-transfer-progress
9094
9195
- name: Upload app jar
92-
uses: actions/upload-artifact@v5
96+
uses: actions/upload-artifact@v6
9397
with:
9498
name: app-jar
9599
path: target/*.jar
@@ -165,7 +169,7 @@ jobs:
165169
- uses: actions/checkout@v6
166170

167171
- name: Download uploaded jar
168-
uses: actions/download-artifact@v6
172+
uses: actions/download-artifact@v7
169173
with:
170174
name: app-jar
171175
path: target/

.github/workflows/docker.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
distribution: "temurin"
2727
java-version: "21"
2828

29+
- name: install model filiere
30+
run: mvn install:install-file -Dfile="$(pwd)/libs/modelefiliere-2.1.0.jar" -DgroupId=fr.insee -DartifactId=modelefiliere -Dversion=2.1.0 -Dpackaging=jar -DgeneratePom=true
31+
2932
- name: Clone BPM
3033
uses: actions/checkout@master
3134
with:
@@ -42,7 +45,7 @@ jobs:
4245
run: mvn package --no-transfer-progress
4346

4447
- name: Upload API jar
45-
uses: actions/upload-artifact@v5
48+
uses: actions/upload-artifact@v6
4649
with:
4750
name: app-jar
4851
path: target/*.jar
@@ -55,7 +58,7 @@ jobs:
5558
- uses: actions/checkout@v6
5659

5760
- name: Download uploaded jar
58-
uses: actions/download-artifact@v6
61+
uses: actions/download-artifact@v7
5962
with:
6063
name: app-jar
6164
path: target/

.github/workflows/maven.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
push:
1313
branches: [ "main" ]
1414
pull_request:
15-
branches: [ "main" ]
15+
types: [opened, reopened, synchronize]
1616

1717
jobs:
1818
build:
@@ -29,6 +29,9 @@ jobs:
2929
distribution: 'temurin'
3030
cache: maven
3131

32+
- name: install model filiere
33+
run: mvn install:install-file -Dfile="$(pwd)/libs/modelefiliere-2.1.0.jar" -DgroupId=fr.insee -DartifactId=modelefiliere -Dversion=2.1.0 -Dpackaging=jar -DgeneratePom=true
34+
3235
- name: Clone BPM
3336
uses: actions/checkout@master
3437
with:

.github/workflows/scheduled-version-update.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ jobs:
8585
fi
8686
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
8787
88+
- name: install model filiere
89+
run: |
90+
mvn install:install-file -Dfile="$(pwd)/genesis/libs/modelefiliere-2.1.0.jar" -DgroupId=fr.insee -DartifactId=modelefiliere -Dversion=2.1.0 -Dpackaging=jar -DgeneratePom=true
91+
8892
- name: Clone BPM
8993
uses: actions/checkout@master
9094
with:
@@ -173,7 +177,7 @@ jobs:
173177
174178
- name: Create Pull Request
175179
id: create_pr
176-
uses: peter-evans/create-pull-request@v7
180+
uses: peter-evans/create-pull-request@v8
177181
with:
178182
path: genesis
179183
token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip
2+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.4/maven-wrapper-3.3.4.jar
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Unit tests GENESIS" type="JUnit" factoryName="JUnit">
3+
<module name="genesis-api" />
4+
<option name="PACKAGE_NAME" value="fr.insee.genesis" />
5+
<option name="MAIN_CLASS_NAME" value="" />
6+
<option name="METHOD_NAME" value="" />
7+
<option name="TEST_OBJECT" value="directory" />
8+
<dir value="$PROJECT_DIR$/src/test/java/fr/insee/genesis" />
9+
<method v="2">
10+
<option name="Make" enabled="true" />
11+
</method>
12+
</configuration>
13+
</component>

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
# Changelog
2+
## 2.0.1 [TODO]
3+
### Fixed
4+
- Crash when get questionnaireIds by null processDate with too much raw datas in lunaticjsondata
5+
6+
## 2.0.0 [2026-01-07]
7+
### Changed
8+
- Use filière model
9+
210
## 1.13.0 [2025-12-04]
311
### Changed
412
- New raw data process endpoint

libs/modelefiliere-2.1.0.jar

177 KB
Binary file not shown.

pom.xml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>fr.insee.genesis</groupId>
66
<artifactId>genesis-api</artifactId>
7-
<version>1.13.0</version>
7+
<version>2.0.0</version>
88
<packaging>jar</packaging>
99
<name>genesis-api</name>
1010

1111
<parent>
1212
<groupId>org.springframework.boot</groupId>
1313
<artifactId>spring-boot-starter-parent</artifactId>
14-
<version>3.5.8</version>
14+
<version>3.5.9</version>
1515
</parent>
1616

1717
<properties>
1818
<java.version>21</java.version>
19-
<springdoc.version>2.8.14</springdoc.version>
19+
<springdoc.version>2.8.15</springdoc.version>
2020
<mapstruct.version>1.6.3</mapstruct.version>
21-
<cucumber.version>7.32.0</cucumber.version>
21+
<cucumber.version>7.33.0</cucumber.version>
2222
<junit-jupiter.version>5.13.4</junit-jupiter.version>
2323

2424
<!-- Proprietes sonar -->
@@ -36,7 +36,7 @@
3636
<pitest.version>1.22.0</pitest.version>
3737
<pitest.junit.version>1.2.3</pitest.junit.version>
3838
<jackson.version>2.19.0</jackson.version>
39-
<bpm.version>1.0.20</bpm.version>
39+
<bpm.version>1.0.23</bpm.version>
4040
</properties>
4141
<dependencies>
4242
<dependency>
@@ -98,7 +98,11 @@
9898
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
9999
<version>${springdoc.version}</version>
100100
</dependency>
101-
101+
<dependency>
102+
<groupId>fr.insee</groupId>
103+
<artifactId>modelefiliere</artifactId>
104+
<version>2.1.0</version>
105+
</dependency>
102106
<!-- XML libraries -->
103107
<!-- XML-XSLT with Saxon -->
104108
<dependency>
@@ -111,7 +115,7 @@
111115
<dependency>
112116
<groupId>com.networknt</groupId>
113117
<artifactId>json-schema-validator</artifactId>
114-
<version>2.0.0</version>
118+
<version>2.0.1</version>
115119
</dependency>
116120

117121
<!-- generate implementation auto -->
@@ -173,7 +177,7 @@
173177
<plugin>
174178
<groupId>org.sonarsource.scanner.maven</groupId>
175179
<artifactId>sonar-maven-plugin</artifactId>
176-
<version>5.4.0.6343</version>
180+
<version>5.5.0.6356</version>
177181
</plugin>
178182
<plugin>
179183
<groupId>org.jacoco</groupId>

src/main/java/fr/insee/genesis/Constants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ public class Constants {
2323
public static final String MONGODB_CONTEXTUAL_EXTERNAL_COLLECTION_NAME = "editedExternal";
2424
public static final String LOOP_NAME_PREFIX = "BOUCLE";
2525
public static final String MONGODB_RESPONSE_COLLECTION_NAME = "responses";
26-
public static final String MONGODB_RESPONSE_RAW_COLLECTION_NAME = "lunaticjsondata";
27-
public static final String MONGODB_VARIABLETYPE_COLLECTION_NAME = "variabletypes";
26+
public static final String MONGODB_RAW_RESPONSES_COLLECTION_NAME = "rawResponses";
2827
public static final String VOLUMETRY_FOLDER_NAME = "genesis_volumetries";
2928
public static final String VOLUMETRY_FILE_SUFFIX = "_VOLUMETRY";
3029
public static final String VOLUMETRY_RAW_FILE_SUFFIX = "_RAW_VOLUMETRY";
@@ -60,6 +59,7 @@ public class Constants {
6059
// Data extraction parameters
6160
public static final int BATCH_SIZE = 100; //Adapt to avoid OutOfMemoryException
6261
public static final String DIFFERENTIAL_DATA_FOLDER_NAME = "differential/data";
62+
public static final String CONTEXTUAL_FOLDER = "/contextual";
6363

6464
// Kraftwerk service path parameters
6565
public static final String KRAFTWERK_MAIN_ENDPOINT = "";

0 commit comments

Comments
 (0)