mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-06 07:34:37 +00:00
fix(cli): update hard delete confirmation message in delete cli (#11550)
This commit is contained in:
parent
867007f209
commit
576ae8a056
@ -338,10 +338,18 @@ def by_filter(
|
|||||||
# TODO: add some validation on entity_type
|
# TODO: add some validation on entity_type
|
||||||
|
|
||||||
if not force and not soft and not dry_run:
|
if not force and not soft and not dry_run:
|
||||||
|
if only_soft_deleted:
|
||||||
click.confirm(
|
click.confirm(
|
||||||
"This will permanently delete data from DataHub. Do you want to continue?",
|
"This will permanently delete data from DataHub. Do you want to continue?",
|
||||||
abort=True,
|
abort=True,
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
click.confirm(
|
||||||
|
"Hard deletion will permanently delete data from DataHub and can be slow. "
|
||||||
|
"We generally recommend using soft deletes instead. "
|
||||||
|
"Do you want to continue?",
|
||||||
|
abort=True,
|
||||||
|
)
|
||||||
|
|
||||||
graph = get_default_graph()
|
graph = get_default_graph()
|
||||||
logger.info(f"Using {graph}")
|
logger.info(f"Using {graph}")
|
||||||
|
|||||||
@ -8,7 +8,10 @@ if [ "${RUN_QUICKSTART:-true}" == "true" ]; then
|
|||||||
source ./run-quickstart.sh
|
source ./run-quickstart.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set +x
|
||||||
|
echo "Activating virtual environment"
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
set -x
|
||||||
|
|
||||||
# set environment variables for the test
|
# set environment variables for the test
|
||||||
source ./set-test-env-vars.sh
|
source ./set-test-env-vars.sh
|
||||||
|
|||||||
@ -5,7 +5,10 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|||||||
cd "$DIR"
|
cd "$DIR"
|
||||||
|
|
||||||
../gradlew :smoke-test:installDev
|
../gradlew :smoke-test:installDev
|
||||||
|
set +x
|
||||||
|
echo "Activating virtual environment"
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
set -x
|
||||||
|
|
||||||
mkdir -p ~/.datahub/plugins/frontend/auth/
|
mkdir -p ~/.datahub/plugins/frontend/auth/
|
||||||
echo "test_user:test_pass" >> ~/.datahub/plugins/frontend/auth/user.props
|
echo "test_user:test_pass" >> ~/.datahub/plugins/frontend/auth/user.props
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user