Skip to content

YAML deploy of derived metrics failed when the namespace is new #1775

@anhqle

Description

@anhqle

Consider the following derived metric, namespace.derived, which is defined as namespace.metric * 2

There are 2 dependencies: namespace.metric and namespace (where namespace is speculatively a dependency because of the rsplit code to accommodate the case where it's a dimension node)

Now DJ will check if any of these dependencies is unsatisfied

If namespace.metric is NOT part of the deployment:

  • namespace.metric -> found it in external system, satisfied
  • namespace -> is the start of namespace.metric, satisfied

If namespace.metric is part of the deployment:

  • namespace.metric -> satisfied
  • namespace -> unsatisfied (but DJ is wrong)

So we have a bug where namespace is wrongly declared an unsatisfied dependency

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions