Open luthfifahlevi opened 1 month ago
### Create Reference API for Delete Assets
Idea: DeleteAssets as DELETE /v1/assets/: an async API that will return how many rows that will affect based on filter criteria, and delete those rows from PostgreSQL (assets and lineage) and Elasticsearch in asynchronous.
DeleteAssets
/v1/assets/
Request:
query_expr
dry_run
Response: affected_rows represent how many rows that will affect based on filter criteria.
affected_rows
Current Approach:
### Create Reference API for Delete Assets
Idea:
DeleteAssets
as DELETE/v1/assets/
: an async API that will return how many rows that will affect based on filter criteria, and delete those rows from PostgreSQL (assets and lineage) and Elasticsearch in asynchronous.Request:
query_expr
represent query expr for filter criteria: https://github.com/expr-lang/expr.dry_run
represent whether it only return how much affected rows (if set to true), or also perform deletion process in the background (default: false).Response:
affected_rows
represent how many rows that will affect based on filter criteria.Current Approach: