cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Merge by principal does not work for UserGroup | Bug in v1808

arvind-kumar_avinash
Active Contributor
0 Likes
1,694

The following code works as expected (i.e. the configured tabs will not be visible to BackofficeProductManager ) both in v6.7 and v1808.

  <context principal="BackofficeProductManager" merge-by="principal" parent="GenericItem" type="Product" component="editor-area" module="platformbackoffice">
      <editorArea:editorArea xmlns:editorArea="http://www.hybris.com/cockpitng/component/editorArea" name="">
          <editorArea:tab merge-mode="REMOVE" name="hmc.tab.attribute"/>
          <editorArea:tab merge-mode="REMOVE" name="hmc.tab.product.variants"/>
      </editorArea:editorArea>
  </context>

However, if you change the principal to backofficeproductmanagergroup, it works as expected in v6.7 but not in v1808. There are similar problems (given below) logged in JIRA and some have been marked as ''RESOLVED' but I did not find any ticket logged for this particular issue.

Please raise this bug in JIRA.

Best regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member625836
Active Contributor
0 Likes

Hi ,

It is not a bug at all. Two things I can already tell about your configuration:

  1. You ask algorithm to merge by principal, while still specify a parent as GenericItem which is actually a type code

  2. principal dimension may be set to particular user name or BackofficeRole- it will not work with pure UserGroup

Cheers, Jacek

mbjorkman
Explorer
0 Likes

Wow, this is great. Too bad I did not see this feature documented before.

https://help.hybris.com/1808/hcd/8b929ff186691014b99cb77661a3ed52.html

The documentation should be updated to include the support for merge-by principal instead of just stating module and type.

arvind-kumar_avinash
Active Contributor
0 Likes

Hi - But, why does it work with pure UserGroup ( i.e. backofficeproductmanagergroup ) in v6.7? With your logic, it is still a bug in v6.7.

former_member625836
Active Contributor
0 Likes

I cannot tell you, but my guts feeling is that it didn't work. As far as I know there were no changes in this mechanism since 6.0.

arvind-kumar_avinash
Active Contributor
0 Likes

Hi - I have already tested it in v6.7 and it worked every time. It will take only a few minutes to test it if you have v6.7. I request you to test it and log a bug if you have access to log a defect in https://jira.hybris.com/