<#8786 feat(cli): Added an `--all` flag to `meltan...
# meltano-repo-activity
g
#8786 feat(cli): Added an
--all
flag to
meltano state clear
to delete all state IDs
Pull request opened by fauzxan Description This PR introduces a feature allowing users to clear all states with the
--all
argument in
meltano state clear
command. Design •
state.clear_state
to take in an extra argument
--all
. •
state-id
argument has become optional. However, user is prompted to serve one of either
--all
or
state-id
, and not both. •
state_service.clear_all_states
has been added that gets all `state_id`s and calls
state_store_manager.clear()
on all state_ids. •
TestCliState.test_clear_all
added to test this new functionality To-Do: • add a default clear_all() implementation in the base StateStoreManage Eventually, clear_all() will be implemented in all StateStoreManagers to bulk delete the states. • Address errors in https://results.pre-commit.ci/run/github/378997214/1726756744.X8yggwgrQWKXwLLkifo0_w Related Issues • Closes #8749 meltano/meltano ✅ All checks have passed 30/30 successful checks