-
Notifications
You must be signed in to change notification settings - Fork 4
New endpoints for Json extraction #297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| @Override | ||
| public void recordDate(LastJsonExtractionModel extraction) { | ||
| // Crée un id unique à partir du questionnaire et du mode |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add some test
No description provided.