-
Notifications
You must be signed in to change notification settings - Fork 4
New endpoint that exposes the list of processed idInterrogations in last hours by questionnaire #240
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
Merged
Merged
New endpoint that exposes the list of processed idInterrogations in last hours by questionnaire #240
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6649e3c
feat: endpoint that exposes processed idInterrogations in last hours
loichenninger 0e2404a
feat: filter questionnaire with isReview
loichenninger 5edbd39
Merge branch 'main' into devNewDailyIds
loichenninger c0cb42d
chore: transform class to record + tests
loichenninger d75bfdd
chore: remove unused imports
loichenninger ced5f02
perf: add index to processDate
loichenninger c9accd9
chore: remove useless method
loichenninger 9d6220d
chore: provide stub functional implementation
loichenninger c0b310a
Merge branch 'main' into devNewDailyIds
loichenninger 6cbce43
chore: change authorization on new endpoint
loichenninger 0cddc9a
Merge branch 'main' into devNewDailyIds
alexisszmundy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/main/java/fr/insee/genesis/controller/rest/responses/InterrogationController.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/fr/insee/genesis/domain/model/surveyunit/GroupedInterrogation.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| package fr.insee.genesis.domain.model.surveyunit; | ||
|
|
||
| import lombok.Builder; | ||
|
|
||
| import java.util.List; | ||
|
|
||
|
|
||
| @Builder | ||
| public record GroupedInterrogation( | ||
| String questionnaireId, | ||
| String partitionOrCampaignId, | ||
| List<String> interrogationIds | ||
| ){} |
2 changes: 1 addition & 1 deletion
2
...nesis/controller/dto/InterrogationId.java → ...ain/model/surveyunit/InterrogationId.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...ava/fr/insee/genesis/infrastructure/document/surveyunit/GroupedInterrogationDocument.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| package fr.insee.genesis.infrastructure.document.surveyunit; | ||
|
|
||
| import lombok.Data; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| @Data | ||
| public class GroupedInterrogationDocument { | ||
|
|
||
| private String questionnaireId; | ||
| private String partitionOrCampaignId; | ||
| private List<String> interrogationIds; | ||
| } |
23 changes: 23 additions & 0 deletions
23
...main/java/fr/insee/genesis/infrastructure/mappers/GroupedInterrogationDocumentMapper.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| package fr.insee.genesis.infrastructure.mappers; | ||
|
|
||
| import fr.insee.genesis.domain.model.surveyunit.GroupedInterrogation; | ||
| import fr.insee.genesis.infrastructure.document.surveyunit.GroupedInterrogationDocument; | ||
| import org.mapstruct.Mapper; | ||
| import org.mapstruct.factory.Mappers; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| @Mapper | ||
| public interface GroupedInterrogationDocumentMapper { | ||
|
|
||
|
|
||
| GroupedInterrogationDocumentMapper INSTANCE = Mappers.getMapper(GroupedInterrogationDocumentMapper.class); | ||
|
|
||
| GroupedInterrogation documentToModel(GroupedInterrogationDocument interrogationIdDoc); | ||
|
|
||
| GroupedInterrogationDocument modelToDocument(GroupedInterrogation interrogationId); | ||
|
|
||
| List<GroupedInterrogation> listDocumentToListModel(List<GroupedInterrogationDocument> interrogationIdDocList); | ||
|
|
||
| List<GroupedInterrogationDocument> listModelToListDocument(List<GroupedInterrogation> interrogationIdList); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.