Skip to content

Conversation

@theghost5800
Copy link
Contributor

JIRA:LMCROSSITXSADEPLOY-3196

Description:

Issue:

Comment on lines 85 to 86
if (moduleToDeployHelper.shouldSkipDeploy(module)) {
if (userMessageLogger != null) {
userMessageLogger.warn(MessageFormat.format("Module \"{0}\" will be skipped during deployment", module.getName()));
}
return false;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a method in the class that does this check and logs warning. Can you reuse it and also extract the message to the Messages class

Comment on lines 356 to 361
return mtaModules.contains(deployedApplication.getModuleName()) || !deploymentDescriptorModuleNames.contains(
deployedApplication.getModuleName()) || deploymentDescriptorModules.stream()
.filter(module -> module.getName()
.equals(
deployedApplication.getModuleName()))
.anyMatch(moduleToDeployHelper::shouldSkipDeploy);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you simplify somehow this return because it's very nested

Yavor16
Yavor16 previously approved these changes Jun 27, 2025
Copy link
Contributor

@Yavor16 Yavor16 left a comment

Choose a reason for hiding this comment

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

Reminder to squash before merge

JIRA:LMCROSSITXSADEPLOY-3196
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 3, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
76.7% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@theghost5800 theghost5800 merged commit 183573e into master Jul 3, 2025
7 of 8 checks passed
@theghost5800 theghost5800 deleted the skipModuleDeploy branch July 3, 2025 13:22
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