Skip to content

API: Journey Dag endpoints accepts duplicate edges #4

@aarthy-dk

Description

@aarthy-dk

Steps to reproduce

  • Send a request to PUT /observability/v1/journeys/:journey_id/dag like this: {"right": "<some_component_id>"}. 201 response is returned as expected.
  • Send the request again. Another 201 is returned, and a duplicate single-node edge is created in the database.

Expected behavior

The second call should have returned 409.

Note: The behavior works correctly in the case of 2-node edges, e.g., {"right": "<some_component_id>", "left": "<other_component_id>"}.

Impact

Users creating journeys through the API may inadvertently create duplicated data on the system. The DAG display in the UI does not seem to be affected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions