Skip to content

[ML] Duplicate influencers when cloning a population job #23480

@peteharverson

Description

@peteharverson

Found in: Version: 7.0.0-alpha1

When cloning a job created in the Population wizard which has multiple detectors using the same over / by fields, the influencer field names are duplicated.

For example, creating a job against the gallery dataset, with the following analysis config:

"analysis_config": {
    "bucket_span": "15m",
    "detectors": [
      {
        "detector_description": "count by method over clientip",
        "function": "count",
        "by_field_name": "method",
        "over_field_name": "clientip",
        "detector_index": 0
      },
      {
        "detector_description": "sum(bytes) by method over clientip",
        "function": "sum",
        "field_name": "bytes",
        "by_field_name": "method",
        "over_field_name": "clientip",
        "detector_index": 1
      }
    ],
    "influencers": [
      "method",
      "clientip"
    ]
  },

On cloning the job, the Population wizard opens, and each of the method and clientip influencers are duplicated:

image

and on saving, the influencers array contains duplicate field names:

"influencers": [
      "method",
      "clientip",
      "method",
      "clientip"
    ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    :mlFeature:Anomaly DetectionML anomaly detectionbugFixes for quality problems that affect the customer experience

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions