Skip to content

Commit c63663d

Browse files
committed
fix: using collection instrument id to retrieve data context processing
1 parent 595e3ea commit c63663d

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Changelog
2+
3+
## 2.1.3 [2026-02-02]
4+
### Fixed
5+
- Fixed the way we retrieve the data processing context when we process raw responses
6+
27
## 2.1.2 [2026-01-26]
38
### Fixed
49
- Fixed numbers for pairwise

src/main/java/fr/insee/genesis/domain/service/context/DataProcessingContextService.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,8 @@ public DataProcessingContextModel getContext(String interrogationId) throws Gene
256256

257257
@Override
258258
public DataProcessingContextModel getContextByCollectionInstrumentId(String collectionInstrumentId){
259-
return DataProcessingContextMapper.INSTANCE.documentToModel(
260-
dataProcessingContextPersistancePort.findByPartitionId(collectionInstrumentId)
261-
);
259+
return dataProcessingContextPersistancePort.findByCollectionInstrumentId(collectionInstrumentId)
260+
;
262261
}
263262

264263
@Override

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ public DataProcessResult processRawResponses(String collectionInstrumentId, List
127127
//Send processed ids grouped by questionnaire (if review activated)
128128
if(dataProcessingContext != null && dataProcessingContext.isWithReview()) {
129129
sendProcessedIdsToQualityTool(surveyUnitModels);
130+
} else {
131+
log.warn("Data processing context not found for collection instrument {}. Ids processed not send to quality tool.",collectionInstrumentId);
130132
}
131133

132134
//Remove processed ids from list

0 commit comments

Comments
 (0)