Issue description
LOC (line of code) values reported by the Technical Size tile in the Management Dashboard now use the metric ID 66071 which is generated by CAST Imaging/CAST Console during the application onboarding process (when using fastscan mode). In previous releases, the CAST Management Dashboard exclusively used the metric ID 10151 which was generated only during the analysis. If the issue is present, the Technical Size tile will show no value at all and you will need to perform a manual update to ensure the correct metric ID is configured in your Dashboard (see below).
This change may impact you depending on the combination of CAST Imaging v3 / CAST Console and CAST Dashboard releases you are using:
Using standalone dashboard v. 2.13 or newer
- Using CAST Imaging v3: CAST Imaging generates the metric ID 66071 and this will be accepted and displayed by the CAST Management Dashboard with no changes required.
- Using CAST Console V2 (2.11.9 and above): CAST Console generates the metric ID 66071 and this will be accepted and displayed by the CAST Management Dashboard. in this scenario, users need to re-analyze their application after upgrade to CAST Console 2.11.9 to ensure that the new metric is generated.
- Using CAST Console V2 (older than 2.11.9): CAST Console generates the metric ID 10151, whereas the CAST Management Dashboard accepts only metric ID 66071, therefore in this scenario, a manual update to a CAST Management Dashboard .json file is required before the Technical Size tile can show a value. This update is explained below.
Using standalone dashboard v. 2.12 or older
- Using CAST Imaging v3: CAST Imaging generates the metric ID 66071, whereas the CAST Management Dashboard accepts only metric ID 10151, therefore in this scenario, a manual update to a CAST Management Dashboard .json file is required before the Technical Size tile can show a value. This update is explained below.
- Using CAST Console V2 (2.11.9 and above): CAST Console generates the metric ID 66071, whereas the CAST Management Dashboard accepts only metric ID 10151, therefore in this scenario, a manual update to a CAST Management Dashboard .json file is required before the Technical Size tile can show a value. This update is explained below.
- Using CAST Console V2 (older than 2.11.9): CAST Console generates the metric ID 10151 and this will be accepted and displayed by the CAST Management Dashboard with no changes required.
Manual update to the .json file
The files governing which metric ID is used in the Technical Size tile are located here:
WAR CATALINA_HOME\webapps\CAST-Health\WEB-INF\classes\config\hd\cmp.json / cmp-ISO.json CATALINA_HOME\webapps\CAST-Health\WEB-INF\classes\config\hd\app.json / app-ISO.json Installed JAR <installed_data_folder>\config\hd\cmp.json / cmp-ISO.json installed_data_folder>\config\hd\app.json / app-ISO.json
You will need to open each one and search for a tile configuration called "SizingMeasureResult/Technical Size" or "SizingMeasureResults/Technical Size", for example:
{ "id": 102, "plugin": "SizingMeasureResult", "color": "blue", "parameters": { "title": "Technical Size", "sizingMeasure": { "id": "66071|LINES_OF_CODE", "format": "0,000", "description": "Lines of Code" } } },
The "sizingMeasure":"id" will be set to 66071 in CAST Dashboards 2.13, and it will be set to LINES_OF_CODE (10151) in older releases of the dashboard. Update this value to whichever ID you require according to the scenarios listed above. Save the file and then restart the dashboard service to ensure the change is taken into account. You may also need to re-analyze your application.