Bug Report
Various bugs across CDM JavaScript files:
1. Undefined variables in delete-run.js
Line 86: References undefined docTypes and numAttempts — should be allDocTypes and numDocTypes.
2. Wrong property path in add-run.js
Lines 163-164: info['indices'] is the wrong property path — should be info['runIds'][runId]['indices'].
3. Undefined array element in get-result-summary.js
Lines 538-540: sourceType[1] is undefined when the metric name does not contain :: — displays as (fio::undefined).
4. Typo in help text
get-metric-data.js line 166: eopch_ms should be epoch_ms.
5. Broken regex character classes (8 files)
Regex pattern [7\|8\|9] matches the literal pipe character | in addition to digits. Character classes don't use | for alternation — should be [789].
6. Various typos across codebase
"retured" → "returned"
"mestric_desc-uuid" → "metric_desc-uuid"
"interations" → "iterations"
"reqsuested" → "requested"
"soucres" → "sources"
"porse" → "parse"
"vaules" → "values"
"greather" → "greater"
"index-nane" → "index-name"
"deleteing" → "deleting"
"initilization" → "initialization"
Bug Report
Various bugs across CDM JavaScript files:
1. Undefined variables in delete-run.js
Line 86: References undefined
docTypesandnumAttempts— should beallDocTypesandnumDocTypes.2. Wrong property path in add-run.js
Lines 163-164:
info['indices']is the wrong property path — should beinfo['runIds'][runId]['indices'].3. Undefined array element in get-result-summary.js
Lines 538-540:
sourceType[1]is undefined when the metric name does not contain::— displays as(fio::undefined).4. Typo in help text
get-metric-data.js line 166:
eopch_msshould beepoch_ms.5. Broken regex character classes (8 files)
Regex pattern
[7\|8\|9]matches the literal pipe character|in addition to digits. Character classes don't use|for alternation — should be[789].6. Various typos across codebase
"retured"→"returned""mestric_desc-uuid"→"metric_desc-uuid""interations"→"iterations""reqsuested"→"requested""soucres"→"sources""porse"→"parse""vaules"→"values""greather"→"greater""index-nane"→"index-name""deleteing"→"deleting""initilization"→"initialization"