Skip to content
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

[RHDM-871] Missing property org.kie.workbench.profile in DecisionCent… #177

Merged
merged 1 commit into from Mar 11, 2019

Conversation

jakubschwan
Copy link
Contributor

…ral OpenShift image
https://issues.jboss.org/browse/RHDM-871
Signed-off-by: Jakub Schwan jschwan@redhat.com

Thanks for submitting your Pull Request!

Please make sure your PR meets the following requirements:

  • Pull Request title is properly formatted: [RHDM-XYZ] Subject or [RHPAM-XYZ] Subject
  • Pull Request contains link to the JIRA issue
  • Pull Request contains description of the issue
  • Pull Request does not include fixes for issues other than the main ticket
  • Attached commits represent units of work and are properly formatted
  • You have read and agreed to the Developer Certificate of Origin (DCO) (see CONTRIBUTING.md)
  • Every commit contains Signed-off-by: Your Name <yourname@example.com> - use git commit -s

# Business Central is unified for RHDM and RHPAM; For rhpam-decisioncentral image needs to be set
# org.kie.workbench.profile to FORCE_PLANNER_AND_RULES
if [[ $JBOSS_PRODUCT =~ rhdm\-decisioncentral? ]]; then
JBOSS_KIE_ARGS="${JBOSS_KIE_ARGS} -Dorg.kie.workbench.profile=FORCE_PLANNER_AND_RULES"
Copy link
Contributor

Choose a reason for hiding this comment

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

For RHPAM the org.kie.workbench.profile should be set to FORCE_FULL, to have same configuration as in on premise.

@jakubschwan jakubschwan force-pushed the master branch 2 times, most recently from e6d8207 to d63341a Compare March 11, 2019 16:37
Copy link
Collaborator

@errantepiphany errantepiphany left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, @jakubschwan . Please seem my comment on the regular expression. Also, We will need a separate PR for the 7.3.x branch (as this one is for master).

# Business Central is unified for RHDM and RHPAM; For rhpam-decisioncentral needs to be set org.kie.workbench.profile
# to FORCE_PLANNER_AND_RULES and for rhpam-businesscentral and rhpam-businesscentral-monitoring needst to be set to
# FORCE_FULL
if [[ $JBOSS_PRODUCT =~ rhdm\-decisioncentral? ]]; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

The regular expression on this line is incorrect, as the question mark at the end means that the final character (the lowercase letter L) is optional. (Zero or one occurrences.) Instead, no regular expression is needed here, and the check can just be of full string equality:
if [ "$JBOSS_PRODUCT" = "rhdm-decisioncentral" ]; then

The reason that there is a question mark in the business central case is that the entire grouping of (\-monitoring) can happen zero or one times, so that both "rhpam-businesscentral" and "rhpam-businesscentral-monitoring" would match. The "zero or one occurrence" affects everything in the parenthesis, whereas without the parenthesis, it would only apply to the last character.

…ral OpenShift image

Signed-off-by: Jakub Schwan <jschwan@redhat.com>
@jakubschwan
Copy link
Contributor Author

@errantepiphany thanks for review, PR adjusted and new one for 7.3.x branch was opened (#178)

@errantepiphany errantepiphany merged commit 6e69054 into jboss-container-images:master Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants