Purpose (problem description)
This page handle the issue of false violation for the Quality rule "Avoid Classes with a High Number Of Children"
Observed in CAST AIP
Release | Yes/No |
---|---|
8.3.x |
Observed on RDBMS
RDBMS | Yes/No |
---|---|
CSS |
Step by Step scenario
- Compute snapshot
- Open CED
- Observe that the violation "Avoid Classes with a High Number Of Children" is a false one
Action Plan
Perform the below actions
Check if the number of children computed in the KB is correct -
Run the below query on Knowledge Base -Select NUM_CHILDREN from DSSAPP_CLASSES WHERE OBJECT_ID = <OBJECT_ID>
Get the OBJECT_ID from page - SQL Queries - CAST Knowledge Base - Queries on objects - How to get the ID of an object from its object name or full name
If the NUM_CHILDREN is not correctly computed then this is a known bug fixed in 8.3.0, for moe information refer to Resolved issues in this release, If you are in a version < 8.3.0 then apply the below work around -
- Install the procedure DSSAPP_SCOPE_INIT_CPPABSTCLASSES.sql on the knowledge schema
- Compute snapshot by skipping analysis.
- Open CED
- If you are using an AIP version >=8.3.0 or if you are using an AIP version 8.1 or 8.2 and the above steps do not resolve your issue then refer to CAST Engineering Dashboard - Violations - False violation or no violation
Notes/comments
Ticket # 10737
Related Pages
Specify pages indirectly related to this topic.(eg:side- effects)