Skip to content

Code cleaning : Remove campaignId (except LunaticJsonRawData)#437

Open
alexisszmundy wants to merge 92 commits intomainfrom
removeCampaignId
Open

Code cleaning : Remove campaignId (except LunaticJsonRawData)#437
alexisszmundy wants to merge 92 commits intomainfrom
removeCampaignId

Conversation

@alexisszmundy
Copy link
Copy Markdown
Contributor

@alexisszmundy alexisszmundy commented Mar 27, 2026

⚠️ Comprend #423 et #435

@alexisszmundy alexisszmundy requested review from Hajarel-moukh, alicela and loichenninger and removed request for loichenninger March 27, 2026 13:39
Copy link
Copy Markdown
Contributor

@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.

relecture en diagonale surtout sur la partie main, looks good to me

import java.time.LocalDateTime;
import java.util.Map;

@Builder
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.

👍

} catch (IllegalArgumentException iae){
log.warn("'{}' is not a valid questionnaire state according to filiere model", questionnaireStateString);
}
} catch (NullPointerException ignored){} //WARN already done in getStringFieldInPayload
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.

ici certes ça va être refacto avec les exception handler, mais la bonne pratique depuis java 21 (ou 25 je sais plus) c'est d'utiliser le unnamed pattern + commentaire à mettre dans le bloc de code pour pas générer une issue sonar

catch (NullPointerException _) {
    // WARN already done in getStringFieldInPayload
}

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.

j'ai pas été voir mais à vérifier que le maven failsafe plugin est bien configuré pour run ces tests **IT.java

"logging.level.=DEBUG"
})
@EnableAutoConfiguration(exclude = {MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
public abstract class IntegrationTestAbstract {
Copy link
Copy Markdown
Contributor

@nsenave nsenave Apr 8, 2026

Choose a reason for hiding this comment

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

un peu mauvais signe d'avoir besoin d'une classe abstraite (donc de l'héritage j'imagine) côté tests

ça veut sans doute dire qu'on a des classes de service qui font trop de chose et qui tirent ont besoin de trop de choses

Juste une remarque au passage mais en l'état ok

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

c'est surtout pour éviter la duplication de code entre les tests d'intégration

Comment thread pom.xml
</executions>
<configuration>
<includes>
<include>**/*IT.java</include>
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.

cf. mon commentaire plus haut : looks good 😄

@sonarqubecloud
Copy link
Copy Markdown

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