Skip to content

bug: UpsertPatchAsset removes lineage if not defined #194

@StewartJingga

Description

@StewartJingga

Describe the bug
Updating asset via UpsertPatchAsset removes lineage if upstreams and downstreams are not passed in the request.

To Reproduce
Steps to reproduce the behavior:

  1. Create an asset with lineage (upstreams and downstreams) via either UpsertPatchAsset or UpsertAsset.
  2. Make sure lineage is stored via GetGraph api by passing asset's urn.
  3. Update asset via UpsertPatchAsset without upstreams and downstreams.
  4. See lineages are being removed via GetGraph for that asset.

Expected behavior
Seeing as it is a patch activity, it should not remove lineage even if it is not being passed in the request.

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