-
Notifications
You must be signed in to change notification settings - Fork 42
Skip module deploy with parameter #1654
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
75030e4 to
80056b5
Compare
| if (moduleToDeployHelper.shouldSkipDeploy(module)) { | ||
| if (userMessageLogger != null) { | ||
| userMessageLogger.warn(MessageFormat.format("Module \"{0}\" will be skipped during deployment", module.getName())); | ||
| } | ||
| return false; | ||
| } |
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.
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
| return mtaModules.contains(deployedApplication.getModuleName()) || !deploymentDescriptorModuleNames.contains( | ||
| deployedApplication.getModuleName()) || deploymentDescriptorModules.stream() | ||
| .filter(module -> module.getName() | ||
| .equals( | ||
| deployedApplication.getModuleName())) | ||
| .anyMatch(moduleToDeployHelper::shouldSkipDeploy); |
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.
Can you simplify somehow this return because it's very nested
Yavor16
left a comment
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.
Reminder to squash before merge
...in/java/org/cloudfoundry/multiapps/controller/process/steps/BuildCloudUndeployModelStep.java
Outdated
Show resolved
Hide resolved
...in/java/org/cloudfoundry/multiapps/controller/process/steps/BuildCloudUndeployModelStep.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/cloudfoundry/multiapps/controller/process/steps/ProcessDescriptorStep.java
Outdated
Show resolved
Hide resolved
0f6a722 to
5e0a5d2
Compare
JIRA:LMCROSSITXSADEPLOY-3196
5e0a5d2 to
7eabe62
Compare
|


JIRA:LMCROSSITXSADEPLOY-3196
Description:
Issue: