Skip to content

Commit 0f10c2d

Browse files
authored
Merge pull request #390 from InseeFr/bugLinkVar
2.1.2 - correcte number of iterations and link variable number
2 parents a3bed20 + 3c5d717 commit 0f10c2d

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
## 2.1.2 [2026-01-26]
3+
### Fixed
4+
- Fixed numbers for pairwise
5+
26
## 2.1.0 [2026-01-15]
37
### Added
48
- rawResponses payload.campaignId indexing

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>fr.insee.genesis</groupId>
66
<artifactId>genesis-api</artifactId>
7-
<version>2.1.1</version>
7+
<version>2.1.2</version>
88
<packaging>jar</packaging>
99
<name>genesis-api</name>
1010

src/main/java/fr/insee/genesis/domain/service/rawdata/RawResponseService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,9 +561,9 @@ static void handlePairwiseCollectedVariable(
561561
for (int individualIndex = 0; individualIndex < individuals.size(); individualIndex++) {
562562
List<String> individualLinks = (List<String>) individuals.get(individualIndex);
563563

564-
for (int linkIndex = 1; linkIndex <= Constants.MAX_LINKS_ALLOWED; linkIndex++) {
564+
for (int linkIndex = 1; linkIndex < Constants.MAX_LINKS_ALLOWED; linkIndex++) {
565565
dstSurveyUnitModel.getCollectedVariables().add(
566-
buildPairwiseVariable(individualLinks, linkIndex, individualIndex, groupName)
566+
buildPairwiseVariable(individualLinks, linkIndex, individualIndex+ 1, groupName)
567567
);
568568
}
569569
}

0 commit comments

Comments
 (0)