Skip to content

New endpoints for Json extraction#297

Merged
loichenninger merged 9 commits into
mainfrom
devJsonExtraction
Oct 17, 2025
Merged

New endpoints for Json extraction#297
loichenninger merged 9 commits into
mainfrom
devJsonExtraction

Conversation

@loichenninger

Copy link
Copy Markdown
Contributor

No description provided.


@Override
public void recordDate(LastJsonExtractionModel extraction) {
// Crée un id unique à partir du questionnaire et du mode

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in english !

@Override
public void recordDate(LastJsonExtractionModel extraction) {
// Crée un id unique à partir du questionnaire et du mode
extraction.setId(extraction.getQuestionnaireModelId() + "_" + extraction.getMode());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extraction.setId(String.format("%s_%s",
extraction.getQuestionnaireModelId(),
extraction.getMode()));


@Override
public List<InterrogationId> findDistinctInterrogationIdsByQuestionnaireIdAndDateAfter(String questionnaireId, LocalDateTime since) {
List<SurveyUnitModel> surveyUnitModels = surveyUnitPersistencePort.findInterrogationIdsByQuestionnaireIdAndDateAfter(questionnaireId, since);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return surveyUnitPersistencePort
.findInterrogationIdsByQuestionnaireIdAndDateAfter(questionnaireId, since)
.stream()
.map(su -> new InterrogationId(su.getInterrogationId()))
.distinct()
.toList();


@Override
public LastJsonExtractionModel getLastExecutionDate(String questionnaireModelId, Mode mode) throws GenesisException {
String id = questionnaireModelId + "_" + mode;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use format

}

@Override
public LastJsonExtractionModel getLastExecutionDate(String questionnaireModelId, Mode mode) throws GenesisException {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add some test

}

@Override
public List<InterrogationId> findDistinctInterrogationIdsByQuestionnaireIdAndDateAfter(String questionnaireId, LocalDateTime since) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add some test

@loichenninger loichenninger merged commit 049050c into main Oct 17, 2025
8 checks passed
@loichenninger loichenninger deleted the devJsonExtraction branch October 17, 2025 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants