Skip to content

add two reprocess endpoints#425

Open
Hajarel-moukh wants to merge 11 commits intomainfrom
devReprocessRawDatas
Open

add two reprocess endpoints#425
Hajarel-moukh wants to merge 11 commits intomainfrom
devReprocessRawDatas

Conversation

@Hajarel-moukh
Copy link
Copy Markdown
Contributor

@Hajarel-moukh Hajarel-moukh commented Mar 10, 2026

Ajout de services de "reprocess" des données brutes vers le format Genesis.

Logique du reprocess

  • récupération des interrogations déjà traitées pour un questionnaire / collection instrument
  • reset des processDate
  • suppression des SurveyUnit correspondantes
  • relance du processRawData derrière

Copy link
Copy Markdown

@nsenave nsenave left a comment

Choose a reason for hiding this comment

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

quelques commentaires

@sonarqubecloud
Copy link
Copy Markdown

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.*;
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.

Wildcard

@Override
@Deprecated(since = "1.13.0")
public DataProcessResult processRawData(String campaignName, List<String> interrogationIdList, List<GenesisError> errors) throws GenesisException {
public DataProcessResult processRawData(String questionnaireId, List<String> interrogationIdList, List<GenesisError> errors) 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.

Issue: Cette méthode va être supprimée avec le nettoyage

Suggestion: Créer une nouvelle méthode byQuestionnaireId plutôt que modifier une méthode deprecated

import fr.insee.genesis.domain.model.surveyunit.Mode;
import fr.insee.genesis.domain.model.surveyunit.SurveyUnitModel;
import fr.insee.genesis.domain.model.surveyunit.VariableModel;
import fr.insee.genesis.domain.model.surveyunit.*;
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.

Wildcard

import java.util.Map;
import java.util.Set;
import java.time.format.DateTimeFormatter;
import java.util.*;
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.

wildcard

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.

3 participants