on ‎2018 Aug 29 6:59 PM
Hybris 6.7 I am trying to enable coverage rules for product I Imported productcockpit-constraints.impex even i didn't get any updates on product coverage on attributes like description , name etcc...
Request clarification before answering.
Hi ,
I don't know your configuration exactly, but if I was to guess, I would say that you are missing validation groups in your constraints definition. SummaryView widget allows to point to specific groups of constraints that you wish to use for quality calculation (to be precise: a domain id of groups). You can check this document to read about how to register new groups/domains in data coverage framework. Please use a approach used in section "Installing a Calculation Strategy for a Specific Type and/or Domain" or use the one usd in pcmbackofficesampleaddon:
<cng:list-extender bean="defaultCoverageCalculationStrategyRegistry" property="domainStrategies"
getter="@domainStrategiesList">
<cng:add>
<bean class="de.hybris.platform.validation.coverage.strategies.impl.CoverageCalculationStrategyMapping">
<property name="domainID" value="NEW_COVERAGE_DOMAIN_ID"/>
<property name="strategyMap">
<map>
<entry key="Product">
<bean class="de.hybris.platform.validation.coverage.strategies.impl.ValidationBasedCoverageCalculationStrategy">
<property name="validationService" ref="validationService"/>
<property name="typeService" ref="typeService"/>
<property name="coverageConstraintGroupDao" ref="coverageConstraintGroupDao"/>
<property name="sortProperties" value="true"/>
<property name="constraintGroupID" value="CONTRAINT_GROUP_ID"/>
</bean>
</entry>
</map>
</property>
</bean>
</cng:add>
</cng:list-extender>
Please notice that there are two values to be replaced in snippet above:
NEW_COVERAGE_DOMAIN_ID any unique string value that will be used in SummaryView configuration
CONTRAINT_GROUP_ID a value of id attribute of an existing constraint group
Whichever approach you will choose, you may then use created domain id in SummaryView configuration:
<context component="pcmbackoffice-summary-view" type="Product">
<summary-view:summary-view xmlns:summary-view="http://www.hybris.com/cockpitng/component/summaryview">
<summary-view:section name="summaryview.section.dataquality">
<summary-view:data-quality-group label="summaryview.qualitygroup.core" domain-id="NEW_COVERAGE_DOMAIN_ID" warning="0.7" error="0.3"/>
</summary-view:section>
</summary-view:summary-view>
</context>
Cheers, Jacek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you mean the new coverage feature in the backoffice PCM, you can find the sample coverage rules in in the pcmbackofficesamplesaddon, more specifically, in .../pcmbackofficesamplesaddon/resources/pcmbackofficesamplesaddon/import/common/common-addon-extra.impex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.