Skip to content

fix: CDM delete-run undefined vars, regex bugs, and typos #195

Description

@k-rister

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Queued

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions