mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? <!-- Describe what has changed in this PR --> Clean up errors in delete namespace workflows: 1. Use `FailedPrecondition` instead of `InvalidArgument` where it makes more sense. 2. Add helpers to construct `ApplicationError`s of different type. 3. Remove `unable to execute activity` error which was wrongly used in many places. 4. Few minor cleanups. ## Why? <!-- Tell your future self why have you made these changes --> Simplify and unify error handling in delete namespace workflows. ## How did you test it? <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> Modified tests. Manual runs. ## Potential risks <!-- Assuming the worst case, what can be broken when deploying this change to production? --> No risks. ## Documentation <!-- Have you made sure this change doesn't falsify anything currently stated in `docs/`? If significant new behavior is added, have you described that in `docs/`? --> No. ## Is hotfix candidate? <!-- Is this PR a hotfix candidate or does it require a notification to be sent to the broader community? (Yes/No) --> No.