This page provides the solution to the problem of the Architecture Rules coming up on the dashboard and showing violations even though the Architecture models have been removed from the CAST-MS for the current snapshot.
Refer to the below screenshot:
Release | Yes/No |
---|---|
8.3.x |
RDBMS | Yes/No |
---|---|
CSS |
Below is the step-by-step scenario leading to the problem:
- Configure some Architecture Model in the CAST-MS.
- Take snapshot of application.
- Open dashboard and Architecture Rules will come up on dashboard.
- Remove the Architecture Model from CAST-MS and synchronize.
- Take snapshot.
- Open dashboard and still the Architecture Rules will come on dashboard.
The impact of the problem on the analysis or the dashboard is: The Quality Rules of Architecture Model will show violations on the dashboard even when they are not configured.
To fix the problem, proceed as follows :
NOTE : Please take a backup of CB before performing the below mentioned changes.
Get the METRIC_ID of the Quality Rule from CB. Run the below query for that:
select metric_id from dss_metric_descriptions where lower(metric_description) like '%<Description of the rule>%';
Example :
select metric_id from dss_metric_descriptions where lower(metric_description) like '%architecture check%';
Query Result :
Query result example66031
66031
Get the metric_id from the above query and put it in the query below :
select * from DSS_METRIC_TYPE_TREES where metric_id in (<metric_id from above query>);
Example :
select * from DSS_METRIC_TYPE_TREES where metric_id in (66031);
Query Result :
Query result example66030;66031;1;1;"DSS_METRIC_SCOPE_PROPAGATE";"ADG_CENTRAL_SCOPE_INIT";0This will return the rows with the QR's that are metrics of Architecture model
Now run the below query to remove the Architecture Model metrics from the schema :
delete from DSS_METRIC_TYPE_TREES where metric_id in (< metric_id >);
Impact of the solution on the analysis or the dashboard is: After applying the above workaround, the Architecture Rules will not come on the dashboard. This is permanently fixed in CAST AIP version 8.2.9