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:
- Create an asset with lineage (upstreams and downstreams) via either
UpsertPatchAsset or UpsertAsset.
- Make sure lineage is stored via
GetGraph api by passing asset's urn.
- Update asset via
UpsertPatchAsset without upstreams and downstreams.
- 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.
Describe the bug
Updating asset via
UpsertPatchAssetremoves lineage ifupstreamsanddownstreamsare not passed in the request.To Reproduce
Steps to reproduce the behavior:
UpsertPatchAssetorUpsertAsset.GetGraphapi by passing asset's urn.UpsertPatchAssetwithoutupstreamsanddownstreams.GetGraphfor 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.