From ab45a13b5301b2656efc0a1d1f3c2264b5977d1d Mon Sep 17 00:00:00 2001 From: Aseem Bansal Date: Mon, 26 Aug 2024 19:14:30 +0530 Subject: [PATCH] fix(cli/delete): change filter to include env --- metadata-ingestion/src/datahub/ingestion/graph/filters.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/metadata-ingestion/src/datahub/ingestion/graph/filters.py b/metadata-ingestion/src/datahub/ingestion/graph/filters.py index 8974f159171d1..edb45fa5c2dbc 100644 --- a/metadata-ingestion/src/datahub/ingestion/graph/filters.py +++ b/metadata-ingestion/src/datahub/ingestion/graph/filters.py @@ -110,6 +110,10 @@ def _get_env_filters(env: str) -> List[SearchFilterRule]: "field": "customProperties", "value": f"instance={env}", }, + { + "field": "env", + "value": env, + } # Note that not all entity types have an env (e.g. dashboards / charts). # If the env filter is specified, these will be excluded. ]